hello-dagger
No long description provided.
Installation
dagger install github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5Entrypoint
Return Type
HelloDagger ! Example
dagger -m github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5 call \
func (m *MyModule) Example() *dagger.HelloDagger {
return dag.
HelloDagger()
}@function
def example() -> dagger.HelloDagger:
return (
dag.hello_dagger()
)@func()
example(): HelloDagger {
return dag
.helloDagger()
}Types
HelloDagger 🔗
publish() 🔗
Publish the application container after building and testing it on-the-fly
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5 call \
publish --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
HelloDagger().
Publish(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.hello_dagger()
.publish(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.helloDagger()
.publish(source)
}build() 🔗
Build the application container
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5 call \
build --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
HelloDagger().
Build(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.hello_dagger()
.build(source)
)@func()
example(source: Directory): Container {
return dag
.helloDagger()
.build(source)
}test() 🔗
Return the result of running unit tests
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5 call \
test --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
HelloDagger().
Test(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.hello_dagger()
.test(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.helloDagger()
.test(source)
}buildEnv() 🔗
Build a ready-to-use development environment
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/SteveKipping/dagger-public-module@d034506c847181dda3467af55af9d86f657ae8d5 call \
build-env --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
HelloDagger().
BuildEnv(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.hello_dagger()
.build_env(source)
)@func()
example(source: Directory): Container {
return dag
.helloDagger()
.buildEnv(source)
}