gcp
No long description provided.
Installation
dagger install github.com/jsiebens/dagger-gcp@c37a12b689e1632331f24a15c95d4afda37dfcf6
Entrypoint
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() *Gcp {
return dag.
Gcp()
}
@function
def example() -> dag.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:TAG
func (m *myModule) example(ctr *Container) *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:TAG
func (m *myModule) example(ctr *Container) *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 string
func (m *myModule) example(path string) *GcpRegistryConfig {
return dag.
Gcp().
RegistryConfig(path)
}
@function
def example(path: str) -> dag.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-token
func (m *myModule) example() *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 \
path
func (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 \
owner
func (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 \
mode
func (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:TAG
func (m *myModule) example(path string, ctr *Container) *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)
}