Documentation ¶
Index ¶
- Variables
- func AskContinue(message string) bool
- func BuildPrefixName(name string, env string, region string) string
- func CheckFileExists(filePath string) bool
- func CheckTimeout(start int64, timeout time.Duration) (bool, error)
- func CreateBodyStruct(slice []string) ([]byte, error)
- func CreateHeaderStruct(slice []string) (http.Header, error)
- func DecorateAttr(attrString, message string) string
- func FatalError(err error)
- func GenerateAsgName(prefix string, version int) string
- func GenerateLcName(asgName string) string
- func GetBaseStartTime(t time.Time) time.Time
- func GetBaseTime(t time.Time) time.Time
- func GetBaseTimeWithTimezone(timezone string) time.Time
- func GetRandomRGBColor() string
- func GetTimePrefix(t time.Time) string
- func IsCanaryTargetGroupArn(str string, region string) bool
- func IsStringInArray(s string, arr []string) bool
- func IsStringInPointerArray(s string, arr []*string) bool
- func IsTargetGroupArn(str string, region string) bool
- func JoinString(arr []string, delimiter string) string
- func LocalCheck(message string, autoApply bool) error
- func ParseAutoScalingVersion(name string) int
- func ParseTargetGroupName(arn string) string
- func ParseTargetGroupVersion(name string) int
- func PrintTemplate(data interface{}, t *template.Template) error
- func RoundNum(n float64) string
- func RoundTime(d time.Duration) string
- func SetCommonHeader() http.Header
- type Color
- type Frigga
Constants ¶
This section is empty.
Variables ¶
var ( Red = Color{/* contains filtered or unexported fields */} Blue = Color{/* contains filtered or unexported fields */} Green = Color{/* contains filtered or unexported fields */} Yellow = Color{/* contains filtered or unexported fields */} Cyan = Color{/* contains filtered or unexported fields */} )
Functions ¶
func AskContinue ¶
AskContinue asks a user whether or not to continue the process
func BuildPrefixName ¶
BuildPrefixName creates new prefix for autoscaling group
func CheckFileExists ¶
CheckFileExists checks if a file or a directory exists or not
func CheckTimeout ¶
CheckTimeout compares now-start time with timeout
func CreateBodyStruct ¶
CreateBodyStruct creates body with slice
func CreateHeaderStruct ¶
CreateHeaderStruct creates header with slice
func DecorateAttr ¶
DecorateAttr decorate strings with a color or an emoji, respecting the user preference if no colour needed.
func GenerateAsgName ¶
GenerateAsgName generates the autoscaling name
func GenerateLcName ¶
GenerateLcName generates new launch configuration name
func GetBaseStartTime ¶
GetBaseStartTime generates start time
func GetBaseTimeWithTimezone ¶
GetBaseTimeWithTimezone returns time with timezone
func IsCanaryTargetGroupArn ¶
IsCanaryTargetGroupArn returns true if string is target group ARN
func IsStringInArray ¶
IsStringInArray checks if string value is in array or not
func IsStringInPointerArray ¶
IsStringInPointerArray checks if string value is in array or not
func IsTargetGroupArn ¶
IsTargetGroupArn returns true if string is target group ARN
func JoinString ¶
JoinString joins strings in the slice
func LocalCheck ¶
LocalCheck checks whether or not to continue when it is run on localhost. Cannot add windows because goployer could be run on Windows..
func ParseAutoScalingVersion ¶
ParseAutoScalingVersion parses autoscaling version from name
func ParseTargetGroupName ¶
ParseTargetGroupName parses target group ARN and return target group name
func ParseTargetGroupVersion ¶
ParseTargetGroupVersion parses autoscaling version from name
func PrintTemplate ¶
PrintTemplate prints template with data
func SetCommonHeader ¶
SetCommonHeader returns common header for api test