target

package
v1.0.0-develop.20 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Aws             = "aws"
	Azure           = "azure"
	Gcp             = "gcp"
	Digitalocean    = "digitalocean"
	DefaultTarget   = Aws
	DefaultProvider = Aws
)

Variables

View Source
var (
	Providers = []string{Aws, Azure, Gcp, Digitalocean}
)

Functions

func AddOptions

func AddOptions(cmd *cobra.Command, providerOnly bool) error

func AllFromConfig

func AllFromConfig() (map[string]Target, error)

func EnsureDefaultConfig

func EnsureDefaultConfig() bool

func ToStringMapStringMapStringE

func ToStringMapStringMapStringE(i interface{}) (map[string]map[string]interface{}, error)

Types

type Target

type Target struct {
	Provider string                 `json:"provider,omitempty"`
	Region   string                 `json:"region,omitempty"`
	Extra    map[string]interface{} `json:",inline,omitempty"`
}

func FromOptions

func FromOptions() (*Target, error)

Jump to

Keyboard shortcuts

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