Google Cloud APIs as WebAssembly Components (WASI Preview 2).
Google Cloud authentication component. Exports gcloud:auth/token-source interface.
Supports Application Default Credentials (ADC) with authorized_user refresh token flow.
cd auth
make buildGoogle Cloud Storage component. Exports gcloud:storage/buckets interface.
cd storage
make buildGoogle Cloud Secret Manager component. Exports gcloud:secretmanager/secrets interface.
cd secretmanager
make buildDemonstrates using the gcloud:auth/token-source interface to obtain an access token.
cd examples/auth
make build
make runDemonstrates using the gcloud:storage/buckets interface to list buckets.
cd examples/storage
make build
GOOGLE_CLOUD_PROJECT=your-project make runDemonstrates using the gcloud:secretmanager/secrets interface to access a secret.
cd examples/secretmanager
make build
SECRET_NAME=projects/your-project/secrets/your-secret/versions/latest make runcargo build --target wasm32-wasip2builds each component/example as a WASM componentwac composecomposes components using a declarativecompose.wacfile to satisfy importswasmtime runexecutes the composed component