examples
Examples for Trivy module
Installation
dagger install github.com/sagikazarmark/daggerverse/trivy/examples/go@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8
Entrypoint
Return Type
Examples
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 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@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 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@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 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@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 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()
}
trivyScanContainer() 🔗
This example showcases how to scan a container with Trivy.
Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 call \
trivy-scan-container
func (m *myModule) example(ctx context.Context) {
return dag.
Examples().
TrivyScanContainer(ctx)
}
@function
async def example() -> None:
return await (
dag.examples()
.trivy_scan_container()
)
@func()
async example(): Promise<void> {
return dag
.examples()
.trivyScanContainer()
}
trivyScanHelmChart() 🔗
This example showcases how to scan a Helm chart with Trivy.
Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@c1ee5c53bbcbfbfe59dc020cb0752f8d0b55eda8 call \
trivy-scan-helm-chart
func (m *myModule) example(ctx context.Context) {
return dag.
Examples().
TrivyScanHelmChart(ctx)
}
@function
async def example() -> None:
return await (
dag.examples()
.trivy_scan_helm_chart()
)
@func()
async example(): Promise<void> {
return dag
.examples()
.trivyScanHelmChart()
}