crossplane-function
No long description provided.
Installation
dagger install github.com/stazis555/daggerverse/crossplane-function@v1.0.0Entrypoint
Return Type
CrossplaneFunction ! Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@437c397f13b95dd1c67a146cd05630494771f0f9 call \
func (m *MyModule) Example() *dagger.CrossplaneFunction {
return dag.
CrossplaneFunction()
}@function
def example() -> dagger.CrossplaneFunction:
return (
dag.crossplane_function()
)@func()
example(): CrossplaneFunction {
return dag
.crossplaneFunction()
}Types
CrossplaneFunction 🔗
withRegistryAuth() 🔗
Add credentials for a registry.
Return Type
CrossplaneFunction !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| address | String ! | - | The address of the registry. |
| username | String ! | - | The username to authenticate with. |
| secret | Secret ! | - | The environment variable name containing the password to authenticate with. NOT the password itself. |
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@437c397f13b95dd1c67a146cd05630494771f0f9 call \
with-registry-auth --address string --username string --secret env:MYSECRETfunc (m *MyModule) Example(address string, username string, secret *dagger.Secret) *dagger.CrossplaneFunction {
return dag.
CrossplaneFunction().
WithRegistryAuth(address, username, secret)
}@function
def example(address: str, username: str, secret: dagger.Secret) -> dagger.CrossplaneFunction:
return (
dag.crossplane_function()
.with_registry_auth(address, username, secret)
)@func()
example(address: string, username: string, secret: Secret): CrossplaneFunction {
return dag
.crossplaneFunction()
.withRegistryAuth(address, username, secret)
}withoutRegistryAuth() 🔗
Uses unauthenticated access to a registry.
Return Type
CrossplaneFunction !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| address | String ! | - | The address of the registry. |
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@437c397f13b95dd1c67a146cd05630494771f0f9 call \
without-registry-auth --address stringfunc (m *MyModule) Example(address string) *dagger.CrossplaneFunction {
return dag.
CrossplaneFunction().
WithoutRegistryAuth(address)
}@function
def example(address: str) -> dagger.CrossplaneFunction:
return (
dag.crossplane_function()
.without_registry_auth(address)
)@func()
example(address: string): CrossplaneFunction {
return dag
.crossplaneFunction()
.withoutRegistryAuth(address)
}buildCrossplaneFunction() 🔗
Build and push a Crossplane function.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| directory | Directory ! | - | The directory containing the function code. |
| platform | String ! | - | The platform to build the function for. E.g. "linux/amd64". |
| sock | Socket ! | - | The Docker socket to use. E.g. "/var/run/docker.sock". |
| imageRegistry | String ! | - | The image registry to push the function to. |
| imageTag | String ! | - | The image tag to push the function with. E.g. "latest". |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(directory *dagger.Directory, platform string, sock *dagger.Socket, imageRegistry string, imageTag string) *dagger.Container {
return dag.
CrossplaneFunction().
BuildCrossplaneFunction(directory, platform, sock, imageRegistry, imageTag)
}@function
def example(directory: dagger.Directory, platform: str, sock: dagger.Socket, image_registry: str, image_tag: str) -> dagger.Container:
return (
dag.crossplane_function()
.build_crossplane_function(directory, platform, sock, image_registry, image_tag)
)@func()
example(directory: Directory, platform: string, sock: Socket, imageRegistry: string, imageTag: string): Container {
return dag
.crossplaneFunction()
.buildCrossplaneFunction(directory, platform, sock, imageRegistry, imageTag)
}