hello
This module has been generated via dagger init and serves as a reference tobasic 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/softwaredevelop/daggerverse/hello@7595da3da6ddbc64763f4a6b2406316657ebf64eEntrypoint
Return Type
Hello !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String | - | Custom image reference in "repository:tag" format to use as a base container. |
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@7595da3da6ddbc64763f4a6b2406316657ebf64e call \
func (m *MyModule) Example() *dagger.Hello {
return dag.
Hello()
}@function
def example() -> dagger.Hello:
return (
dag.hello()
)@func()
example(): Hello {
return dag
.hello()
}Types
Hello 🔗
Hello is a struct that provides echo functions.
helloContainer() 🔗
HelloContainer executes a container with the provided string value.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| stringArg | String ! | - | StringArg is the string value to be printed. |
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@7595da3da6ddbc64763f4a6b2406316657ebf64e call \
hello-container --string-arg stringfunc (m *MyModule) Example(stringArg string) *dagger.Container {
return dag.
Hello().
Hellocontainer(stringArg)
}@function
def example(stringarg: str) -> dagger.Container:
return (
dag.hello()
.hellocontainer(stringarg)
)@func()
example(stringArg: string): Container {
return dag
.hello()
.helloContainer(stringArg)
}helloString() 🔗
HelloString returns the string value provided to the Hello struct.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| stringArg | String ! | - | StringArg is the string value to be printed. |
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@7595da3da6ddbc64763f4a6b2406316657ebf64e call \
hello-string --string-arg stringfunc (m *MyModule) Example(stringArg string) *dagger.Container {
return dag.
Hello().
Hellostring(stringArg)
}@function
def example(stringarg: str) -> dagger.Container:
return (
dag.hello()
.hellostring(stringarg)
)@func()
example(stringArg: string): Container {
return dag
.hello()
.helloString(stringArg)
}