examples
Examples for Trivy module
Installation
dagger install github.com/sagikazarmark/daggerverse/trivy/examples/go@86b988dfd6c3b5581cf6c2bc4dd6b7f0f52aaa6a
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)
}