Dagger
Search

common

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/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b

Entrypoint

Return Type
Common
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
func (m *myModule) example() *Common  {
	return dag.
			Common()
}
@function
def example() -> dag.Common:
	return (
		dag.common()
	)
@func()
example(): Common {
	return dag
		.common()
}

Types

Common 🔗

builder() 🔗

The base image for use with claircore.

Return Type
Container !
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 builder
func (m *myModule) example() *Container  {
	return dag.
			Common().
			Builder()
}
@function
def example() -> dagger.Container:
	return (
		dag.common()
		.builder()
	)
@func()
example(): Container {
	return dag
		.common()
		.builder()
}

buildEnv() 🔗

Create an environment suitable for building the indicated source.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
cgoBoolean -No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 build-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Common().
			BuildEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.common()
		.build_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.common()
		.buildEnv(source)
}

releaseEnv() 🔗

Create an environment suitable for building the indicated source for release.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 release-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Common().
			ReleaseEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.common()
		.release_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.common()
		.releaseEnv(source)
}

testEnv() 🔗

Create an environment suitable for testing the indicated source.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
raceBoolean -No description provided
databaseService -No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 test-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Common().
			TestEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.common()
		.test_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.common()
		.testEnv(source)
}

test() 🔗

Return the result of running tests on the indicated source.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
raceBoolean -No description provided
coverBoolean -No description provided
unitBoolean -No description provided
databaseService -No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Common().
			Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.common()
		.test(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.common()
		.test(source)
}

goDistribution() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
versionString -No description provided
archString -No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 go-distribution
func (m *myModule) example() *Directory  {
	return dag.
			Common().
			GoDistribution()
}
@function
def example() -> dagger.Directory:
	return (
		dag.common()
		.go_distribution()
	)
@func()
example(): Directory {
	return dag
		.common()
		.goDistribution()
}

ubi() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
tagString -No description provided
Example
dagger -m github.com/quay/clair-workflows/common@745e17cb65b8421aaaa20109335d0b05d4956e8b call \
 ubi
func (m *myModule) example() *Container  {
	return dag.
			Common().
			Ubi()
}
@function
def example() -> dagger.Container:
	return (
		dag.common()
		.ubi()
	)
@func()
example(): Container {
	return dag
		.common()
		.ubi()
}