Dagger
Search

updatecli

Reusable Updatecli runtime for Dagger pipelines.

Installation

dagger install github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832

Entrypoint

Return Type
Updatecli !
Arguments
NameTypeDefault ValueDescription
sourceDirectory nullOptional working tree for local targets
imageRegistryString "ghcr.io"Updatecli runtime image registry
imageRepositoryString "updatecli/updatecli"Updatecli runtime image repository
imageTagString "v0.123.0"Updatecli runtime image tag
containerUserIdString "65532"Container execution user
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
func (m *MyModule) Example() *dagger.Updatecli  {
	return dag.
			Updatecli()
}
@function
def example() -> dagger.Updatecli:
	return (
		dag.updatecli()
	)
@func()
example(): Updatecli {
	return dag
		.updatecli()
}

Types

Updatecli 🔗

Reusable Updatecli runtime without source-specific orchestration.

appliedSource() 🔗

Apply the manifest and return the resulting /work tree, not SCM clones.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
configFile !-

Updatecli manifest whose targets update the local working tree

values[File ! ] null

Optional values files, merged in supplied order

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 applied-source --config file:path
func (m *MyModule) Example(config *dagger.File) *dagger.Directory  {
	return dag.
			Updatecli().
			Appliedsource(config)
}
@function
def example(config: dagger.File) -> dagger.Directory:
	return (
		dag.updatecli()
		.appliedsource(config)
	)
@func()
example(config: File): Directory {
	return dag
		.updatecli()
		.appliedSource(config)
}

apply() 🔗

Apply pipeline changes, commits, and actions declared by the manifest.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
configFile !-

Updatecli YAML or JSON manifest, including Go templates

values[File ! ] null

Optional values files, merged in supplied order

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 apply --config file:path
func (m *MyModule) Example(ctx context.Context, config *dagger.File) string  {
	return dag.
			Updatecli().
			Apply(ctx, config)
}
@function
async def example(config: dagger.File) -> str:
	return await (
		dag.updatecli()
		.apply(config)
	)
@func()
async example(config: File): Promise<string> {
	return dag
		.updatecli()
		.apply(config)
}

container() 🔗

Return the runtime with a writable home and working tree.

Return Type
Container !
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Updatecli().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.updatecli()
		.container()
	)
@func()
example(): Container {
	return dag
		.updatecli()
		.container()
}

diff() 🔗

Preview pipeline changes and return combined stdout and stderr.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
configFile !-

Updatecli YAML or JSON manifest, including Go templates

values[File ! ] null

Optional values files, merged in supplied order

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 diff --config file:path
func (m *MyModule) Example(ctx context.Context, config *dagger.File) string  {
	return dag.
			Updatecli().
			Diff(ctx, config)
}
@function
async def example(config: dagger.File) -> str:
	return await (
		dag.updatecli()
		.diff(config)
	)
@func()
async example(config: File): Promise<string> {
	return dag
		.updatecli()
		.diff(config)
}

manifestShow() 🔗

Render manifests using Updatecli without running sources or targets.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
configFile !-

Updatecli manifest to render without executing pipelines

values[File ! ] null

Optional values files, merged in supplied order

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 manifest-show --config file:path
func (m *MyModule) Example(ctx context.Context, config *dagger.File) string  {
	return dag.
			Updatecli().
			Manifestshow(ctx, config)
}
@function
async def example(config: dagger.File) -> str:
	return await (
		dag.updatecli()
		.manifestshow(config)
	)
@func()
async example(config: File): Promise<string> {
	return dag
		.updatecli()
		.manifestShow(config)
}

withDirectory() 🔗

Add helper files owned by the runtime user.

Return Type
Updatecli !
Arguments
NameTypeDefault ValueDescription
pathString !-

Destination path inside the runtime container

directoryDirectory !-

Directory containing helpers or other runtime files

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 with-directory --path string --directory DIR_PATH
func (m *MyModule) Example(path string, directory *dagger.Directory) *dagger.Updatecli  {
	return dag.
			Updatecli().
			Withdirectory(path, directory)
}
@function
def example(path: str, directory: dagger.Directory) -> dagger.Updatecli:
	return (
		dag.updatecli()
		.withdirectory(path, directory)
	)
@func()
example(path: string, directory: Directory): Updatecli {
	return dag
		.updatecli()
		.withDirectory(path, directory)
}

withEnvVariable() 🔗

Add a plain environment variable; use with_secret_variable for tokens.

Return Type
Updatecli !
Arguments
NameTypeDefault ValueDescription
nameString !-

Environment variable name

valueString !-

Non-secret environment variable value

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 with-env-variable --name string --value string
func (m *MyModule) Example(name string, value string) *dagger.Updatecli  {
	return dag.
			Updatecli().
			Withenvvariable(name, value)
}
@function
def example(name: str, value: str) -> dagger.Updatecli:
	return (
		dag.updatecli()
		.withenvvariable(name, value)
	)
@func()
example(name: string, value: string): Updatecli {
	return dag
		.updatecli()
		.withEnvVariable(name, value)
}

withSecretVariable() 🔗

Add a secret environment variable without exposing its value in logs.

Return Type
Updatecli !
Arguments
NameTypeDefault ValueDescription
nameString !-

Secret environment variable name

secretSecret !-

Secret value supplied by the caller

Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
 with-secret-variable --name string --secret env:MYSECRET
func (m *MyModule) Example(name string, secret *dagger.Secret) *dagger.Updatecli  {
	return dag.
			Updatecli().
			Withsecretvariable(name, secret)
}
@function
def example(name: str, secret: dagger.Secret) -> dagger.Updatecli:
	return (
		dag.updatecli()
		.withsecretvariable(name, secret)
	)
@func()
example(name: string, secret: Secret): Updatecli {
	return dag
		.updatecli()
		.withSecretVariable(name, secret)
}