gcp

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix = "VMCLARITY_GCP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectID           string `mapstructure:"project_id"`
	ScannerZone         string `mapstructure:"scanner_zone"`
	ScannerSubnetwork   string `mapstructure:"scanner_subnetwork"`
	ScannerMachineType  string `mapstructure:"scanner_machine_type"`
	ScannerSourceImage  string `mapstructure:"scanner_source_image"`
	ScannerSSHPublicKey string `mapstructure:"scanner_ssh_public_key"`
}

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(ctx context.Context) (*Provider, error)

func (*Provider) Kind

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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