Documentation ¶
Index ¶
- func BoolPointerToStr(b *bool) string
- func BoolToStr(b bool) string
- func ContextDelay(ctx context.Context, d time.Duration) error
- func CopyBooleanValue(target, source map[string]interface{}, targetKey, sourceKey string)
- func CopyIntegerValue(target, source map[string]interface{}, targetKey, sourceKey string)
- func CopyIntegersList(target, source map[string]interface{}, targetKey, sourceKey string)
- func CopyList(target, source map[string]interface{}, targetKey, sourceKey string)
- func CopyMap(source map[string]interface{}) map[string]interface{}
- func CopyMapDeep(source map[string]interface{}) map[string]interface{}
- func CopySensitiveListValue(localConfig *map[string]interface{}, ...)
- func CopySensitiveStringValue(localConfig *map[string]interface{}, ...)
- func CopyStringValue(target, source map[string]interface{}, targetKey, sourceKey string)
- func FilterList(list []interface{}, filter func(elem interface{}) bool) *interface{}
- func FilterMap(source map[string]interface{}, filter func(interface{}) bool, ...) map[string]interface{}
- func IntPointerToStr(i *int) string
- func IntToStr(i int) string
- func Intersection[T comparable](a, b []T) (uniqueA, intersection, uniqueB []T)
- func MapAddStr(msi map[string]interface{}, k, v string)
- func MapAddXInterface(msi map[string]interface{}, k string, v []interface{})
- func MapAddXString(msi map[string]interface{}, k string, v []string)
- func NewDiag(severity diag.Severity, summary, detail string) diag.Diagnostic
- func NewDiagAppend(diags diag.Diagnostics, severity diag.Severity, summary, detail string) diag.Diagnostics
- func SetContextTimeout(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
- func StrToBool(s string) bool
- func StrToInt(s string) int
- func StringInt32Hash(s string) int
- func TryReadListValue(source map[string]interface{}, key string) []interface{}
- func TryReadValue(source map[string]interface{}, key string) interface{}
- func ValidateStringBooleanValue(val any, key string) (warns []string, errs []error)
- func XInterfaceStrXIneger(xi []interface{}) []int
- func XInterfaceStrXStr(xi []interface{}) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointerToStr ¶
boolPointertoStr receives a bool pointer and returns a string. An empty string is returned if the pointer is nil.
func CopyBooleanValue ¶
func CopyIntegerValue ¶
func CopyIntegersList ¶
func CopyMapDeep ¶
func CopySensitiveListValue ¶
func CopyStringValue ¶
func FilterList ¶
func FilterList(list []interface{}, filter func(elem interface{}) bool) *interface{}
func IntPointerToStr ¶
intPointerToStr receives an int pointer and returns a string. An empty string is returned if the pointer is nil.
func Intersection ¶
func Intersection[T comparable](a, b []T) (uniqueA, intersection, uniqueB []T)
intersection accepts two slices of same type as arguments and returns three slices: uniques for the first argument, intersection and uniques for second argument results are collections of distinct elements (sets)
func MapAddXInterface ¶
mapAddXInterface adds a non-empty []interface{} to a map[string]interface{}
func MapAddXString ¶
mapAddXInterface adds a non-empty []interface{} to a map[string]interface{}
func NewDiag ¶
func NewDiag(severity diag.Severity, summary, detail string) diag.Diagnostic
newDiag receives a diag.Severity, a summary, a detail, and returns a diag.Diagnostic
func NewDiagAppend ¶
func NewDiagAppend(diags diag.Diagnostics, severity diag.Severity, summary, detail string) diag.Diagnostics
newAppendDiag receives diag.Diagnostics, a diag.Severity, a summary, and a detail. It makes a new diag.Diagnostic, appends it to the diag.Diagnostics and returns the diag.Diagnostics.
func SetContextTimeout ¶
func StrToInt ¶
strToInt receives a string and returns an int. A zero is returned if an error is found while converting the string to int.
func StringInt32Hash ¶
func TryReadListValue ¶
func TryReadValue ¶
func XInterfaceStrXIneger ¶
func XInterfaceStrXIneger(xi []interface{}) []int
xInterfaceStrXStr receives a []interface{} of type string and returns a []string
func XInterfaceStrXStr ¶
func XInterfaceStrXStr(xi []interface{}) []string
xInterfaceStrXStr receives a []interface{} of type string and returns a []string
Types ¶
This section is empty.