Dagger
Search

Example

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/impl@241e19be944111d30232289394065dee2f787c6e

Entrypoint

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

Types

Example 🔗

foo() 🔗

implement Fooer interface

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