Documentation
¶
Index ¶
- func DiffKeyValuesInMap(X, Y map[string]string) map[string]string
- func DiffSlice(X, Y []string) []string
- func GetTLSConfig(SSLCert, SSLKey, SSLCA string, InsecureSkipVerify bool) (*tls.Config, error)
- func Grep(lines []string, reg *regexp.Regexp) (inc []string, notinc []string)
- func KeyValArrayToMap(keyvalar []string) (map[string]string, error)
- func MapAdd(dest map[string]string, orig map[string]string)
- func MapDupAndAdd(source, add map[string]string) map[string]string
- func RemoveDuplicatesUnordered(elements []string) []string
- func StrArrayAppendIfMissing(slice []string, i string) []string
- func WaitAlignForNextCycle(SecPeriod int, l *logrus.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffKeyValuesInMap ¶
DiffKeyValuesInMap does a diff key and values from 2 strings maps
func GetTLSConfig ¶
GetTLSConfig gets a tls.Config object from the given certs, key, and CA files. you must give the full path to the files. If all files are blank and InsecureSkipVerify=false, returns a nil pointer.
func KeyValArrayToMap ¶
KeyValArrayToMap return a map from a key value array
func MapDupAndAdd ¶
MapDupAndAdd duplicate map and also add new values
func RemoveDuplicatesUnordered ¶
RemoveDuplicatesUnordered removes duplicated elements in the array string
func StrArrayAppendIfMissing ¶
StrArrayAppendIfMissing create a new array with data appended if not exist
func WaitAlignForNextCycle ¶
WaitAlignForNextCycle waiths untile a next cycle begins aligned with second 00 of each minute
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.