Dagger
Search

hello

This module has been generated via dagger init and serves as a reference to
basic 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@a2373d644a6b38619703fcf88ece56ca7d5a6bf7

Entrypoint

Return Type
Hello !
Arguments
NameTypeDefault ValueDescription
ctrContainer -ctr is an optional argument that specifies a container.
stringArgString "Hello, Daggerverse!"stringArg is an optional argument that specifies a string value.
Example
dagger -m github.com/softwaredevelop/daggerverse/hello@a2373d644a6b38619703fcf88ece56ca7d5a6bf7 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@a2373d644a6b38619703fcf88ece56ca7d5a6bf7 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@a2373d644a6b38619703fcf88ece56ca7d5a6bf7 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@a2373d644a6b38619703fcf88ece56ca7d5a6bf7 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@a2373d644a6b38619703fcf88ece56ca7d5a6bf7 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()
}