target

package
v1.0.2-develop.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 7 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

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