echo-mod
No long description provided.
Installation
dagger install github.com/mjb141/daggerverse/echo@f06473a72017422f87e82739ed367dbfcd9bb114Entrypoint
Return Type
EchoMod !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| secret | Secret | null | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/echo@f06473a72017422f87e82739ed367dbfcd9bb114 call \
func (m *MyModule) Example() *dagger.EchoMod {
return dag.
EchoMod()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| authId | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| authSecret | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| secretName | String ! | - | No description provided |
| secretPath | String ! | - | No description provided |
| projectId | String ! | - | No description provided |
| env | String ! | - | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/echo@f06473a72017422f87e82739ed367dbfcd9bb114 call \
with-secret --auth-id env:MYSECRET --auth-secret env:MYSECRET --secret-name string --secret-path string --project-id string --env stringfunc (m *MyModule) Example(authId *dagger.Secret, authSecret *dagger.Secret, secretName string, secretPath string, projectId string, env string) *dagger.EchoMod {
return dag.
EchoMod().
WithSecret(authId, authSecret, secretName, secretPath, projectId, env)
}@function
def example(auth_id: dagger.Secret, auth_secret: dagger.Secret, secret_name: str, secret_path: str, project_id: str, env: str) -> dagger.EchoMod:
return (
dag.echo_mod()
.with_secret(auth_id, auth_secret, secret_name, secret_path, project_id, env)
)@func()
example(authId: Secret, authSecret: Secret, secretName: string, secretPath: string, projectId: string, env: string): EchoMod {
return dag
.echoMod()
.withSecret(authId, authSecret, secretName, secretPath, projectId, env)
}echo() 🔗
Echo a provided ‘word’ or a secret fetched prior
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| word | String ! | "Hello" | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/echo@f06473a72017422f87e82739ed367dbfcd9bb114 call \
echo --word stringfunc (m *MyModule) Example(word string) *dagger.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)
}