Dagger
Search

kyverno

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/stuttgart-things/dagger/kyverno@v0.9.0

Entrypoint

Return Type
Kyverno
Example
dagger -m github.com/stuttgart-things/dagger/kyverno@986c426943e698a582ca5c7348403f3a93e5a7b8 call \
func (m *MyModule) Example() *dagger.Kyverno  {
	return dag.
			Kyverno()
}
@function
def example() -> dagger.Kyverno:
	return (
		dag.kyverno()
	)
@func()
example(): Kyverno {
	return dag
		.kyverno()
}

Types

Kyverno 🔗

baseImage() 🔗

Base Wolfi image to use

Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/kyverno@986c426943e698a582ca5c7348403f3a93e5a7b8 call \
 base-image
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kyverno().
			BaseImage(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kyverno()
		.base_image()
	)
@func()
async example(): Promise<string> {
	return dag
		.kyverno()
		.baseImage()
}

validate() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
policyDirectory !-No description provided
resourceDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/kyverno@986c426943e698a582ca5c7348403f3a93e5a7b8 call \
 validate --policy DIR_PATH --resource DIR_PATH
func (m *MyModule) Example(ctx context.Context, policy *dagger.Directory, resource *dagger.Directory)   {
	return dag.
			Kyverno().
			Validate(ctx, policy, resource)
}
@function
async def example(policy: dagger.Directory, resource: dagger.Directory) -> None:
	return await (
		dag.kyverno()
		.validate(policy, resource)
	)
@func()
async example(policy: Directory, resource: Directory): Promise<void> {
	return dag
		.kyverno()
		.validate(policy, resource)
}

version() 🔗

Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/kyverno@986c426943e698a582ca5c7348403f3a93e5a7b8 call \
 version
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kyverno().
			Version(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kyverno()
		.version()
	)
@func()
async example(): Promise<string> {
	return dag
		.kyverno()
		.version()
}