tunnelk8s

package
v0.0.0-...-df7c457 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BomToArtifacts

func BomToArtifacts(b *bom.Result) ([]*artifacts.Artifact, error)

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

type K8sOption func(*client)

func WithExcludeOwned

func WithExcludeOwned(excludeOwned bool) K8sOption

type TunnelK8S

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

TunnelK8S interface represents the operations supported by the library

func New

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

New creates a tunnelK8S client

Jump to

Keyboard shortcuts

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