Documentation ¶
Index ¶
- func BuildURL(hostname string, insecure bool) string
- func FilterValues(m map[string]string, s string) map[string]string
- func FlatMap(m map[string]string) string
- func Keys(m map[string]string) []string
- func ListContains(list []string, search string) bool
- func MapMatchesAll(all, search map[string]string) bool
- func ParseDuration(since time.Duration) string
- func Sha256(passwd string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildURL ¶
BuildURL appends http:// or https:// to given hostname, according to the insecure parameter
func FilterValues ¶
FilterValues removes all element from m where value is s
func ListContains ¶
ListContains checks a list of string contains a given string
func MapMatchesAll ¶
MapMatchesAll checks first map contains all the second map elements with the same value
func ParseDuration ¶
ParseDuration returns a string representation of a duration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.