Dagger
Search

MyModule

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/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e

Entrypoint

Return Type
MyModule
Example
dagger -m github.com/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e call \
func (m *myModule) example() *MyModule  {
	return dag.
			MyModule()
}
@function
def example() -> dag.MyModule:
	return (
		dag.my_module()
	)
@func()
example(): MyModule {
	return dag
		.myModule()
}

Types

MyModule 🔗

foo() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fooerInterface !-No description provided
Example
dagger -m github.com/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e call \
 foo
func (m *myModule) example(ctx context.Context, fooer ) string  {
	return dag.
			MyModule().
			Foo(ctx, fooer)
}
@function
async def example(fooer: ) -> str:
	return await (
		dag.my_module()
		.foo(fooer)
	)
@func()
async example(fooer: ): Promise<string> {
	return dag
		.myModule()
		.foo(fooer)
}

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
barInteger !-No description provided
nameString -No description provided
name2String "fooer"No description provided
fooerInterface !-No description provided
Example
dagger -m github.com/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e call \
 container-echo --bar integer
func (m *myModule) example(ctx context.Context, bar int, fooer ) string  {
	return dag.
			MyModule().
			ContainerEcho(ctx, bar, fooer)
}
@function
async def example(bar: int, fooer: ) -> str:
	return await (
		dag.my_module()
		.container_echo(bar, fooer)
	)
@func()
async example(bar: number, fooer: ): Promise<string> {
	return dag
		.myModule()
		.containerEcho(bar, fooer)
}

containerEcho0() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
barInteger !-No description provided
nameString -No description provided
Example
dagger -m github.com/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e call \
 container-echo-0 --bar integer
func (m *myModule) example(ctx context.Context, bar int) string  {
	return dag.
			MyModule().
			ContainerEcho0(ctx, bar)
}
@function
async def example(bar: int) -> str:
	return await (
		dag.my_module()
		.container_echo0(bar)
	)
@func()
async example(bar: number): Promise<string> {
	return dag
		.myModule()
		.containerEcho0(bar)
}

grepDir() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
patternString !-No description provided
Example
dagger -m github.com/chrira/dagger-interfaces/fooer@241e19be944111d30232289394065dee2f787c6e call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string  {
	return dag.
			MyModule().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.my_module()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.myModule()
		.grepDir(directoryArg, pattern)
}