Dagger
Search

echo-mod

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/echo@0829ea4320492949a4ad54d7855cd38623d06de6

Entrypoint

Return Type
EchoMod !
Arguments
NameTypeDescription
secretSecret No description provided
Example
dagger -m github.com/mjb141/daggerverse/echo@0829ea4320492949a4ad54d7855cd38623d06de6 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
idSecret !-A reference to a secret value, which can be handled more safely than the value itself.
tokenSecret !-A reference to a secret value, which can be handled more safely than the value itself.
keyString !-No description provided
pIdString !-No description provided
envString !-No description provided
Example
dagger -m github.com/mjb141/daggerverse/echo@0829ea4320492949a4ad54d7855cd38623d06de6 call \
 with-secret --id env:MYSECRET --token env:MYSECRET --key string --p-id string --env string
func (m *myModule) example(id *Secret, token *Secret, key string, pId string, env string) *EchoMod  {
	return dag.
			EchoMod().
			WithSecret(id, token, key, pId, env)
}
@function
def example(id: dagger.Secret, token: dagger.Secret, key: str, p_id: str, env: str) -> dag.EchoMod:
	return (
		dag.echo_mod()
		.with_secret(id, token, key, p_id, env)
	)
@func()
example(id: Secret, token: Secret, key: string, pId: string, env: string): EchoMod {
	return dag
		.echoMod()
		.withSecret(id, token, key, pId, env)
}

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@0829ea4320492949a4ad54d7855cd38623d06de6 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)
}