Documentation ¶
Index ¶
- func BoolToString(b *bool) string
- func BoolValue(b *bool) bool
- func DefaultBooleanIfUnset(valPtr **bool, d bool)
- func DefaultInt32IfUnset(valPtr **int32, d int32)
- func DefaultIntIfUnset(ptr **int, val int)
- func DefaultStringIfUnset(valPtr **string, d string)
- func GenerateRandomString(n int) string
- func IsEqualStruct(in interface{}, cmp interface{}) bool
- func NewBoolPointer(b bool) *bool
- func NewInt32Pointer(i int32) *int32
- func NewInt64Pointer(i int64) *int64
- func NewIntOrStringPointer(str string) *intstr.IntOrString
- func NewIntPointer(i int) *int
- func NewStringPointer(s string) *string
- func StringValue(s *string) string
- func YAMLToJSONString(yamlConfigs string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
BoolToString return "true" if b == true, else "false"
func DefaultBooleanIfUnset ¶
DefaultBooleanIfUnset sets default value d of a boolean if unset
func DefaultInt32IfUnset ¶
DefaultInt32IfUnset sets default value d of an int32 if unset
func DefaultIntIfUnset ¶
DefaultIntIfUnset sets value val of an int if unset
func DefaultStringIfUnset ¶
DefaultStringIfUnset sets default value d of a string if unset
func GenerateRandomString ¶
GenerateRandomString use to generate random string with a define size
func IsEqualStruct ¶
func IsEqualStruct(in interface{}, cmp interface{}) bool
IsEqualStruct is a util function that returns whether 2 structures are the same We compare the marshaled results to avoid traversing all fields and be agnostic of the struct.
func NewBoolPointer ¶
NewBoolPointer returns pointer on a new bool value instance
func NewInt32Pointer ¶
NewInt32Pointer returns pointer on a new int32 value instance
func NewInt64Pointer ¶
NewInt64Pointer returns pointer on a new int32 value instance
func NewIntOrStringPointer ¶
func NewIntOrStringPointer(str string) *intstr.IntOrString
NewIntOrStringPointer converts a string value to an IntOrString pointer
func NewStringPointer ¶
NewStringPointer returns pointer on a new string value instance
func StringValue ¶
StringValue return the string value, "" if nil
func YAMLToJSONString ¶
YAMLToJSONString converts a YAML string to a JSON string
Types ¶
This section is empty.