Documentation ¶
Index ¶
- func BoolToPtr(b bool) *bool
- func CheckHCLKeys(node ast.Node, valid []string) error
- func CleanEnvVar(s string, r byte) string
- func CompareMapStringString(a, b map[string]string) bool
- func CopyMapStringFloat64(m map[string]float64) map[string]float64
- func CopyMapStringInt(m map[string]int) map[string]int
- func CopyMapStringSliceString(m map[string][]string) map[string][]string
- func CopyMapStringString(m map[string]string) map[string]string
- func CopyMapStringStruct(m map[string]struct{}) map[string]struct{}
- func CopySliceInt(s []int) []int
- func CopySliceString(s []string) []string
- func Float64ToPtr(f float64) *float64
- func HashUUID(input string) (output string, hashed bool)
- func Int64ToPtr(i int64) *int64
- func Int8ToPtr(i int8) *int8
- func IntMax(a, b int) int
- func IntMin(a, b int) int
- func IntToPtr(i int) *int
- func IsUUID(str string) bool
- func IsValidInterpVariable(str string) bool
- func MapStringStringSliceValueSet(m map[string][]string) []string
- func SliceSetDisjoint(first, second []string) (bool, []string)
- func SliceStringIsSubset(larger, smaller []string) (bool, []string)
- func SliceStringToSet(s []string) map[string]struct{}
- func StringToPtr(str string) *string
- func TimeToPtr(t time.Duration) *time.Duration
- func Uint64Max(a, b uint64) uint64
- func Uint64ToPtr(u uint64) *uint64
- func UintToPtr(u uint) *uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanEnvVar ¶
CleanEnvVar replaces all occurrences of illegal characters in an environment variable with the specified byte.
func CompareMapStringString ¶
CompareMapStringString returns true if the maps are equivalent. A nil and empty map are considered not equal.
func CopyMapStringSliceString ¶
CopyMapStringSliceString copies a map of strings to string slices such as http.Header
func CopyMapStringString ¶
Helpers for copying generic structures.
func CopyMapStringStruct ¶
func CopySliceInt ¶
func CopySliceString ¶
func Float64ToPtr ¶
Float64ToPtr returns the pointer to an float64
func HashUUID ¶
HashUUID takes an input UUID and returns a hashed version of the UUID to ensure it is well distributed.
func IsValidInterpVariable ¶
IsValidInterpVariable returns true if a valid dotted variable names for interpolation. The string must begin with one or more non-dot characters which may be followed by sequences containing a dot followed by a one or more non-dot characters.
func MapStringStringSliceValueSet ¶
MapStringStringSliceValueSet returns the set of values in a map[string][]string
func SliceSetDisjoint ¶
func SliceStringIsSubset ¶
SliceStringIsSubset returns whether the smaller set of strings is a subset of the larger. If the smaller slice is not a subset, the offending elements are returned.
func SliceStringToSet ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
BOLTdd contains a wrapper around BoltDB to deduplicate writes and encode values using mgspack.
|
BOLTdd contains a wrapper around BoltDB to deduplicate writes and encode values using mgspack. |
pluginutils
|
|
catalog
Package catalog is used to register internal plugins such that they can be loaded.
|
Package catalog is used to register internal plugins such that they can be loaded. |
Package testlog creates a *log.Logger backed by *testing.T to ease logging in tests.
|
Package testlog creates a *log.Logger backed by *testing.T to ease logging in tests. |
Package testtask implements a portable set of commands useful as stand-ins for user tasks.
|
Package testtask implements a portable set of commands useful as stand-ins for user tasks. |