deployutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudPlatformAWS    = "aws"
	CloudPlatformAliyun = "aliyun"

	// The name from github, XD.
	CloudPlatformTencent = "tencentyun"
)

Variables

View Source
var DeployPolicyMap = map[DeployPolicy]string{

	DeployPolicyBlue: "blue",

	DeployPolicyGreen: "green",

	DeployPolicyRed: "red",

	DeployPolicyBlack: "black",
}

Functions

func FromDeployPolicy

func FromDeployPolicy(policy DeployPolicy) string

Types

type DeployPolicy

type DeployPolicy uint
const (
	DeployPolicyBlue DeployPolicy = iota + 1
	DeployPolicyGreen
	DeployPolicyRed
	DeployPolicyBlack
)

func ToEnv

func ToEnv(sPolicy string) DeployPolicy

Jump to

Keyboard shortcuts

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