Dagger
Search

examples

Examples for Trivy module

Installation

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

Entrypoint

Return Type
Examples !
Example
func (m *myModule) example() *Examples  {
	return dag.
			Examples()
}

Types

Examples 🔗

all() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			All(ctx)
}

trivyNew() 🔗

This example showcases how to initialize the Trivy module.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyNew(ctx)
}

trivyOutput() 🔗

This example showcases how to initialize the Trivy module.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyOutput(ctx)
}

trivyConfig() 🔗

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

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyConfig(ctx)
}

trivyImage() 🔗

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

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyImage(ctx)
}

trivyImageTarball() 🔗

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

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyImageTarball(ctx)
}

trivyContainer() 🔗

This example showcases how to scan a container with Trivy.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyContainer(ctx)
}

trivyHelm() 🔗

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

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyHelm(ctx)
}

trivyFilesystem() 🔗

This example showcases how to scan a filesystem with Trivy.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyFilesystem(ctx)
}

trivyRootfs() 🔗

This example showcases how to scan a rootfs with Trivy.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyRootfs(ctx)
}

trivyBinary() 🔗

This example showcases how to scan a binary with Trivy.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivyBinary(ctx)
}

trivySbom() 🔗

This example showcases how to scan an SBOM with Trivy.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Examples().
			TrivySbom(ctx)
}