azure

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix = "VMCLARITY_AZURE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzurePublicKey

type AzurePublicKey string

func (*AzurePublicKey) UnmarshalText

func (a *AzurePublicKey) UnmarshalText(text []byte) error

type Config

type Config struct {
	SubscriptionID              string         `mapstructure:"subscription_id"`
	ScannerLocation             string         `mapstructure:"scanner_location"`
	ScannerResourceGroup        string         `mapstructure:"scanner_resource_group"`
	ScannerSubnet               string         `mapstructure:"scanner_subnet_id"`
	ScannerPublicKey            AzurePublicKey `mapstructure:"scanner_public_key"`
	ScannerVMSize               string         `mapstructure:"scanner_vm_size"`
	ScannerImagePublisher       string         `mapstructure:"scanner_image_publisher"`
	ScannerImageOffer           string         `mapstructure:"scanner_image_offer"`
	ScannerImageSKU             string         `mapstructure:"scanner_image_sku"`
	ScannerImageVersion         string         `mapstructure:"scanner_image_version"`
	ScannerSecurityGroup        string         `mapstructure:"scanner_security_group"`
	ScannerStorageAccountName   string         `mapstructure:"scanner_storage_account_name"`
	ScannerStorageContainerName string         `mapstructure:"scanner_storage_container_name"`
}

func NewConfig

func NewConfig() (*Config, error)

func (Config) Validate

func (c Config) Validate() error

nolint:cyclop

type Provider

type Provider struct {
	*discoverer.Discoverer
	*scanner.Scanner
	*estimator.Estimator
}

func New

func New(_ context.Context) (*Provider, error)

func (*Provider) Kind

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

Directories

Path Synopsis
nolint: wrapcheck
nolint: wrapcheck

Jump to

Keyboard shortcuts

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