examples
Examples for Trivy module
Installation
dagger install github.com/sagikazarmark/daggerverse/trivy/examples/go@d7b73b82451aac826822879a451de57e20238d8f
Entrypoint
Return Type
Examples
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@d7b73b82451aac826822879a451de57e20238d8f 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@d7b73b82451aac826822879a451de57e20238d8f 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()
}
trivyInit() 🔗
Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@d7b73b82451aac826822879a451de57e20238d8f call \
trivy-init
func (m *myModule) example(ctx context.Context) {
return dag.
Examples().
TrivyInit(ctx)
}
@function
async def example() -> None:
return await (
dag.examples()
.trivy_init()
)
@func()
async example(): Promise<void> {
return dag
.examples()
.trivyInit()
}
trivyContainer() 🔗
Return Type
Void !
Example
dagger -m github.com/sagikazarmark/daggerverse/trivy/examples/go@d7b73b82451aac826822879a451de57e20238d8f 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()
}