trivy
No long description provided.
Installation
dagger install github.com/jpadams/daggerverse/trivy@21f9211e5727a0b6acce8a0ab6c35d01896dc642
Entrypoint
Return Type
Trivy
Example
dagger -m github.com/jpadams/daggerverse/trivy@21f9211e5727a0b6acce8a0ab6c35d01896dc642 call \
func (m *myModule) example() *Trivy {
return dag.
Trivy()
}
@function
def example() -> dag.Trivy:
return (
dag.trivy()
)
@func()
example(): Trivy {
return dag
.trivy()
}
Types
Trivy 🔗
base() 🔗
Pull the official trivy image.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
trivyImageTag | StringKind ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/trivy@21f9211e5727a0b6acce8a0ab6c35d01896dc642 call \
base
func (m *myModule) example(trivyImageTag ) {
return dag.
Trivy().
Base(trivyImageTag)
}
@function
def example(trivy_image_tag: ) -> :
return (
dag.trivy()
.base(trivy_image_tag)
)
@func()
example(trivyImageTag: ): {
return dag
.trivy()
.base(trivyImageTag)
}
scanImage() 🔗
Use an image ref for the container image to scan.
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
imageRef | StringKind ! | - | No description provided |
severity | StringKind | - | No description provided |
exitCode | IntegerKind | - | No description provided |
format | StringKind | - | No description provided |
trivyImageTag | StringKind | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/trivy@21f9211e5727a0b6acce8a0ab6c35d01896dc642 call \
scan-image
func (m *myModule) example(imageRef ) {
return dag.
Trivy().
ScanImage(imageRef)
}
@function
def example(image_ref: ) -> :
return (
dag.trivy()
.scan_image(image_ref)
)
@func()
example(imageRef: ): {
return dag
.trivy()
.scanImage(imageRef)
}
scanContainer() 🔗
Scan a Dagger Container.
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
severity | StringKind | - | No description provided |
exitCode | IntegerKind | - | No description provided |
format | StringKind | - | No description provided |
trivyImageTag | StringKind | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/trivy@21f9211e5727a0b6acce8a0ab6c35d01896dc642 call \
scan-container
func (m *myModule) example(ctr ) {
return dag.
Trivy().
ScanContainer(ctr)
}
@function
def example(ctr: ) -> :
return (
dag.trivy()
.scan_container(ctr)
)
@func()
example(ctr: ): {
return dag
.trivy()
.scanContainer(ctr)
}