Documentation ¶
Index ¶
- func CleanPathFromExtraSlashes(target string) string
- func DirExistAndHasContent(dirPath string) error
- func ExtractBearerValueFromHeader(headerValue string) (string, error)
- func FileExistAndItIsAFile(filePath string) error
- func FileIsNotEmpty(filepath string) error
- func FindGitRepoDir(levels int) (string, error)
- func FindStrInMapKeys(m map[string]string, str string) (string, error)
- func FindStrInMapValues(m map[string]string, str string) (string, error)
- func FindStrInSlice(slice []string, str string) (string, error)
- func GenerateRandomString(opt RandomStringOptions) string
- func GetCommandArgs(cmd string) ([]string, error)
- func GetCurrentDir() string
- func GetHomeDir() string
- func GetUUID() string
- func IsHTTPVerbValid(ver string) error
- func KeyInMapHasValueSet(m map[string]string, keyInMap string) error
- func MapIsNulOrEmpty(target map[string]string) bool
- func MergeSlices(slices ...[]string) []string
- func NewUnixTimeWithAddedMinutes(number int64) int64
- func NewValidator() *validator.Validate
- func NormaliseStringToLower(target string) string
- func NormaliseStringToUpper(target string) string
- func RemoveDoubleQuotes(target string) string
- func RunCommand(cmd Command) (string, error)
- func ValidateAuthorizationHeader(headers map[string]string) error
- func ValidateBearerTokenSchema(headerContent string) error
- func ValidatorErrors(err error) map[string]string
- func ValueInMapIsNotEmptyByKey(target map[string]string, key string) (string, error)
- func WrapAtLength(input string, length int) string
- func WriteFileWithContent(filename string, content []byte) error
- type Command
- type RandomStringOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPathFromExtraSlashes ¶ added in v1.1.0
func DirExistAndHasContent ¶
func ExtractBearerValueFromHeader ¶ added in v1.1.0
func FileExistAndItIsAFile ¶
func FileIsNotEmpty ¶
func FindGitRepoDir ¶
func FindStrInMapKeys ¶ added in v1.1.0
func FindStrInMapValues ¶ added in v1.1.0
func FindStrInSlice ¶ added in v1.1.0
func GenerateRandomString ¶
func GenerateRandomString(opt RandomStringOptions) string
func GetCommandArgs ¶
GetCommandArgs parses the job command and returns the arguments.
func GetCurrentDir ¶
func GetCurrentDir() string
func GetHomeDir ¶
func GetHomeDir() string
func IsHTTPVerbValid ¶ added in v1.1.0
func KeyInMapHasValueSet ¶ added in v1.1.0
func MapIsNulOrEmpty ¶
func MergeSlices ¶
func NewUnixTimeWithAddedMinutes ¶ added in v1.1.0
func NewValidator ¶ added in v1.1.0
func NewValidator() *validator.Validate
func NormaliseStringToLower ¶
func NormaliseStringToUpper ¶
func RemoveDoubleQuotes ¶
func RunCommand ¶
RunCommand runs a command and returns the output.
func ValidateAuthorizationHeader ¶ added in v1.1.0
func ValidateBearerTokenSchema ¶ added in v1.1.0
func ValidatorErrors ¶ added in v1.1.0
ValidatorErrors func for show validation errors for each invalid fields.
func ValueInMapIsNotEmptyByKey ¶ added in v1.1.0
func WrapAtLength ¶
WrapAtLength wraps the input paragraph at the specified length
func WriteFileWithContent ¶
Types ¶
type RandomStringOptions ¶
Click to show internal directories.
Click to hide internal directories.