gcp
No long description provided.
Installation
dagger install github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6Entrypoint
Return Type
Gcp !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| credentialsJson | Secret | - | No description provided |
| workloadIdentityProvider | String | - | No description provided |
| workloadIdentityToken | Secret | - | No description provided |
| registries | [String ! ] | - | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
func (m *MyModule) Example() *dagger.Gcp {
return dag.
Gcp()
}@function
def example() -> dagger.Gcp:
return (
dag.gcp()
)@func()
example(): Gcp {
return dag
.gcp()
}Types
Gcp 🔗
mount() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
mount --ctr IMAGE:TAGfunc (m *MyModule) Example(ctr *dagger.Container) *dagger.Container {
return dag.
Gcp().
Mount(ctr)
}@function
def example(ctr: dagger.Container) -> dagger.Container:
return (
dag.gcp()
.mount(ctr)
)@func()
example(ctr: Container): Container {
return dag
.gcp()
.mount(ctr)
}registryAuth() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-auth --ctr IMAGE:TAGfunc (m *MyModule) Example(ctr *dagger.Container) *dagger.Container {
return dag.
Gcp().
RegistryAuth(ctr)
}@function
def example(ctr: dagger.Container) -> dagger.Container:
return (
dag.gcp()
.registry_auth(ctr)
)@func()
example(ctr: Container): Container {
return dag
.gcp()
.registryAuth(ctr)
}registryConfig() 🔗
Return Type
RegistryConfig !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | String ! | - | No description provided |
| owner | String | - | No description provided |
| mode | Integer | - | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-config --path stringfunc (m *MyModule) Example(path string) *dagger.GcpRegistryConfig {
return dag.
Gcp().
RegistryConfig(path)
}@function
def example(path: str) -> dagger.GcpRegistryConfig:
return (
dag.gcp()
.registry_config(path)
)@func()
example(path: string): GcpRegistryConfig {
return dag
.gcp()
.registryConfig(path)
}getAccessToken() 🔗
Return Type
Secret !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| format | String | "text" | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
get-access-tokenfunc (m *MyModule) Example() *dagger.Secret {
return dag.
Gcp().
GetAccessToken()
}@function
def example() -> dagger.Secret:
return (
dag.gcp()
.get_access_token()
)@func()
example(): Secret {
return dag
.gcp()
.getAccessToken()
}RegistryConfig 🔗
path() 🔗
Path to mount the secret into (a common path is ~/.docker/config.json).
Return Type
String ! Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-config --path string \
pathfunc (m *MyModule) Example(ctx context.Context, path string) string {
return dag.
Gcp().
RegistryConfig(path).
Path(ctx)
}@function
async def example(path: str) -> str:
return await (
dag.gcp()
.registry_config(path)
.path()
)@func()
async example(path: string): Promise<string> {
return dag
.gcp()
.registryConfig(path)
.path()
}owner() 🔗
A user:group to set for the mounted secret.
Return Type
String ! Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-config --path string \
ownerfunc (m *MyModule) Example(ctx context.Context, path string) string {
return dag.
Gcp().
RegistryConfig(path).
Owner(ctx)
}@function
async def example(path: str) -> str:
return await (
dag.gcp()
.registry_config(path)
.owner()
)@func()
async example(path: string): Promise<string> {
return dag
.gcp()
.registryConfig(path)
.owner()
}mode() 🔗
Permission given to the mounted secret (e.g., 0600).
Return Type
Integer ! Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-config --path string \
modefunc (m *MyModule) Example(ctx context.Context, path string) int {
return dag.
Gcp().
RegistryConfig(path).
Mode(ctx)
}@function
async def example(path: str) -> int:
return await (
dag.gcp()
.registry_config(path)
.mode()
)@func()
async example(path: string): Promise<number> {
return dag
.gcp()
.registryConfig(path)
.mode()
}mount() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6 call \
registry-config --path string \
mount --ctr IMAGE:TAGfunc (m *MyModule) Example(path string, ctr *dagger.Container) *dagger.Container {
return dag.
Gcp().
RegistryConfig(path).
Mount(ctr)
}@function
def example(path: str, ctr: dagger.Container) -> dagger.Container:
return (
dag.gcp()
.registry_config(path)
.mount(ctr)
)@func()
example(path: string, ctr: Container): Container {
return dag
.gcp()
.registryConfig(path)
.mount(ctr)
}