Dagger
Search

examples

Examples for Trivy module

Installation

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

Entrypoint

Return Type
Examples !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@f4890c84897d3875623d8033a996665831969d8e call \
func (m *MyModule) Example() *dagger.Examples  {
	return dag.
			Examples()
}
@function
def example() -> dagger.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@f4890c84897d3875623d8033a996665831969d8e 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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-new
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivynew(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivynew()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-output
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyoutput(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyoutput()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-config
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyconfig(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyconfig()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-image
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyimage(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyimage()
	)
@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@f4890c84897d3875623d8033a996665831969d8e 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()
		.trivyimagetarball()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-container
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivycontainer(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivycontainer()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-helm
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyhelm(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyhelm()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-filesystem
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyfilesystem(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyfilesystem()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-rootfs
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivyrootfs(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivyrootfs()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-binary
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivybinary(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivybinary()
	)
@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@f4890c84897d3875623d8033a996665831969d8e call \
 trivy-sbom
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Examples().
			Trivysbom(ctx)
}
@function
async def example() -> None:
	return await (
		dag.examples()
		.trivysbom()
	)
@func()
async example(): Promise<void> {
	return dag
		.examples()
		.trivySbom()
}