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@v0.5.0

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@c42bdfe455097af27ea37ad60faf5c7989bd020e 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
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-Source directory
Example
dagger -m github.com/cloudnative-pg/plugin-barman-cloud/dagger/gotest@c42bdfe455097af27ea37ad60faf5c7989bd020e call \
 unit-test --src DIR_PATH
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory) string  {
	return dag.
			Gotest().
			UnitTest(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.gotest()
		.unit_test(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.gotest()
		.unitTest(src)
}