Dagger
Search

echo-mod

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/echo@739f3dc2773056d01f770fb716fed124b9645efb

Entrypoint

Return Type
EchoMod !
Arguments
NameTypeDescription
secretSecret No description provided
Example
dagger -m github.com/mjb141/daggerverse/echo@739f3dc2773056d01f770fb716fed124b9645efb call \
func (m *myModule) example() *EchoMod  {
	return dag.
			EchoMod()
}
@function
def example() -> dag.EchoMod:
	return (
		dag.echo_mod()
	)
@func()
example(): EchoMod {
	return dag
		.echoMod()
}

Types

EchoMod 🔗

This module will just echo a value from another module

withSecret() 🔗

Fetch a secret from Infisical

Return Type
EchoMod !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
tokenSecret !-A reference to a secret value, which can be handled more safely than the value itself.
envString !"dev"No description provided
pathString !"/"No description provided
Example
dagger -m github.com/mjb141/daggerverse/echo@739f3dc2773056d01f770fb716fed124b9645efb call \
 with-secret --name string --token env:MYSECRET --env string --path string
func (m *myModule) example(name string, token *Secret, env string, path string) *EchoMod  {
	return dag.
			EchoMod().
			WithSecret(name, token, env, path)
}
@function
def example(name: str, token: dagger.Secret, env: str, path: str) -> dag.EchoMod:
	return (
		dag.echo_mod()
		.with_secret(name, token, env, path)
	)
@func()
example(name: string, token: Secret, env: string, path: string): EchoMod {
	return dag
		.echoMod()
		.withSecret(name, token, env, path)
}

echo() 🔗

Echo a provided ‘word’ or a secret fetched prior

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
wordString !"Hello"No description provided
Example
dagger -m github.com/mjb141/daggerverse/echo@739f3dc2773056d01f770fb716fed124b9645efb call \
 echo --word string
func (m *myModule) example(word string) *Container  {
	return dag.
			EchoMod().
			Echo(word)
}
@function
def example(word: str) -> dagger.Container:
	return (
		dag.echo_mod()
		.echo(word)
	)
@func()
example(word: string): Container {
	return dag
		.echoMod()
		.echo(word)
}