@alchemy.run/fly 0.0.0 → 2.0.0-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +57 -4
- package/lib/App.d.ts +230 -0
- package/lib/App.d.ts.map +1 -0
- package/lib/App.js +338 -0
- package/lib/App.js.map +1 -0
- package/lib/AuthProvider.d.ts +22 -0
- package/lib/AuthProvider.d.ts.map +1 -0
- package/lib/AuthProvider.js +48 -0
- package/lib/AuthProvider.js.map +1 -0
- package/lib/BindService.d.ts +159 -0
- package/lib/BindService.d.ts.map +1 -0
- package/lib/BindService.js +222 -0
- package/lib/BindService.js.map +1 -0
- package/lib/Bootstrap.d.ts +8 -0
- package/lib/Bootstrap.d.ts.map +1 -0
- package/lib/Bootstrap.js +41 -0
- package/lib/Bootstrap.js.map +1 -0
- package/lib/Bucket.d.ts +278 -0
- package/lib/Bucket.d.ts.map +1 -0
- package/lib/Bucket.js +658 -0
- package/lib/Bucket.js.map +1 -0
- package/lib/BucketBinding.d.ts +33 -0
- package/lib/BucketBinding.d.ts.map +1 -0
- package/lib/BucketBinding.js +70 -0
- package/lib/BucketBinding.js.map +1 -0
- package/lib/Catalog.d.ts +28 -0
- package/lib/Catalog.d.ts.map +1 -0
- package/lib/Catalog.js +31 -0
- package/lib/Catalog.js.map +1 -0
- package/lib/Certificate.d.ts +189 -0
- package/lib/Certificate.d.ts.map +1 -0
- package/lib/Certificate.js +380 -0
- package/lib/Certificate.js.map +1 -0
- package/lib/Checkpoint.d.ts +55 -0
- package/lib/Checkpoint.d.ts.map +1 -0
- package/lib/Checkpoint.js +3 -0
- package/lib/Checkpoint.js.map +1 -0
- package/lib/CheckpointHttp.d.ts +22 -0
- package/lib/CheckpointHttp.d.ts.map +1 -0
- package/lib/CheckpointHttp.js +53 -0
- package/lib/CheckpointHttp.js.map +1 -0
- package/lib/ConnectPostgres.d.ts +58 -0
- package/lib/ConnectPostgres.d.ts.map +1 -0
- package/lib/ConnectPostgres.js +13 -0
- package/lib/ConnectPostgres.js.map +1 -0
- package/lib/ConnectPostgresHttp.d.ts +26 -0
- package/lib/ConnectPostgresHttp.d.ts.map +1 -0
- package/lib/ConnectPostgresHttp.js +57 -0
- package/lib/ConnectPostgresHttp.js.map +1 -0
- package/lib/Contributions.d.ts +7 -0
- package/lib/Contributions.d.ts.map +1 -0
- package/lib/Contributions.js +6 -0
- package/lib/Contributions.js.map +1 -0
- package/lib/Credentials.d.ts +33 -0
- package/lib/Credentials.d.ts.map +1 -0
- package/lib/Credentials.js +55 -0
- package/lib/Credentials.js.map +1 -0
- package/lib/Decrypt.d.ts +52 -0
- package/lib/Decrypt.d.ts.map +1 -0
- package/lib/Decrypt.js +3 -0
- package/lib/Decrypt.js.map +1 -0
- package/lib/DecryptHttp.d.ts +22 -0
- package/lib/DecryptHttp.d.ts.map +1 -0
- package/lib/DecryptHttp.js +43 -0
- package/lib/DecryptHttp.js.map +1 -0
- package/lib/DeleteObject.d.ts +29 -0
- package/lib/DeleteObject.d.ts.map +1 -0
- package/lib/DeleteObject.js +3 -0
- package/lib/DeleteObject.js.map +1 -0
- package/lib/DeleteObjectHttp.d.ts +12 -0
- package/lib/DeleteObjectHttp.d.ts.map +1 -0
- package/lib/DeleteObjectHttp.js +17 -0
- package/lib/DeleteObjectHttp.js.map +1 -0
- package/lib/Deployment.d.ts +51 -0
- package/lib/Deployment.d.ts.map +1 -0
- package/lib/Deployment.js +62 -0
- package/lib/Deployment.js.map +1 -0
- package/lib/DeploymentImages.d.ts +18 -0
- package/lib/DeploymentImages.d.ts.map +1 -0
- package/lib/DeploymentImages.js +61 -0
- package/lib/DeploymentImages.js.map +1 -0
- package/lib/DeploymentState.d.ts +17 -0
- package/lib/DeploymentState.d.ts.map +1 -0
- package/lib/DeploymentState.js +87 -0
- package/lib/DeploymentState.js.map +1 -0
- package/lib/Encrypt.d.ts +50 -0
- package/lib/Encrypt.d.ts.map +1 -0
- package/lib/Encrypt.js +3 -0
- package/lib/Encrypt.js.map +1 -0
- package/lib/EncryptHttp.d.ts +22 -0
- package/lib/EncryptHttp.d.ts.map +1 -0
- package/lib/EncryptHttp.js +39 -0
- package/lib/EncryptHttp.js.map +1 -0
- package/lib/Environment.d.ts +45 -0
- package/lib/Environment.d.ts.map +1 -0
- package/lib/Environment.js +43 -0
- package/lib/Environment.js.map +1 -0
- package/lib/Errors.d.ts +18 -0
- package/lib/Errors.d.ts.map +1 -0
- package/lib/Errors.js +13 -0
- package/lib/Errors.js.map +1 -0
- package/lib/Exec.d.ts +41 -0
- package/lib/Exec.d.ts.map +1 -0
- package/lib/Exec.js +3 -0
- package/lib/Exec.js.map +1 -0
- package/lib/ExecHttp.d.ts +22 -0
- package/lib/ExecHttp.d.ts.map +1 -0
- package/lib/ExecHttp.js +39 -0
- package/lib/ExecHttp.js.map +1 -0
- package/lib/GetObject.d.ts +34 -0
- package/lib/GetObject.d.ts.map +1 -0
- package/lib/GetObject.js +3 -0
- package/lib/GetObject.js.map +1 -0
- package/lib/GetObjectHttp.d.ts +12 -0
- package/lib/GetObjectHttp.d.ts.map +1 -0
- package/lib/GetObjectHttp.js +17 -0
- package/lib/GetObjectHttp.js.map +1 -0
- package/lib/GetSecret.d.ts +44 -0
- package/lib/GetSecret.d.ts.map +1 -0
- package/lib/GetSecret.js +3 -0
- package/lib/GetSecret.js.map +1 -0
- package/lib/GetSecretHttp.d.ts +22 -0
- package/lib/GetSecretHttp.d.ts.map +1 -0
- package/lib/GetSecretHttp.js +50 -0
- package/lib/GetSecretHttp.js.map +1 -0
- package/lib/HeadObject.d.ts +29 -0
- package/lib/HeadObject.d.ts.map +1 -0
- package/lib/HeadObject.js +3 -0
- package/lib/HeadObject.js.map +1 -0
- package/lib/HeadObjectHttp.d.ts +12 -0
- package/lib/HeadObjectHttp.d.ts.map +1 -0
- package/lib/HeadObjectHttp.js +17 -0
- package/lib/HeadObjectHttp.js.map +1 -0
- package/lib/IpAssignment.d.ts +258 -0
- package/lib/IpAssignment.d.ts.map +1 -0
- package/lib/IpAssignment.js +376 -0
- package/lib/IpAssignment.js.map +1 -0
- package/lib/ListObjectsV2.d.ts +29 -0
- package/lib/ListObjectsV2.d.ts.map +1 -0
- package/lib/ListObjectsV2.js +3 -0
- package/lib/ListObjectsV2.js.map +1 -0
- package/lib/ListObjectsV2Http.d.ts +12 -0
- package/lib/ListObjectsV2Http.d.ts.map +1 -0
- package/lib/ListObjectsV2Http.js +17 -0
- package/lib/ListObjectsV2Http.js.map +1 -0
- package/lib/ListSecrets.d.ts +53 -0
- package/lib/ListSecrets.d.ts.map +1 -0
- package/lib/ListSecrets.js +3 -0
- package/lib/ListSecrets.js.map +1 -0
- package/lib/ListSecretsHttp.d.ts +22 -0
- package/lib/ListSecretsHttp.d.ts.map +1 -0
- package/lib/ListSecretsHttp.js +35 -0
- package/lib/ListSecretsHttp.js.map +1 -0
- package/lib/Machine.d.ts +802 -0
- package/lib/Machine.d.ts.map +1 -0
- package/lib/Machine.js +773 -0
- package/lib/Machine.js.map +1 -0
- package/lib/MachineContainers.d.ts +44 -0
- package/lib/MachineContainers.d.ts.map +1 -0
- package/lib/MachineContainers.js +115 -0
- package/lib/MachineContainers.js.map +1 -0
- package/lib/Metadata.d.ts +109 -0
- package/lib/Metadata.d.ts.map +1 -0
- package/lib/Metadata.js +159 -0
- package/lib/Metadata.js.map +1 -0
- package/lib/MountVolume.d.ts +295 -0
- package/lib/MountVolume.d.ts.map +1 -0
- package/lib/MountVolume.js +20 -0
- package/lib/MountVolume.js.map +1 -0
- package/lib/Postgres.d.ts +298 -0
- package/lib/Postgres.d.ts.map +1 -0
- package/lib/Postgres.js +508 -0
- package/lib/Postgres.js.map +1 -0
- package/lib/PostgresMigrations.d.ts +20 -0
- package/lib/PostgresMigrations.d.ts.map +1 -0
- package/lib/PostgresMigrations.js +58 -0
- package/lib/PostgresMigrations.js.map +1 -0
- package/lib/Providers.d.ts +38 -0
- package/lib/Providers.d.ts.map +1 -0
- package/lib/Providers.js +95 -0
- package/lib/Providers.js.map +1 -0
- package/lib/PutObject.d.ts +35 -0
- package/lib/PutObject.d.ts.map +1 -0
- package/lib/PutObject.js +3 -0
- package/lib/PutObject.js.map +1 -0
- package/lib/PutObjectHttp.d.ts +12 -0
- package/lib/PutObjectHttp.d.ts.map +1 -0
- package/lib/PutObjectHttp.js +17 -0
- package/lib/PutObjectHttp.js.map +1 -0
- package/lib/ReadRedis.d.ts +26 -0
- package/lib/ReadRedis.d.ts.map +1 -0
- package/lib/ReadRedis.js +3 -0
- package/lib/ReadRedis.js.map +1 -0
- package/lib/ReadRedisHttp.d.ts +11 -0
- package/lib/ReadRedisHttp.d.ts.map +1 -0
- package/lib/ReadRedisHttp.js +15 -0
- package/lib/ReadRedisHttp.js.map +1 -0
- package/lib/ReadWriteRedis.d.ts +29 -0
- package/lib/ReadWriteRedis.d.ts.map +1 -0
- package/lib/ReadWriteRedis.js +3 -0
- package/lib/ReadWriteRedis.js.map +1 -0
- package/lib/ReadWriteRedisHttp.d.ts +11 -0
- package/lib/ReadWriteRedisHttp.d.ts.map +1 -0
- package/lib/ReadWriteRedisHttp.js +15 -0
- package/lib/ReadWriteRedisHttp.js.map +1 -0
- package/lib/Redis.d.ts +252 -0
- package/lib/Redis.d.ts.map +1 -0
- package/lib/Redis.js +611 -0
- package/lib/Redis.js.map +1 -0
- package/lib/RedisBinding.d.ts +7 -0
- package/lib/RedisBinding.d.ts.map +1 -0
- package/lib/RedisBinding.js +53 -0
- package/lib/RedisBinding.js.map +1 -0
- package/lib/RedisHttp.d.ts +8 -0
- package/lib/RedisHttp.d.ts.map +1 -0
- package/lib/RedisHttp.js +11 -0
- package/lib/RedisHttp.js.map +1 -0
- package/lib/Region.d.ts +16 -0
- package/lib/Region.d.ts.map +1 -0
- package/lib/Region.js +13 -0
- package/lib/Region.js.map +1 -0
- package/lib/Secret.d.ts +190 -0
- package/lib/Secret.d.ts.map +1 -0
- package/lib/Secret.js +310 -0
- package/lib/Secret.js.map +1 -0
- package/lib/SecretHttp.d.ts +54 -0
- package/lib/SecretHttp.d.ts.map +1 -0
- package/lib/SecretHttp.js +66 -0
- package/lib/SecretHttp.js.map +1 -0
- package/lib/SecretKey.d.ts +164 -0
- package/lib/SecretKey.d.ts.map +1 -0
- package/lib/SecretKey.js +277 -0
- package/lib/SecretKey.js.map +1 -0
- package/lib/SecretKeyHttp.d.ts +14 -0
- package/lib/SecretKeyHttp.d.ts.map +1 -0
- package/lib/SecretKeyHttp.js +5 -0
- package/lib/SecretKeyHttp.js.map +1 -0
- package/lib/Service.d.ts +1017 -0
- package/lib/Service.d.ts.map +1 -0
- package/lib/Service.js +1430 -0
- package/lib/Service.js.map +1 -0
- package/lib/Sign.d.ts +36 -0
- package/lib/Sign.d.ts.map +1 -0
- package/lib/Sign.js +3 -0
- package/lib/Sign.js.map +1 -0
- package/lib/SignHttp.d.ts +22 -0
- package/lib/SignHttp.d.ts.map +1 -0
- package/lib/SignHttp.js +36 -0
- package/lib/SignHttp.js.map +1 -0
- package/lib/Sprite.d.ts +283 -0
- package/lib/Sprite.d.ts.map +1 -0
- package/lib/Sprite.js +471 -0
- package/lib/Sprite.js.map +1 -0
- package/lib/SpriteHttp.d.ts +25 -0
- package/lib/SpriteHttp.d.ts.map +1 -0
- package/lib/SpriteHttp.js +33 -0
- package/lib/SpriteHttp.js.map +1 -0
- package/lib/Verify.d.ts +37 -0
- package/lib/Verify.d.ts.map +1 -0
- package/lib/Verify.js +3 -0
- package/lib/Verify.js.map +1 -0
- package/lib/VerifyHttp.d.ts +22 -0
- package/lib/VerifyHttp.d.ts.map +1 -0
- package/lib/VerifyHttp.js +38 -0
- package/lib/VerifyHttp.js.map +1 -0
- package/lib/Volume.d.ts +53 -0
- package/lib/Volume.d.ts.map +1 -0
- package/lib/Volume.js +188 -0
- package/lib/Volume.js.map +1 -0
- package/lib/VolumeSnapshot.d.ts +135 -0
- package/lib/VolumeSnapshot.d.ts.map +1 -0
- package/lib/VolumeSnapshot.js +213 -0
- package/lib/VolumeSnapshot.js.map +1 -0
- package/lib/Website/AssetDeployment.d.ts +43 -0
- package/lib/Website/AssetDeployment.d.ts.map +1 -0
- package/lib/Website/AssetDeployment.js +162 -0
- package/lib/Website/AssetDeployment.js.map +1 -0
- package/lib/Website/Astro.d.ts +89 -0
- package/lib/Website/Astro.d.ts.map +1 -0
- package/lib/Website/Astro.js +54 -0
- package/lib/Website/Astro.js.map +1 -0
- package/lib/Website/Foldkit.d.ts +52 -0
- package/lib/Website/Foldkit.d.ts.map +1 -0
- package/lib/Website/Foldkit.js +45 -0
- package/lib/Website/Foldkit.js.map +1 -0
- package/lib/Website/FrameworkSite.d.ts +212 -0
- package/lib/Website/FrameworkSite.d.ts.map +1 -0
- package/lib/Website/FrameworkSite.js +205 -0
- package/lib/Website/FrameworkSite.js.map +1 -0
- package/lib/Website/Nextjs.d.ts +54 -0
- package/lib/Website/Nextjs.d.ts.map +1 -0
- package/lib/Website/Nextjs.js +46 -0
- package/lib/Website/Nextjs.js.map +1 -0
- package/lib/Website/Nuxt.d.ts +51 -0
- package/lib/Website/Nuxt.d.ts.map +1 -0
- package/lib/Website/Nuxt.js +36 -0
- package/lib/Website/Nuxt.js.map +1 -0
- package/lib/Website/Octane.d.ts +49 -0
- package/lib/Website/Octane.d.ts.map +1 -0
- package/lib/Website/Octane.js +39 -0
- package/lib/Website/Octane.js.map +1 -0
- package/lib/Website/ReactRouter.d.ts +80 -0
- package/lib/Website/ReactRouter.d.ts.map +1 -0
- package/lib/Website/ReactRouter.js +70 -0
- package/lib/Website/ReactRouter.js.map +1 -0
- package/lib/Website/SolidStart.d.ts +93 -0
- package/lib/Website/SolidStart.d.ts.map +1 -0
- package/lib/Website/SolidStart.js +71 -0
- package/lib/Website/SolidStart.js.map +1 -0
- package/lib/Website/StaticSite.d.ts +162 -0
- package/lib/Website/StaticSite.d.ts.map +1 -0
- package/lib/Website/StaticSite.js +180 -0
- package/lib/Website/StaticSite.js.map +1 -0
- package/lib/Website/SvelteKit.d.ts +52 -0
- package/lib/Website/SvelteKit.d.ts.map +1 -0
- package/lib/Website/SvelteKit.js +37 -0
- package/lib/Website/SvelteKit.js.map +1 -0
- package/lib/Website/TanStackStart.d.ts +76 -0
- package/lib/Website/TanStackStart.d.ts.map +1 -0
- package/lib/Website/TanStackStart.js +66 -0
- package/lib/Website/TanStackStart.js.map +1 -0
- package/lib/Website/Vinext.d.ts +73 -0
- package/lib/Website/Vinext.d.ts.map +1 -0
- package/lib/Website/Vinext.js +67 -0
- package/lib/Website/Vinext.js.map +1 -0
- package/lib/Website/Vite.d.ts +112 -0
- package/lib/Website/Vite.d.ts.map +1 -0
- package/lib/Website/Vite.js +100 -0
- package/lib/Website/Vite.js.map +1 -0
- package/lib/Website/Vocs.d.ts +52 -0
- package/lib/Website/Vocs.d.ts.map +1 -0
- package/lib/Website/Vocs.js +38 -0
- package/lib/Website/Vocs.js.map +1 -0
- package/lib/Website/Waku.d.ts +64 -0
- package/lib/Website/Waku.d.ts.map +1 -0
- package/lib/Website/Waku.js +39 -0
- package/lib/Website/Waku.js.map +1 -0
- package/lib/Website/index.d.ts +17 -0
- package/lib/Website/index.d.ts.map +1 -0
- package/lib/Website/index.js +17 -0
- package/lib/Website/index.js.map +1 -0
- package/lib/WriteCertificates.d.ts +63 -0
- package/lib/WriteCertificates.d.ts.map +1 -0
- package/lib/WriteCertificates.js +3 -0
- package/lib/WriteCertificates.js.map +1 -0
- package/lib/WriteCertificatesHttp.d.ts +25 -0
- package/lib/WriteCertificatesHttp.d.ts.map +1 -0
- package/lib/WriteCertificatesHttp.js +67 -0
- package/lib/WriteCertificatesHttp.js.map +1 -0
- package/lib/WriteRedis.d.ts +26 -0
- package/lib/WriteRedis.d.ts.map +1 -0
- package/lib/WriteRedis.js +3 -0
- package/lib/WriteRedis.js.map +1 -0
- package/lib/WriteRedisHttp.d.ts +11 -0
- package/lib/WriteRedisHttp.d.ts.map +1 -0
- package/lib/WriteRedisHttp.js +15 -0
- package/lib/WriteRedisHttp.js.map +1 -0
- package/lib/WriteSecret.d.ts +68 -0
- package/lib/WriteSecret.d.ts.map +1 -0
- package/lib/WriteSecret.js +4 -0
- package/lib/WriteSecret.js.map +1 -0
- package/lib/WriteSecretHttp.d.ts +26 -0
- package/lib/WriteSecretHttp.d.ts.map +1 -0
- package/lib/WriteSecretHttp.js +54 -0
- package/lib/WriteSecretHttp.js.map +1 -0
- package/lib/bluegreen.d.ts +36 -0
- package/lib/bluegreen.d.ts.map +1 -0
- package/lib/bluegreen.js +460 -0
- package/lib/bluegreen.js.map +1 -0
- package/lib/hosted.d.ts +171 -0
- package/lib/hosted.d.ts.map +1 -0
- package/lib/hosted.js +458 -0
- package/lib/hosted.js.map +1 -0
- package/lib/index.d.ts +65 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +63 -0
- package/lib/index.js.map +1 -0
- package/lib/internal/RemoteBuilder.d.ts +28 -0
- package/lib/internal/RemoteBuilder.d.ts.map +1 -0
- package/lib/internal/RemoteBuilder.js +158 -0
- package/lib/internal/RemoteBuilder.js.map +1 -0
- package/lib/leases.d.ts +53 -0
- package/lib/leases.d.ts.map +1 -0
- package/lib/leases.js +279 -0
- package/lib/leases.js.map +1 -0
- package/lib/ports.d.ts +51 -0
- package/lib/ports.d.ts.map +1 -0
- package/lib/ports.js +123 -0
- package/lib/ports.js.map +1 -0
- package/lib/replicas.d.ts +270 -0
- package/lib/replicas.d.ts.map +1 -0
- package/lib/replicas.js +969 -0
- package/lib/replicas.js.map +1 -0
- package/lib/rpc.d.ts +35 -0
- package/lib/rpc.d.ts.map +1 -0
- package/lib/rpc.js +113 -0
- package/lib/rpc.js.map +1 -0
- package/package.json +83 -3
- package/src/App.ts +514 -0
- package/src/AuthProvider.ts +68 -0
- package/src/BindService.ts +303 -0
- package/src/Bootstrap.ts +66 -0
- package/src/Bucket.ts +918 -0
- package/src/BucketBinding.ts +128 -0
- package/src/Catalog.ts +43 -0
- package/src/Certificate.ts +548 -0
- package/src/Checkpoint.ts +69 -0
- package/src/CheckpointHttp.ts +66 -0
- package/src/ConnectPostgres.ts +68 -0
- package/src/ConnectPostgresHttp.ts +77 -0
- package/src/Contributions.ts +9 -0
- package/src/Credentials.ts +75 -0
- package/src/Decrypt.ts +62 -0
- package/src/DecryptHttp.ts +52 -0
- package/src/DeleteObject.ts +43 -0
- package/src/DeleteObjectHttp.ts +20 -0
- package/src/Deployment.ts +121 -0
- package/src/DeploymentImages.ts +84 -0
- package/src/DeploymentState.ts +104 -0
- package/src/Encrypt.ts +60 -0
- package/src/EncryptHttp.ts +48 -0
- package/src/Environment.ts +81 -0
- package/src/Errors.ts +14 -0
- package/src/Exec.ts +50 -0
- package/src/ExecHttp.ts +47 -0
- package/src/GetObject.ts +48 -0
- package/src/GetObjectHttp.ts +20 -0
- package/src/GetSecret.ts +48 -0
- package/src/GetSecretHttp.ts +60 -0
- package/src/HeadObject.ts +43 -0
- package/src/HeadObjectHttp.ts +20 -0
- package/src/IpAssignment.ts +522 -0
- package/src/ListObjectsV2.ts +43 -0
- package/src/ListObjectsV2Http.ts +20 -0
- package/src/ListSecrets.ts +57 -0
- package/src/ListSecretsHttp.ts +43 -0
- package/src/Machine.ts +1270 -0
- package/src/MachineContainers.ts +152 -0
- package/src/Metadata.ts +195 -0
- package/src/MountVolume.ts +315 -0
- package/src/Postgres.ts +777 -0
- package/src/PostgresMigrations.ts +93 -0
- package/src/Providers.ts +155 -0
- package/src/PutObject.ts +49 -0
- package/src/PutObjectHttp.ts +20 -0
- package/src/ReadRedis.ts +31 -0
- package/src/ReadRedisHttp.ts +18 -0
- package/src/ReadWriteRedis.ts +33 -0
- package/src/ReadWriteRedisHttp.ts +18 -0
- package/src/Redis.ts +823 -0
- package/src/RedisBinding.ts +64 -0
- package/src/RedisHttp.ts +14 -0
- package/src/Region.ts +44 -0
- package/src/Secret.ts +405 -0
- package/src/SecretHttp.ts +149 -0
- package/src/SecretKey.ts +389 -0
- package/src/SecretKeyHttp.ts +23 -0
- package/src/Service.ts +1968 -0
- package/src/Sign.ts +46 -0
- package/src/SignHttp.ts +44 -0
- package/src/Sprite.ts +673 -0
- package/src/SpriteHttp.ts +50 -0
- package/src/Verify.ts +47 -0
- package/src/VerifyHttp.ts +46 -0
- package/src/Volume.ts +264 -0
- package/src/VolumeSnapshot.ts +321 -0
- package/src/Website/AssetDeployment.ts +292 -0
- package/src/Website/Astro.ts +92 -0
- package/src/Website/Foldkit.ts +54 -0
- package/src/Website/FrameworkSite.ts +449 -0
- package/src/Website/Nextjs.ts +50 -0
- package/src/Website/Nuxt.ts +48 -0
- package/src/Website/Octane.ts +44 -0
- package/src/Website/ReactRouter.ts +76 -0
- package/src/Website/SolidStart.ts +90 -0
- package/src/Website/StaticSite.ts +295 -0
- package/src/Website/SvelteKit.ts +49 -0
- package/src/Website/TanStackStart.ts +72 -0
- package/src/Website/Vinext.ts +79 -0
- package/src/Website/Vite.ts +121 -0
- package/src/Website/Vocs.ts +50 -0
- package/src/Website/Waku.ts +65 -0
- package/src/Website/index.ts +16 -0
- package/src/WriteCertificates.ts +90 -0
- package/src/WriteCertificatesHttp.ts +93 -0
- package/src/WriteRedis.ts +31 -0
- package/src/WriteRedisHttp.ts +18 -0
- package/src/WriteSecret.ts +86 -0
- package/src/WriteSecretHttp.ts +71 -0
- package/src/bluegreen.ts +711 -0
- package/src/globals.d.ts +2 -0
- package/src/hosted.ts +667 -0
- package/src/index.ts +64 -0
- package/src/internal/RemoteBuilder.ts +242 -0
- package/src/leases.ts +437 -0
- package/src/ports.ts +177 -0
- package/src/replicas.ts +1480 -0
- package/src/rpc.ts +136 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Credentials, CredentialsFromEnv } from "@distilled.cloud/fly-io";
|
|
2
|
+
import type { RuntimeContext } from "alchemy/RuntimeContext";
|
|
3
|
+
import type * as Context from "effect/Context";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
6
|
+
import type * as HttpClient from "effect/http/HttpClient";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import { bindFlyApiToken } from "./Credentials.ts";
|
|
9
|
+
import type { Sprite } from "./Sprite.ts";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Shared scaffolding for HTTP-backed Fly Sprite bindings.
|
|
13
|
+
*
|
|
14
|
+
* Captures ambient credentials during stack-eval (so Actions work
|
|
15
|
+
* in-process) and `yield*`s the org token plus sprite `name` so
|
|
16
|
+
* RuntimeContext.set runs. Runtime calls inside a deployed host read
|
|
17
|
+
* `FLY_API_TOKEN` via {@link CredentialsFromEnv} after Platform copies
|
|
18
|
+
* `runtimeContext.env` onto the host.
|
|
19
|
+
*
|
|
20
|
+
* NOT exported from `index.ts`.
|
|
21
|
+
*/
|
|
22
|
+
export const makeHttpSpriteBinding = <Client>(options: {
|
|
23
|
+
makeClient: (auth: SpriteAuth, spriteName: Effect.Effect<string>) => Client;
|
|
24
|
+
}) =>
|
|
25
|
+
Effect.gen(function* () {
|
|
26
|
+
const context = yield* Effect.context<Credentials | HttpClient.HttpClient>();
|
|
27
|
+
|
|
28
|
+
return Effect.fn(function* (sprite: Sprite) {
|
|
29
|
+
yield* bindFlyApiToken().pipe(Effect.provideContext(context));
|
|
30
|
+
const name = yield* sprite.name;
|
|
31
|
+
return options.makeClient(makeSpriteAuth(context), name);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export interface SpriteAuth {
|
|
36
|
+
authorize: <A, E>(
|
|
37
|
+
eff: Effect.Effect<A, E, Credentials | HttpClient.HttpClient>,
|
|
38
|
+
) => Effect.Effect<A, E, RuntimeContext>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const makeSpriteAuth = (
|
|
42
|
+
ambient: Context.Context<Credentials | HttpClient.HttpClient>,
|
|
43
|
+
): SpriteAuth => ({
|
|
44
|
+
authorize: (eff) => {
|
|
45
|
+
if (globalThis.__ALCHEMY_RUNTIME__) {
|
|
46
|
+
return eff.pipe(Effect.provide(Layer.mergeAll(CredentialsFromEnv, FetchHttpClient.layer)));
|
|
47
|
+
}
|
|
48
|
+
return eff.pipe(Effect.provideContext(ambient));
|
|
49
|
+
},
|
|
50
|
+
});
|
package/src/Verify.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { VerifySecretKeyError } from "@distilled.cloud/fly-io/machines";
|
|
2
|
+
import * as Binding from "alchemy/Binding";
|
|
3
|
+
import type { RuntimeContext } from "alchemy/RuntimeContext";
|
|
4
|
+
import type * as Effect from "effect/Effect";
|
|
5
|
+
import type { SecretKey } from "./SecretKey.ts";
|
|
6
|
+
|
|
7
|
+
export interface VerifyRequest {
|
|
8
|
+
/** Original payload. */
|
|
9
|
+
plaintext: Uint8Array | ArrayLike<number>;
|
|
10
|
+
/** Signature produced by {@link Sign}. */
|
|
11
|
+
signature: Uint8Array | ArrayLike<number>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface VerifyResult {
|
|
15
|
+
/** Fly returns 200 only when the signature is valid. */
|
|
16
|
+
valid: true;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Verify a signature with a Fly {@link SecretKey}. The App and key
|
|
21
|
+
* name are fixed by `Verify(key)`.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* ### Verify a signature
|
|
25
|
+
* Provide {@link VerifyHttp}. A bad signature is a typed error from
|
|
26
|
+
* the Machines API, not `valid: false`.
|
|
27
|
+
*
|
|
28
|
+
* **Example:** Verify
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const verify = yield* Fly.Verify(Signing);
|
|
31
|
+
* const { valid } = yield* verify({ plaintext, signature });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @binding
|
|
35
|
+
* @product Secret Key
|
|
36
|
+
*/
|
|
37
|
+
export interface Verify extends Binding.Service<
|
|
38
|
+
Verify,
|
|
39
|
+
"Fly.Verify",
|
|
40
|
+
(
|
|
41
|
+
key: SecretKey,
|
|
42
|
+
) => Effect.Effect<
|
|
43
|
+
(request: VerifyRequest) => Effect.Effect<VerifyResult, VerifySecretKeyError, RuntimeContext>
|
|
44
|
+
>
|
|
45
|
+
> {}
|
|
46
|
+
|
|
47
|
+
export const Verify = Binding.Service<Verify>("Fly.Verify");
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as machines from "@distilled.cloud/fly-io/machines";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import { CredentialsFromAmbientOrEnv } from "./Credentials.ts";
|
|
6
|
+
import { bytesToBase64, makeHttpSecretKeyBinding } from "./SecretKeyHttp.ts";
|
|
7
|
+
import { Verify, type VerifyRequest } from "./Verify.ts";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* HTTP implementation of {@link Verify}. Provide it on the
|
|
11
|
+
* {@link Service} or Action Effect.
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* ### Provide the layer
|
|
15
|
+
* **Example:** On a Service
|
|
16
|
+
* ```typescript
|
|
17
|
+
* Effect.gen(function* () {
|
|
18
|
+
* const verify = yield* Fly.Verify(Signing);
|
|
19
|
+
* // ...
|
|
20
|
+
* }).pipe(Effect.provide(Fly.VerifyHttp))
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @layer
|
|
24
|
+
* @product Secret Key
|
|
25
|
+
* @provides Fly.Verify
|
|
26
|
+
*/
|
|
27
|
+
export const VerifyHttp = Layer.effect(
|
|
28
|
+
Verify,
|
|
29
|
+
Effect.suspend(() =>
|
|
30
|
+
makeHttpSecretKeyBinding({
|
|
31
|
+
makeClient: (auth, appName, secretName) =>
|
|
32
|
+
Effect.fn("Fly.Verify")(function* (request: VerifyRequest) {
|
|
33
|
+
// Fly answers 200 only when the signature checks out.
|
|
34
|
+
yield* auth.authorize(
|
|
35
|
+
machines.verifySecretKey({
|
|
36
|
+
app_name: yield* appName,
|
|
37
|
+
secret_name: yield* secretName,
|
|
38
|
+
plaintext: bytesToBase64(request.plaintext),
|
|
39
|
+
signature: bytesToBase64(request.signature),
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
42
|
+
return { valid: true as const };
|
|
43
|
+
}),
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
).pipe(Layer.provide(FetchHttpClient.layer), Layer.provide(CredentialsFromAmbientOrEnv));
|
package/src/Volume.ts
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import type { Volume as FlyVolume } from "@distilled.cloud/fly-io/machines";
|
|
2
|
+
import * as machines from "@distilled.cloud/fly-io/machines";
|
|
3
|
+
import * as Data from "effect/Data";
|
|
4
|
+
import * as Duration from "effect/Duration";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Schedule from "effect/Schedule";
|
|
7
|
+
import { listOwnedApps } from "./App.ts";
|
|
8
|
+
import {
|
|
9
|
+
createFlyVolumeName,
|
|
10
|
+
matchesAlchemyPhysicalName,
|
|
11
|
+
sanitizeFlyVolumeName,
|
|
12
|
+
} from "./Metadata.ts";
|
|
13
|
+
import type { DiskSpec } from "./MountVolume.ts";
|
|
14
|
+
|
|
15
|
+
export const DEFAULT_VOLUME_REGION = "iad";
|
|
16
|
+
export const MIN_SIZE_GB = 1;
|
|
17
|
+
|
|
18
|
+
export class VolumeNotCreated extends Data.TaggedError("Fly.VolumeNotCreated")<{
|
|
19
|
+
resourceName: string;
|
|
20
|
+
appName: string;
|
|
21
|
+
}> {}
|
|
22
|
+
|
|
23
|
+
class VolumePending extends Data.TaggedError("Fly.VolumePending")<{
|
|
24
|
+
volumeId: string;
|
|
25
|
+
state: string;
|
|
26
|
+
}> {}
|
|
27
|
+
|
|
28
|
+
const backoff = Schedule.min([
|
|
29
|
+
Schedule.exponential(Duration.millis(500), 1.5),
|
|
30
|
+
Schedule.spaced(Duration.seconds(5)),
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
export const destroying = (state: string | undefined) =>
|
|
34
|
+
state === "destroyed" || state === "pending_destroy" || state === "scheduled_for_destruction";
|
|
35
|
+
|
|
36
|
+
const transientState = (state: string | undefined) =>
|
|
37
|
+
state === "creating" || state === "pending" || state === "extending";
|
|
38
|
+
|
|
39
|
+
export const getVolumeById = (appName: string, volumeId: string) =>
|
|
40
|
+
machines.getVolumeById({ app_name: appName, volume_id: volumeId }).pipe(
|
|
41
|
+
Effect.map((volume) => (destroying(volume.state) ? undefined : volume)),
|
|
42
|
+
Effect.catchTag("NotFound", () => Effect.undefined),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export const listVolumesByApp = (appName: string) =>
|
|
46
|
+
machines.listVolumes({ app_name: appName }).pipe(
|
|
47
|
+
Effect.map((volumes) => volumes.filter((volume) => !destroying(volume.state))),
|
|
48
|
+
Effect.catchTag(["NotFound", "Forbidden"], () => Effect.succeed([])),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const newestFirst = (left: FlyVolume, right: FlyVolume) => {
|
|
52
|
+
const byCreated = Date.parse(left.created_at ?? "") - Date.parse(right.created_at ?? "");
|
|
53
|
+
if (byCreated !== 0) return byCreated;
|
|
54
|
+
return (left.id ?? "").localeCompare(right.id ?? "");
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const listVolumeGroup = (appName: string, name: string, region: string) =>
|
|
58
|
+
listVolumesByApp(appName).pipe(
|
|
59
|
+
Effect.map((volumes) =>
|
|
60
|
+
volumes
|
|
61
|
+
.filter((volume) => volume.name === name && volume.region === region)
|
|
62
|
+
.sort(newestFirst),
|
|
63
|
+
),
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
export const waitUntilVolumeReady = (appName: string, volumeId: string) =>
|
|
67
|
+
getVolumeById(appName, volumeId).pipe(
|
|
68
|
+
Effect.flatMap((volume) => {
|
|
69
|
+
if (volume === undefined) return Effect.undefined;
|
|
70
|
+
if (transientState(volume.state)) {
|
|
71
|
+
return Effect.fail(
|
|
72
|
+
new VolumePending({
|
|
73
|
+
volumeId,
|
|
74
|
+
state: volume.state ?? "creating",
|
|
75
|
+
}),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return Effect.succeed(volume);
|
|
79
|
+
}),
|
|
80
|
+
Effect.retry({
|
|
81
|
+
while: (e) => e._tag === "Fly.VolumePending",
|
|
82
|
+
times: 8,
|
|
83
|
+
schedule: backoff,
|
|
84
|
+
}),
|
|
85
|
+
Effect.catchTag("Fly.VolumePending", () => getVolumeById(appName, volumeId)),
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
export const waitUntilVolumeGone = (appName: string, volumeId: string) =>
|
|
89
|
+
getVolumeById(appName, volumeId).pipe(
|
|
90
|
+
Effect.map((volume) => volume === undefined),
|
|
91
|
+
Effect.repeat({
|
|
92
|
+
schedule: Schedule.spaced("2 seconds"),
|
|
93
|
+
until: (gone) => gone,
|
|
94
|
+
times: 10,
|
|
95
|
+
}),
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
export const pathKey = (path: string): string => {
|
|
99
|
+
const key = path
|
|
100
|
+
.toLowerCase()
|
|
101
|
+
.replace(/[^a-z0-9]+/g, "_")
|
|
102
|
+
.replace(/^_+|_+$/g, "");
|
|
103
|
+
return key.length === 0 ? "data" : key;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const volumeGroupName = (id: string, disk: Pick<DiskSpec, "path" | "name">) =>
|
|
107
|
+
Effect.gen(function* () {
|
|
108
|
+
if (disk.name !== undefined) return sanitizeFlyVolumeName(disk.name);
|
|
109
|
+
return yield* createFlyVolumeName(`${id}/${pathKey(disk.path)}`);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export const createVolume = Effect.fn(function* (input: {
|
|
113
|
+
appName: string;
|
|
114
|
+
name: string;
|
|
115
|
+
region: string;
|
|
116
|
+
disk: DiskSpec;
|
|
117
|
+
}) {
|
|
118
|
+
const sizeGb = Math.max(input.disk.sizeGb, MIN_SIZE_GB);
|
|
119
|
+
const created = yield* machines
|
|
120
|
+
.createVolume({
|
|
121
|
+
app_name: input.appName,
|
|
122
|
+
name: input.name,
|
|
123
|
+
region: input.region,
|
|
124
|
+
size_gb: sizeGb,
|
|
125
|
+
encrypted: input.disk.encrypted,
|
|
126
|
+
fstype: input.disk.fstype,
|
|
127
|
+
auto_backup_enabled: input.disk.autoBackupEnabled,
|
|
128
|
+
snapshot_retention: input.disk.snapshotRetention,
|
|
129
|
+
snapshot_id: input.disk.snapshotId,
|
|
130
|
+
source_volume_id: input.disk.sourceVolumeId,
|
|
131
|
+
require_unique_zone: input.disk.requireUniqueZone,
|
|
132
|
+
})
|
|
133
|
+
.pipe(Effect.catchTag("Conflict", () => Effect.undefined));
|
|
134
|
+
if (created?.id !== undefined && created.id.length > 0) {
|
|
135
|
+
return (yield* waitUntilVolumeReady(input.appName, created.id)) ?? created;
|
|
136
|
+
}
|
|
137
|
+
const group = yield* listVolumeGroup(input.appName, input.name, input.region);
|
|
138
|
+
const hit = group.at(-1);
|
|
139
|
+
if (hit === undefined || hit.id === undefined) {
|
|
140
|
+
return yield* new VolumeNotCreated({
|
|
141
|
+
resourceName: input.name,
|
|
142
|
+
appName: input.appName,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return (yield* waitUntilVolumeReady(input.appName, hit.id)) ?? hit;
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
export const syncVolume = Effect.fn(function* (appName: string, volume: FlyVolume, disk: DiskSpec) {
|
|
149
|
+
const volumeId = volume.id;
|
|
150
|
+
if (volumeId === undefined || volumeId.length === 0) return volume;
|
|
151
|
+
let current = volume;
|
|
152
|
+
const sizeGb = Math.max(disk.sizeGb, MIN_SIZE_GB);
|
|
153
|
+
const observedSize = current.size_gb ?? 0;
|
|
154
|
+
if (sizeGb > observedSize) {
|
|
155
|
+
const extended = yield* machines.extendVolume({
|
|
156
|
+
app_name: appName,
|
|
157
|
+
volume_id: volumeId,
|
|
158
|
+
size_gb: sizeGb,
|
|
159
|
+
});
|
|
160
|
+
current = extended.volume ?? (yield* waitUntilVolumeReady(appName, volumeId)) ?? current;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const backupChanged =
|
|
164
|
+
disk.autoBackupEnabled !== undefined && disk.autoBackupEnabled !== current.auto_backup_enabled;
|
|
165
|
+
const retentionChanged =
|
|
166
|
+
disk.snapshotRetention !== undefined && disk.snapshotRetention !== current.snapshot_retention;
|
|
167
|
+
if (backupChanged || retentionChanged) {
|
|
168
|
+
current = yield* machines.updateVolume({
|
|
169
|
+
app_name: appName,
|
|
170
|
+
volume_id: volumeId,
|
|
171
|
+
auto_backup_enabled: disk.autoBackupEnabled,
|
|
172
|
+
snapshot_retention: disk.snapshotRetention,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
return current;
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Observe-ensure-sync a Fly volume group (`name` shared, `count`
|
|
180
|
+
* independent volumes). Extras are left in place for the caller to
|
|
181
|
+
* delete after the Machines that mount them are gone.
|
|
182
|
+
*/
|
|
183
|
+
export const ensureVolumeGroup = Effect.fn(function* (input: {
|
|
184
|
+
appName: string;
|
|
185
|
+
name: string;
|
|
186
|
+
region: string;
|
|
187
|
+
count: number;
|
|
188
|
+
disk: DiskSpec;
|
|
189
|
+
preferIds?: readonly string[];
|
|
190
|
+
}) {
|
|
191
|
+
const prefer = new Set((input.preferIds ?? []).filter((id) => id.length > 0));
|
|
192
|
+
let group = yield* listVolumeGroup(input.appName, input.name, input.region);
|
|
193
|
+
const preferred = group.filter((volume) => volume.id !== undefined && prefer.has(volume.id));
|
|
194
|
+
const rest = group.filter((volume) => volume.id === undefined || !prefer.has(volume.id));
|
|
195
|
+
group = [...preferred, ...rest];
|
|
196
|
+
|
|
197
|
+
let attempts = 0;
|
|
198
|
+
while (group.length < input.count && attempts < input.count + 3) {
|
|
199
|
+
attempts += 1;
|
|
200
|
+
const created = yield* createVolume({
|
|
201
|
+
appName: input.appName,
|
|
202
|
+
name: input.name,
|
|
203
|
+
region: input.region,
|
|
204
|
+
disk: input.disk,
|
|
205
|
+
});
|
|
206
|
+
if (created.id !== undefined && !group.some((volume) => volume.id === created.id)) {
|
|
207
|
+
group.push(created);
|
|
208
|
+
} else {
|
|
209
|
+
group = yield* listVolumeGroup(input.appName, input.name, input.region);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (group.length < input.count) {
|
|
213
|
+
return yield* new VolumeNotCreated({
|
|
214
|
+
resourceName: input.name,
|
|
215
|
+
appName: input.appName,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const kept = group.slice(0, input.count);
|
|
220
|
+
const extras = group.slice(input.count);
|
|
221
|
+
const synced: FlyVolume[] = [];
|
|
222
|
+
for (const volume of kept) {
|
|
223
|
+
synced.push(yield* syncVolume(input.appName, volume, input.disk));
|
|
224
|
+
}
|
|
225
|
+
return { volumes: synced, extras };
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
export const deleteVolume = Effect.fn(function* (appName: string, volumeId: string) {
|
|
229
|
+
if (appName.length === 0 || volumeId.length === 0) return;
|
|
230
|
+
yield* machines
|
|
231
|
+
.deleteVolume({
|
|
232
|
+
app_name: appName,
|
|
233
|
+
volume_id: volumeId,
|
|
234
|
+
})
|
|
235
|
+
.pipe(
|
|
236
|
+
Effect.catchTag("NotFound", () => Effect.void),
|
|
237
|
+
Effect.retry({
|
|
238
|
+
while: (e) => e._tag === "Conflict",
|
|
239
|
+
times: 8,
|
|
240
|
+
schedule: backoff,
|
|
241
|
+
}),
|
|
242
|
+
);
|
|
243
|
+
yield* waitUntilVolumeGone(appName, volumeId);
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
export const listOwnedVolumes = Effect.fn(function* () {
|
|
247
|
+
const apps = yield* listOwnedApps();
|
|
248
|
+
const groups = yield* Effect.forEach(
|
|
249
|
+
apps,
|
|
250
|
+
(app) =>
|
|
251
|
+
listVolumesByApp(app.appName).pipe(
|
|
252
|
+
Effect.map((volumes) =>
|
|
253
|
+
volumes.flatMap((volume) => {
|
|
254
|
+
if (!matchesAlchemyPhysicalName(volume.name)) return [];
|
|
255
|
+
const volumeId = volume.id;
|
|
256
|
+
if (volumeId === undefined || volumeId.length === 0) return [];
|
|
257
|
+
return [{ appName: app.appName, volumeId, volume }];
|
|
258
|
+
}),
|
|
259
|
+
),
|
|
260
|
+
),
|
|
261
|
+
{ concurrency: 8 },
|
|
262
|
+
);
|
|
263
|
+
return groups.flat();
|
|
264
|
+
});
|