common

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(value interface{}) (string, error)

func GenerateRandomString added in v0.2.4

func GenerateRandomString(limit int, lower bool) string

func GenerateRandomStringWithPrefix

func GenerateRandomStringWithPrefix(limit int, upper, lower, withSpecialChars bool, prefix string) string

func GetUUID

func GetUUID() string

func IsImageURLIncludesTag

func IsImageURLIncludesTag(imageURL string) bool

func IsKeyInMapOptional added in v0.2.2

func IsKeyInMapOptional(key string, optionalKeys []string) bool

func IsNotNilAndNotEmpty

func IsNotNilAndNotEmpty(target interface{}) bool

func IsStringInSlice

func IsStringInSlice(target string, list []string) bool

func IsValidCommand added in v0.2.2

func IsValidCommand(command string, validCommands []string) bool

IsValidCommand checks if a given command is in the list of valid commands

func MapInterfaceToString

func MapInterfaceToString(input map[string]interface{}) (map[string]string, error)

func MapIsNulOrEmpty

func MapIsNulOrEmpty(target map[string]string) bool

func NormaliseNoSpaces

func NormaliseNoSpaces(target string) string

func NormaliseStringLower

func NormaliseStringLower(target string) string

func NormaliseStringUpper

func NormaliseStringUpper(target string) string

func RemoveDoubleQuotes added in v0.2.2

func RemoveDoubleQuotes(target string) string

func StructToMap

func StructToMap(input interface{}, toUpper bool) map[string]interface{}

func ValidateTerragruntCommands added in v0.2.2

func ValidateTerragruntCommands(commands []string) error

ValidateTerragruntCommands validates if the provided commands are valid terragrunt commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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