vulk8s

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, string, map[string]string, ...corev1.Toleration) ([]*artifacts.Artifact, error)
	// ListBomInfo returns kubernetes Bom (node,core components) information.
	ListBomInfo(context.Context) ([]*artifacts.Artifact, error)
}

ArtifactsK8S interface represents operations to query the artifacts

type K8sOption added in v0.5.6

type K8sOption func(*client)

func WithExcludeOwned added in v0.5.6

func WithExcludeOwned(excludeOwned bool) K8sOption

type VulK8S

type VulK8S interface {
	Namespace(string) VulK8S
	AllNamespaces() VulK8S
	Resources(string) VulK8S
	ArtifactsK8S
}

VulK8S interface represents the operations supported by the library

func New

func New(cluster k8s.Cluster, logger *zap.SugaredLogger, opts ...K8sOption) VulK8S

New creates a vulK8S client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL