Dagger
Search

go-licenses

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/daggerverse/go-licenses@6b024d94e8661e87ede84039fd2e3e256dc08fb6

Entrypoint

Return Type
GoLicenses !
Arguments
NameTypeDefault ValueDescription
goLicensesVersionString "1.6.0"GoLicenses to use. renovate: datasource=github-tags depName=google/go-licenses versioning=semver
goImageString "golang:1.25.0-alpine"renovate image: datasource=docker depName=golang versioning=docker
ctrContainer -No description provided
Example
dagger -m github.com/cloudnative-pg/daggerverse/go-licenses@6b024d94e8661e87ede84039fd2e3e256dc08fb6 call \
func (m *MyModule) Example() *dagger.GoLicenses  {
	return dag.
			GoLicenses()
}
@function
def example() -> dagger.GoLicenses:
	return (
		dag.go_licenses()
	)
@func()
example(): GoLicenses {
	return dag
		.goLicenses()
}

Types

GoLicenses 🔗

goLicenses() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-The directory of the repository.
args[String ! ] -A list of arguments to pass to go-licenses.
Example
dagger -m github.com/cloudnative-pg/daggerverse/go-licenses@6b024d94e8661e87ede84039fd2e3e256dc08fb6 call \
 go-licenses --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container  {
	return dag.
			GoLicenses().
			GoLicenses(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.go_licenses()
		.go_licenses(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.goLicenses()
		.goLicenses(source)
}