Dagger
Search

controller-gen

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/cloudnative-pg/daggerverse/controller-gen@79e82e31a3c4cb05e39c19a6cb0f5730f381b313

Entrypoint

Return Type
ControllerGen !
Arguments
NameTypeDescription
controllerGenVersionString ControllerGen to use. renovate image: datasource=github-tags depName=kubernetes-sigs/controller-tools versioning=semver renovate: datasource=github-tags depName=protocolbuffers/protobuf versioning="regex:^v?(?<major>\\d
golangVersionString renovate image: datasource=docker depName=golang versioning=docker
ctrContainer No description provided
Example
dagger -m github.com/cloudnative-pg/daggerverse/controller-gen@79e82e31a3c4cb05e39c19a6cb0f5730f381b313 call \
func (m *myModule) example() *ControllerGen  {
	return dag.
			ControllerGen()
}
@function
def example() -> dag.ControllerGen:
	return (
		dag.controller_gen()
	)
@func()
example(): ControllerGen {
	return dag
		.controllerGen()
}

Types

ControllerGen 🔗

controllerGen() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-The directory of the repository.
args[String ! ] -A list of arguments to pass to controller-gen.
Example
dagger -m github.com/cloudnative-pg/daggerverse/controller-gen@79e82e31a3c4cb05e39c19a6cb0f5730f381b313 call \
 controller-gen --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			ControllerGen().
			ControllerGen(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.controller_gen()
		.controller_gen(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.controllerGen()
		.controllerGen(source)
}