kubernetes

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix = "VMCLARITY_KUBERNETES"
)

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"`
}

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) Estimate

func (p *Provider) Estimate(ctx context.Context, stats models.AssetScanStats, asset *models.Asset, assetScanTemplate *models.AssetScanTemplate) (*models.Estimation, error)

func (*Provider) Kind

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

func (*Provider) RemoveAssetScan

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

func (*Provider) RunAssetScan

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

Jump to

Keyboard shortcuts

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