stack

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Functions

func AddOptions

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

Types

type Config added in v1.2.0

type Config struct {
	Name     string                 `yaml:"name,omitempty"`
	Provider string                 `yaml:"provider,omitempty"`
	Region   string                 `yaml:"region,omitempty"`
	Extra    map[string]interface{} `yaml:",inline,omitempty"`
}

func ConfigFromOptions added in v1.2.0

func ConfigFromOptions() (*Config, error)

Assume the project is in the currentDirectory

func (*Config) ToFile added in v1.2.0

func (p *Config) ToFile(file string) error

Jump to

Keyboard shortcuts

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