Dagger
Search

examples

Examples for Trivy module

Installation

dagger install github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b

Entrypoint

Return Type
Examples !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
func (m *myModule) example() *Examples  {
	return dag.
			Examples()
}
@function
def example() -> dag.Examples:
	return (
		dag.examples()
	)
@func()
example(): Examples {
	return dag
		.examples()
}

Types

Examples 🔗

all() 🔗

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 all
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			All(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.all()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.all()
}

trivyNew() 🔗

This example showcases how to initialize the Trivy module.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-new
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyNew(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_new()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyNew()
}

trivyOutput() 🔗

This example showcases how to initialize the Trivy module.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-output
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyOutput(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_output()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyOutput()
}

trivyConfig() 🔗

This example showcases how to pass configuration to the Trivy module.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-config
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyConfig(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_config()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyConfig()
}

trivyImage() 🔗

This example showcases how to scan an image (pulled from a remote repository) with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-image
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyImage(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_image()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyImage()
}

trivyImageTarball() 🔗

This example showcases how to scan an image tarball with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-image-tarball
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyImageTarball(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_image_tarball()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyImageTarball()
}

trivyContainer() 🔗

This example showcases how to scan a container with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-container
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyContainer(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_container()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyContainer()
}

trivyHelm() 🔗

This example showcases how to scan a Helm chart with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-helm
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyHelm(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_helm()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyHelm()
}

trivyFilesystem() 🔗

This example showcases how to scan a filesystem with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-filesystem
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyFilesystem(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_filesystem()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyFilesystem()
}

trivyRootfs() 🔗

This example showcases how to scan a rootfs with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-rootfs
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyRootfs(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_rootfs()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyRootfs()
}

trivyBinary() 🔗

This example showcases how to scan a binary with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-binary
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyBinary(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_binary()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivyBinary()
}

trivySbom() 🔗

This example showcases how to scan an SBOM with Trivy.

Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@3b6bf301dfae69d4a0f1b9e5278d4efc4753106b call \
 trivy-sbom
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivySbom(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivy_sbom()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivySbom()
}