gotest
This module has been generated via dagger init and serves as a reference tobasic 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/cloudnative-pg/plugin-barman-cloud/dagger/gotest@v0.7.0Entrypoint
Return Type
Gotest !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| goVersion | String | "latest" | Go version |
| setupEnvtestVersion | String | "0.19.0" | setup-envtest version |
| kubeVersion | String | "1.31.0" | Kubernetes version |
| ctr | Container | - | Container to run the tests |
Example
dagger -m github.com/cloudnative-pg/plugin-barman-cloud/dagger/gotest@69970395e2858d2084e716290170ea2be89f23a2 call \
func (m *MyModule) Example() *dagger.Gotest {
return dag.
Gotest()
}@function
def example() -> dagger.Gotest:
return (
dag.gotest()
)@func()
example(): Gotest {
return dag
.gotest()
}Types
Gotest 🔗
unitTest() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | Source directory |
Example
dagger -m github.com/cloudnative-pg/plugin-barman-cloud/dagger/gotest@69970395e2858d2084e716290170ea2be89f23a2 call \
unit-test --src DIR_PATHfunc (m *MyModule) Example(src *dagger.Directory) *dagger.Container {
return dag.
Gotest().
UnitTest(src)
}@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.gotest()
.unit_test(src)
)@func()
example(src: Directory): Container {
return dag
.gotest()
.unitTest(src)
}