Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context) (provider.Provider, error)
- type Config
- type Provider
- func (p *Provider) DiscoverAssets(ctx context.Context) provider.AssetDiscoverer
- func (p *Provider) Estimate(ctx context.Context, stats models.AssetScanStats, asset *models.Asset, ...) (*models.Estimation, error)
- func (p *Provider) Kind() models.CloudProvider
- func (p *Provider) RemoveAssetScan(context.Context, *provider.ScanJobConfig) error
- func (p *Provider) RunAssetScan(context.Context, *provider.ScanJobConfig) error
Constants ¶
View Source
const (
DefaultEnvPrefix = "VMCLARITY_KUBERNETES"
)
Variables ¶
This section is empty.
Functions ¶
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"` }
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 (*Provider) RunAssetScan ¶
Click to show internal directories.
Click to hide internal directories.