environments

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name, branch, spec string) (map[string][]string, error)

Create creates a new environment with `name`

func Delete

func Delete(name string) error

Delete deletes the environment with `name`

func Init

func Init(envs []Environment)

Init initializes the global environments list

func RefreshEnvs

func RefreshEnvs() error

RefreshEnvs refreshes the list of environments as detected from the kubernetes cluster

Types

type Environment

type Environment struct {
	Name      string   `json:"name"`
	Branch    string   `json:"branch,omitempty"`
	Protected bool     `json:"protected,omitempty"`
	Prod      bool     `json:"prod,omitempty"`
	Approval  bool     `json:"approval,omitempty"`
	Apps      []string `json:"apps"`
	Jobs      []string `json:"jobs"`
}

Environment describes an environment backed by a kubernetes namespace

func Environments

func Environments() (ret []Environment)

Environments returns a snapshot of all of the known environments

func Get

func Get(name string) (Environment, error)

Get returns the environment with `name`

Jump to

Keyboard shortcuts

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