Dagger
Search

gotest

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/cloudnative-pg/plugin-barman-cloud/dagger/gotest@529737ffa43fd4af8a9602a072f9c9eda9f3e747

Entrypoint

Return Type
Gotest !
Arguments
NameTypeDefault ValueDescription
goVersionString "latest"Go version
setupEnvtestVersionString "0.19.0"setup-envtest version
kubeVersionString "1.31.0"Kubernetes version
ctrContainer -Container to run the tests
Example
dagger -m github.com/cloudnative-pg/plugin-barman-cloud/dagger/gotest@529737ffa43fd4af8a9602a072f9c9eda9f3e747 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
NameTypeDefault ValueDescription
srcDirectory !-Source directory
Example
dagger -m github.com/cloudnative-pg/plugin-barman-cloud/dagger/gotest@529737ffa43fd4af8a9602a072f9c9eda9f3e747 call \
 unit-test --src DIR_PATH
func (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)
}