Documentation
¶
Index ¶
- func ComputeEgressCIDRs(ips []string) []string
- func IsEmptyString(s *string) bool
- func IsStringPtrValueEqual(a *string, b string) bool
- func Retry(maxRetries int, delay time.Duration, log logr.Logger, fn func() error) error
- func SetStringValue(values map[string]interface{}, key string, value *string)
- func SimpleMatch(pattern, text string) (bool, int)
- func StringEqual(a, b *string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeEgressCIDRs ¶ added in v1.45.0
ComputeEgressCIDRs converts an IP to a CIDR depending on the IP family.
func IsEmptyString ¶
IsEmptyString checks whether a string is empty
func IsStringPtrValueEqual ¶ added in v1.17.0
IsStringPtrValueEqual checks whether the value of string pointer `a` is equal to value of string `b`.
func Retry ¶ added in v1.47.0
Retry performs a function with retries, delay, and a max number of attempts
func SetStringValue ¶
SetStringValue sets an optional string value in a string map if the value is defined and not empty
func SimpleMatch ¶ added in v1.5.0
SimpleMatch returns whether the given pattern matches the given text. It also returns a score indicating the match between `pattern` and `text`. The higher the score the higher the match. Only simple wildcard patterns are supposed to be passed, e.g. '*', 'tex*'.
Types ¶
This section is empty.