kubernetes

package
v0.0.0-...-e78a3da Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix = "VMCLARITY_KUBERNETES"
	DefaultNamespace = "default"
)
View Source
const (
	PodNamespaceLabel = "io.kubernetes.pod.namespace"
	PodNameLabel      = "io.kubernetes.pod.name"
)

Variables

This section is empty.

Functions

func New

Types

type Config

type Config struct {
	// KubeConfig defines a path to a kubeconfig file to use to connect to the Kubernetes API.
	KubeConfig string `mapstructure:"kubeconfig"`

	// ContainerRuntimeDiscoveryNamespace defines the namespace where container runtime discovery DaemonSet is deployed.
	ContainerRuntimeDiscoveryNamespace string `mapstructure:"container_runtime_discovery_namespace"`

	// ScannerNamespace defines the namespace where the scanners are deployed.
	ScannerNamespace string `mapstructure:"scanner_namespace"`
}

func NewConfig

func NewConfig() (*Config, error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) DiscoverAssets

func (p *Provider) DiscoverAssets(ctx context.Context) provider.AssetDiscoverer

func (*Provider) Kind

func (p *Provider) Kind() apitypes.CloudProvider

func (*Provider) RemoveAssetScan

func (p *Provider) RemoveAssetScan(ctx context.Context, config *provider.ScanJobConfig) error

func (*Provider) RunAssetScan

func (p *Provider) RunAssetScan(ctx context.Context, config *provider.ScanJobConfig) error

nolint: cyclop

Jump to

Keyboard shortcuts

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