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@2a217026afe8c5e53c15189baf42ea7179d7285f
Entrypoint
Return Type
Hello !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container | - | ctr is an optional argument that specifies a container. |
stringArg | String | "Hello, Daggerverse!" | stringArg is an optional argument that specifies a string value. |
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@2a217026afe8c5e53c15189baf42ea7179d7285f call \
func (m *myModule) example() *Hello {
return dag.
Hello()
}
@function
def example() -> dag.Hello:
return (
dag.hello()
)
@func()
example(): Hello {
return dag
.hello()
}
Types
Hello 🔗
Hello is a struct that provides echo functions.
ctr() 🔗
Return Type
Container !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@2a217026afe8c5e53c15189baf42ea7179d7285f call \
ctr
func (m *myModule) example() *Container {
return dag.
Hello().
Ctr()
}
@function
def example() -> dagger.Container:
return (
dag.hello()
.ctr()
)
@func()
example(): Container {
return dag
.hello()
.ctr()
}
stringArg() 🔗
Return Type
String !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@2a217026afe8c5e53c15189baf42ea7179d7285f call \
string-arg
func (m *myModule) example(ctx context.Context) string {
return dag.
Hello().
StringArg(ctx)
}
@function
async def example() -> str:
return await (
dag.hello()
.string_arg()
)
@func()
async example(): Promise<string> {
return dag
.hello()
.stringArg()
}
helloString() 🔗
HelloString returns the string value provided to the Hello struct.
Return Type
String !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@2a217026afe8c5e53c15189baf42ea7179d7285f call \
hello-string
func (m *myModule) example(ctx context.Context) string {
return dag.
Hello().
HelloString(ctx)
}
@function
async def example() -> str:
return await (
dag.hello()
.hello_string()
)
@func()
async example(): Promise<string> {
return dag
.hello()
.helloString()
}
helloContainer() 🔗
HelloContainer executes a container with the provided string value.
Return Type
String !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@2a217026afe8c5e53c15189baf42ea7179d7285f call \
hello-container
func (m *myModule) example(ctx context.Context) string {
return dag.
Hello().
HelloContainer(ctx)
}
@function
async def example() -> str:
return await (
dag.hello()
.hello_container()
)
@func()
async example(): Promise<string> {
return dag
.hello()
.helloContainer()
}