Documentation ¶
Index ¶
- func BomToArtifacts(b *bom.Result) ([]*artifacts.Artifact, error)
- type ArtifactsK8S
- type K8sOption
- type NodeCollectorOption
- func WithIgnoreLabels(ignoreLabels map[string]string) NodeCollectorOption
- func WithNodeConfig(nodeConfig bool) NodeCollectorOption
- func WithScanJobImageRef(imageRef string) NodeCollectorOption
- func WithScanJobNamespace(namespace string) NodeCollectorOption
- func WithTolerations(toleration []corev1.Toleration) NodeCollectorOption
- type TrivyK8S
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactsK8S ¶
type ArtifactsK8S interface { // ListArtifacts returns kubernetes scanable artifacts ListArtifacts(context.Context) ([]*artifacts.Artifact, error) // GetArtifact return kubernete scanable artifact GetArtifact(context.Context, string, string) (*artifacts.Artifact, error) // ListArtifactAndNodeInfo return kubernete scanable artifact and node info ListArtifactAndNodeInfo(context.Context, ...NodeCollectorOption) ([]*artifacts.Artifact, error) // ListClusterBomInfo returns kubernetes Bom (node,core components) information. ListClusterBomInfo(context.Context) ([]*artifacts.Artifact, error) }
ArtifactsK8S interface represents operations to query the artifacts
type K8sOption ¶ added in v0.5.7
type K8sOption func(*client)
func WithExcludeOwned ¶ added in v0.5.7
type NodeCollectorOption ¶ added in v0.6.0
type NodeCollectorOption func(*client)
func WithIgnoreLabels ¶ added in v0.6.0
func WithIgnoreLabels(ignoreLabels map[string]string) NodeCollectorOption
func WithNodeConfig ¶ added in v0.6.1
func WithNodeConfig(nodeConfig bool) NodeCollectorOption
func WithScanJobImageRef ¶ added in v0.6.0
func WithScanJobImageRef(imageRef string) NodeCollectorOption
func WithScanJobNamespace ¶ added in v0.6.0
func WithScanJobNamespace(namespace string) NodeCollectorOption
func WithTolerations ¶ added in v0.6.0
func WithTolerations(toleration []corev1.Toleration) NodeCollectorOption
Click to show internal directories.
Click to hide internal directories.