helloSecret
No long description provided.
Installation
dagger install github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9Entrypoint
Return Type
HelloSecret Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
func (m *MyModule) Example() *dagger.HelloSecret {
return dag.
HelloSecret()
}@function
def example() -> dagger.HelloSecret:
return (
dag.hello_secret()
)@func()
example(): HelloSecret {
return dag
.helloSecret()
}Types
HelloSecret 🔗
A Dagger module for saying hello to the world with a secret greeting ;) Original version: github.com/shykes/daggerverse/helloWorld
greeting() 🔗
Return Type
Secret ! Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
greetingfunc (m *MyModule) Example() *dagger.Secret {
return dag.
HelloSecret().
Greeting()
}@function
def example() -> dagger.Secret:
return (
dag.hello_secret()
.greeting()
)@func()
example(): Secret {
return dag
.helloSecret()
.greeting()
}name() 🔗
Return Type
String ! Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
namefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
HelloSecret().
Name(ctx)
}@function
async def example() -> str:
return await (
dag.hello_secret()
.name()
)@func()
async example(): Promise<string> {
return dag
.helloSecret()
.name()
}myFunction() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| stringArg | String ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
my-function --string-arg stringfunc (m *MyModule) Example(stringArg string) *dagger.Container {
return dag.
HelloSecret().
MyFunction(stringArg)
}@function
def example(string_arg: str) -> dagger.Container:
return (
dag.hello_secret()
.my_function(string_arg)
)@func()
example(stringArg: string): Container {
return dag
.helloSecret()
.myFunction(stringArg)
}withGreeting() 🔗
Change the greeting
Return Type
HelloSecret !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| greeting | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
with-greeting --greeting env:MYSECRETfunc (m *MyModule) Example(greeting *dagger.Secret) *dagger.HelloSecret {
return dag.
HelloSecret().
WithGreeting(greeting)
}@function
def example(greeting: dagger.Secret) -> dagger.HelloSecret:
return (
dag.hello_secret()
.with_greeting(greeting)
)@func()
example(greeting: Secret): HelloSecret {
return dag
.helloSecret()
.withGreeting(greeting)
}withName() 🔗
Change the name
Return Type
HelloSecret !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
with-name --name stringfunc (m *MyModule) Example(name string) *dagger.HelloSecret {
return dag.
HelloSecret().
WithName(name)
}@function
def example(name: str) -> dagger.HelloSecret:
return (
dag.hello_secret()
.with_name(name)
)@func()
example(name: string): HelloSecret {
return dag
.helloSecret()
.withName(name)
}message() 🔗
Say hello to the world!
Return Type
String ! Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
messagefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
HelloSecret().
Message(ctx)
}@function
async def example() -> str:
return await (
dag.hello_secret()
.message()
)@func()
async example(): Promise<string> {
return dag
.helloSecret()
.message()
}shout() 🔗
SHOUT HELLO TO THE WORLD!
Return Type
String ! Example
dagger -m github.com/jpadams/daggerverse/helloSecret@9890b76992bf840bad7b36625b9e45df31fadde9 call \
shoutfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
HelloSecret().
Shout(ctx)
}@function
async def example() -> str:
return await (
dag.hello_secret()
.shout()
)@func()
async example(): Promise<string> {
return dag
.helloSecret()
.shout()
}