Dagger
Search

crossplane

Copyright © 2024 Patrick Hermann patrick.hermann@sva.de

Installation

dagger install github.com/stuttgart-things/dagger/crossplane@v0.0.3

Entrypoint

Return Type
Crossplane !
Arguments
NameTypeDefault ValueDescription
xplaneContainerContainer -xplane container It need contain xplane
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
func (m *myModule) example() *Crossplane  {
	return dag.
			Crossplane()
}
@function
def example() -> dag.Crossplane:
	return (
		dag.crossplane()
	)
@func()
example(): Crossplane {
	return dag
		.crossplane()
}

Types

Crossplane 🔗

xplaneContainer() 🔗

Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 xplane-container
func (m *myModule) example() *Container  {
	return dag.
			Crossplane().
			XplaneContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.crossplane()
		.xplane_container()
	)
@func()
example(): Container {
	return dag
		.crossplane()
		.xplaneContainer()
}

package() 🔗

Package Crossplane Package

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 package --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory  {
	return dag.
			Crossplane().
			Package(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.crossplane()
		.package(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.crossplane()
		.package(src)
}

push() 🔗

Push Crossplane Package

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
registryString !"ghcr.io"No description provided
usernameString !-No description provided
passwordSecret !-No description provided
destinationString !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 push --src DIR_PATH --registry string --username string --password env:MYSECRET --destination string
func (m *myModule) example(ctx context.Context, src *Directory, registry string, username string, password *Secret, destination string) string  {
	return dag.
			Crossplane().
			Push(ctx, src, registry, username, password, destination)
}
@function
async def example(src: dagger.Directory, registry: str, username: str, password: dagger.Secret, destination: str) -> str:
	return await (
		dag.crossplane()
		.push(src, registry, username, password, destination)
	)
@func()
async example(src: Directory, registry: string, username: string, password: Secret, destination: string): Promise<string> {
	return dag
		.crossplane()
		.push(src, registry, username, password, destination)
}

getXplaneContainer() 🔗

GetXplaneContainer return the default image for helm

Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 get-xplane-container
func (m *myModule) example() *Container  {
	return dag.
			Crossplane().
			GetXplaneContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.crossplane()
		.get_xplane_container()
	)
@func()
example(): Container {
	return dag
		.crossplane()
		.getXplaneContainer()
}

initCustomPackage() 🔗

Init Crossplane Package based on custom templates and a configuration file

Return Type
Directory !
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 init-custom-package
func (m *myModule) example() *Directory  {
	return dag.
			Crossplane().
			InitCustomPackage()
}
@function
def example() -> dagger.Directory:
	return (
		dag.crossplane()
		.init_custom_package()
	)
@func()
example(): Directory {
	return dag
		.crossplane()
		.initCustomPackage()
}

initPackage() 🔗

Init Crossplane Package

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/crossplane@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 init-package --name string
func (m *myModule) example(name string) *Directory  {
	return dag.
			Crossplane().
			InitPackage(name)
}
@function
def example(name: str) -> dagger.Directory:
	return (
		dag.crossplane()
		.init_package(name)
	)
@func()
example(name: string): Directory {
	return dag
		.crossplane()
		.initPackage(name)
}