Dagger
Search

utils

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/Dudesons/daggerverse/utils@aa4374e0a17197ef1a0dfaaf77fbb50a66a7c0ec

Entrypoint

Return Type
Utils
Example
dagger -m github.com/Dudesons/daggerverse/utils@aa4374e0a17197ef1a0dfaaf77fbb50a66a7c0ec call \
func (m *myModule) example() *Utils  {
	return dag.
			Utils()
}
@function
def example() -> dag.Utils:
	return (
		dag.utils()
	)
@func()
example(): Utils {
	return dag
		.utils()
}

Types

Utils 🔗

withDotEnvSecret() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
dataSecret !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/utils@aa4374e0a17197ef1a0dfaaf77fbb50a66a7c0ec call \
 with-dot-env-secret --ctr IMAGE:TAG --data env:MYSECRET
func (m *myModule) example(ctr *Container, data *Secret) *Container  {
	return dag.
			Utils().
			WithDotEnvSecret(ctr, data)
}
@function
def example(ctr: dagger.Container, data: dagger.Secret) -> dagger.Container:
	return (
		dag.utils()
		.with_dot_env_secret(ctr, data)
	)
@func()
example(ctr: Container, data: Secret): Container {
	return dag
		.utils()
		.withDotEnvSecret(ctr, data)
}