Dagger
Search

claircore

Module for Claircore functions

Installation

dagger install github.com/quay/clair-workflows/claircore@d709069e73ed2faa333e07310af7801e2d68cf59

Entrypoint

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

Types

Claircore 🔗

Claircore holds actions for the claircore repo.

test() 🔗

Test runs the tests for all the go modules in the Claircore repository.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Source to use for testing. If omitted, `https://github.com/quay/claircore@main` will be used.
unitBoolean trueRun unit tests.
raceBoolean -Build and run tests with the race detector.
coverBoolean -Build and run tests with coverage information.
fipsBoolean -Run tests with upstream FIPS 140 support. Requires go >=1.24.
Example
dagger -m github.com/quay/clair-workflows/claircore@d709069e73ed2faa333e07310af7801e2d68cf59 call \
 test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Claircore().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.claircore()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.claircore()
		.test()
}

actions() 🔗

Actions creates a [dagger.Directory] containing generated GitHub Actions workflows.

Use the “export” command to output to the desired directory:

dagger call actions export --path=.
Return Type
Directory !
Example
dagger -m github.com/quay/clair-workflows/claircore@d709069e73ed2faa333e07310af7801e2d68cf59 call \
 actions
func (m *myModule) example() *Directory  {
	return dag.
			Claircore().
			Actions()
}
@function
def example() -> dagger.Directory:
	return (
		dag.claircore()
		.actions()
	)
@func()
example(): Directory {
	return dag
		.claircore()
		.actions()
}