Dagger
Search

crossplane-function

No long description provided.

Installation

dagger install github.com/stazis555/daggerverse/crossplane-function@v1.0.0

Entrypoint

Return Type
CrossplaneFunction !
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@437c397f13b95dd1c67a146cd05630494771f0f9 call \
func (m *myModule) example() *CrossplaneFunction  {
	return dag.
			CrossplaneFunction()
}
@function
def example() -> dag.CrossplaneFunction:
	return (
		dag.crossplane_function()
	)
@func()
example(): CrossplaneFunction {
	return dag
		.crossplaneFunction()
}

Types

CrossplaneFunction 🔗

withRegistryAuth() 🔗

Add credentials for a registry.

Return Type
CrossplaneFunction !
Arguments
NameTypeDefault ValueDescription
addressString !-The address of the registry.
usernameString !-The username to authenticate with.
secretSecret !-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:MYSECRET
func (m *myModule) example(address string, username string, secret *Secret) *CrossplaneFunction  {
	return dag.
			CrossplaneFunction().
			WithRegistryAuth(address, username, secret)
}
@function
def example(address: str, username: str, secret: dagger.Secret) -> dag.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
NameTypeDefault ValueDescription
addressString !-The address of the registry.
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@437c397f13b95dd1c67a146cd05630494771f0f9 call \
 without-registry-auth --address string
func (m *myModule) example(address string) *CrossplaneFunction  {
	return dag.
			CrossplaneFunction().
			WithoutRegistryAuth(address)
}
@function
def example(address: str) -> dag.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
NameTypeDefault ValueDescription
directoryDirectory !-The directory containing the function code.
platformString !-The platform to build the function for. E.g. "linux/amd64".
sockSocket !-The Docker socket to use. E.g. "/var/run/docker.sock".
imageRegistryString !-The image registry to push the function to.
imageTagString !-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 *Directory, platform string, sock *Socket, imageRegistry string, imageTag string) *Container  {
	return dag.
			CrossplaneFunction().
			BuildCrossplaneFunction(directory, platform, sock, imageRegistry, imageTag)
}
@function
def example(directory: dagger.Directory, platform: str, sock: dag.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)
}