cli

package
v0.0.0-...-ebda5e6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHART_DIR               = "chart-dir"
	APP_NAME                = "app-name"
	APP_VERSION             = "app-version"
	TARGET_ENV              = "target-env"
	DEFAULT_COLOUR          = "blue"
	RELEASE_UPGRADE_TIMEOUT = 900
	ROLLBACK_VERSION_POOL   = 50
	ROLLBACK_TIMEOUT        = 900
)

Variables

View Source
var Command = &list{
	UNKNOWN:        "unknown",
	BLUEGREEN:      "bluegreen",
	STANDARD_CHART: "standard-chart",
	MICROSERVICE:   "microservice",
}

Functions

func DetermineCommand

func DetermineCommand(command string) string

func Green

func Green(str string) string

func HandleParseFlags

func HandleParseFlags(flags map[string]string, err error) (map[string]string, error)

func Orange

func Orange(str string) string

func ParseFlags

func ParseFlags(cliFlags []*Flag) (map[string]string, error)

func PrintMap

func PrintMap(m map[string]string)

func PrintRelease

func PrintRelease(rel *release.Release)

func Run

func Run() error

func RunBlueGreenDeploy

func RunBlueGreenDeploy() error

func RunMicroserviceDeploy

func RunMicroserviceDeploy() error

func RunStandardChartDeploy

func RunStandardChartDeploy() error

Types

type Flag

type Flag struct {
	Key         string
	Default     string
	Description string
	Validator   func(string) bool
	Value       *string
}

func BlueGreenFlags

func BlueGreenFlags() []*Flag

func MicroserviceFlags

func MicroserviceFlags() []*Flag

func StandardChartFlags

func StandardChartFlags() []*Flag

Jump to

Keyboard shortcuts

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