Dagger
Search

not-working

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/marcosnils/dagger_example/not-working@ccdf3c2e832541b781ae62abd42f46da1c7fe50e

Entrypoint

Return Type
NotWorking
Example
dagger -m github.com/marcosnils/dagger_example/not-working@ccdf3c2e832541b781ae62abd42f46da1c7fe50e call \
func (m *MyModule) Example() *dagger.NotWorking  {
	return dag.
			NotWorking()
}
@function
def example() -> dagger.NotWorking:
	return (
		dag.not_working()
	)
@func()
example(): NotWorking {
	return dag
		.notWorking()
}

Types

NotWorking 🔗

baseContainer() 🔗

Create a base container that builds from a Dockerfile

Return Type
Container !
Example
dagger -m github.com/marcosnils/dagger_example/not-working@ccdf3c2e832541b781ae62abd42f46da1c7fe50e call \
 base-container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			NotWorking().
			BaseContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.not_working()
		.base_container()
	)
@func()
example(): Container {
	return dag
		.notWorking()
		.baseContainer()
}

sayHello() 🔗

Call a function from the other module

Return Type
String !
Example
dagger -m github.com/marcosnils/dagger_example/not-working@ccdf3c2e832541b781ae62abd42f46da1c7fe50e call \
 say-hello
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			NotWorking().
			SayHello(ctx)
}
@function
async def example() -> str:
	return await (
		dag.not_working()
		.say_hello()
	)
@func()
async example(): Promise<string> {
	return dag
		.notWorking()
		.sayHello()
}