Dagger
Search

crossplane-function

No long description provided.

Installation

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

Entrypoint

Return Type
CrossplaneFunction !
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@14a892e837adf6a6e6aec3d42c4304496ae8fd24 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@14a892e837adf6a6e6aec3d42c4304496ae8fd24 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@14a892e837adf6a6e6aec3d42c4304496ae8fd24 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".
imageRegistryString !-The image registry to push the function to.
imageTagString !-The image tag to push the function with. E.g. "latest".
Example
dagger -m github.com/stazis555/daggerverse/crossplane-function@14a892e837adf6a6e6aec3d42c4304496ae8fd24 call \
 build-crossplane-function --directory DIR_PATH --platform string --image-registry string --image-tag string
func (m *myModule) example(directory *Directory, platform string, imageRegistry string, imageTag string) *Container  {
	return dag.
			CrossplaneFunction().
			BuildCrossplaneFunction(directory, platform, imageRegistry, imageTag)
}
@function
def example(directory: dagger.Directory, platform: str, image_registry: str, image_tag: str) -> dagger.Container:
	return (
		dag.crossplane_function()
		.build_crossplane_function(directory, platform, image_registry, image_tag)
	)
@func()
example(directory: Directory, platform: string, imageRegistry: string, imageTag: string): Container {
	return dag
		.crossplaneFunction()
		.buildCrossplaneFunction(directory, platform, imageRegistry, imageTag)
}