Dagger
Search

utils

This file contains the container utils module, which is a set of functions that can be used to modify a container and enhance its functionality in different ways.

Installation

dagger install github.com/marcosnils/daggerverse/utils@v0.2.4

Entrypoint

Return Type
Utils
Example
func (m *myModule) example() *Utils  {
	return dag.
			Utils()
}
@function
def example() -> dag.Utils:
	return (
		dag.utils()
	)
@func()
example(): Utils {
	return dag
		.utils()
}

Types

Utils 🔗

withCommands() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
cContainer !-No description provided
cmds[List ! ] !-No description provided
Example
dagger -m github.com/marcosnils/daggerverse/utils@97b98801474ac75ebb9e7964820043c66d66e9f2 call \
 with-commands --c IMAGE:TAG --cmds list1 --cmds list2
func (m *myModule) example(c *Container, cmds []) *Container  {
	return dag.
			Utils().
			WithCommands(c, cmds)
}
@function
def example(c: dagger.Container, cmds: List[]) -> dagger.Container:
	return (
		dag.utils()
		.with_commands(c, cmds)
	)
@func()
example(c: Container, cmds: []): Container {
	return dag
		.utils()
		.withCommands(c, cmds)
}