models

package
v0.0.0-...-74be6bf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	CurrentEnv   string                 `mapstructure: "currentenv"`
	Environments map[string]Environment `mapstructure:"environments"`
}
var Conf *Configuration

func (*Configuration) GetEnv

func (conf *Configuration) GetEnv(e string) Environment

func (*Configuration) GetEnvsNames

func (conf *Configuration) GetEnvsNames() []string

func (*Configuration) SetCurrentEnv

func (conf *Configuration) SetCurrentEnv(e string) bool

type Environment

type Environment struct {
	Aws_identity_file     string `mapstructure: "aws_identity_file"`
	Aws_access_key_id     string `mapstructure: "aws_access_key_id"`
	Aws_secret_access_key string `mapstructure: "aws_secret_access_key"`
	Region                string `mapstructure: "region"`
	Repo                  string `mapstructure: "repo"`
}

func (*Environment) Activate

func (environment *Environment) Activate()

Jump to

Keyboard shortcuts

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