Documentation ¶
Index ¶
- Variables
- func AgeToSeconds(s string) int64
- func AgeToUnixTime(s string) int64
- func ArchiveFile(inputPath string, outputPath string)
- func DeleteFile(path string)
- func Encrypt(plainstring string, passphrase string) string
- func GetEnv(key, fallback string) string
- func GetJsonKeyValue(jsonData string, keyName string) (string, error)
- func SliceContainsDuplicatesStrings(list []string) bool
- func StringInSlice(a string, list []string) bool
- func StringInSliceCount(a string, list []string) int
- func TagInSlice(key string, value string, tags []map[string]string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidBlockSize indicates hash blocksize <= 0. ErrInvalidBlockSize = errors.New("invalid blocksize") // ErrInvalidPKCS7Data indicates bad input to PKCS7 pad or unPad. ErrInvalidPKCS7Data = errors.New("invalid PKCS7 data (empty or not padded)") // ErrInvalidPKCS7Padding indicates PKCS7 unPad fails to bad input. ErrInvalidPKCS7Padding = errors.New("invalid padding on input") )
Functions ¶
func AgeToSeconds ¶
AgeToSeconds extents timeDuration functions from time package
func AgeToUnixTime ¶
AgeToUnixTime Helper function to get the Unix Time
func ArchiveFile ¶
ArchiveFile archives file from input
func GetJsonKeyValue ¶
GetJsonKeyValue retrives json key from a json object
func SliceContainsDuplicatesStrings ¶
Check if string slice has duplicates or more strings
func StringInSlice ¶
StringInSlice checks if string not in slice
func StringInSliceCount ¶
Counts number of strings in string slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.