Documentation
¶
Index ¶
- Constants
- func CompareTimePtr(t1, t2 *time.Time) int
- func EmptyOrContains[S ~[]E, E comparable](elements S, e E) bool
- func FromCredentialsSecretData(data map[string][]byte) (map[string]any, error)
- func FromParametersSecretData(data map[string][]byte) (map[string]any, error)
- func LoadConfigInto(conf any, fromDir string) error
- func NamespacedUUID(ns string, segments ...string) string
- func NewZapLogger(logLevel zapcore.Level) (logr.Logger, zap.AtomicLevel, error)
- func NilOrEquals[E comparable](value *E, expectedValue E) bool
- func ParseDuration(dur string) (time.Duration, error)
- func PtrTo[T any](o T) *T
- func SetMapValue[K comparable, V any](m map[K]V, key K, value V) map[K]V
- func SyncLogLevel(ctx context.Context, logger logr.Logger, eventChan chan string, ...)
- func ToCredentialsSecretData(credentials any) (map[string][]byte, error)
- func ToParametersSecretData(credentials any) (map[string][]byte, error)
- func Uniq[S ~[]E, E cmp.Ordered](elements S) S
- func WatchForConfigChangeEvents(ctx context.Context, configFilePath string, logger logr.Logger, ...) error
- func ZeroIfNil[T any, PT *T](value PT) T
- func ZeroOrEquals[E comparable](value E, expectedValue E) bool
- type LogLevelGetter
- type LogrWriter
Constants ¶
View Source
const ( CredentialsSecretKey = "credentials" ParametersSecretKey = "parameters" )
Variables ¶
This section is empty.
Functions ¶
func CompareTimePtr ¶ added in v0.13.0
func EmptyOrContains ¶ added in v0.13.0
func EmptyOrContains[S ~[]E, E comparable](elements S, e E) bool
func FromCredentialsSecretData ¶ added in v0.14.0
func FromParametersSecretData ¶ added in v0.14.0
func LoadConfigInto ¶
func NamespacedUUID ¶ added in v0.13.0
func NewZapLogger ¶ added in v0.7.0
func NilOrEquals ¶ added in v0.13.0
func NilOrEquals[E comparable](value *E, expectedValue E) bool
func SetMapValue ¶ added in v0.14.0
func SetMapValue[K comparable, V any](m map[K]V, key K, value V) map[K]V
func SyncLogLevel ¶ added in v0.7.0
func SyncLogLevel(ctx context.Context, logger logr.Logger, eventChan chan string, atomicLevel zap.AtomicLevel, getLogLevelFromPath LogLevelGetter)
func ToCredentialsSecretData ¶ added in v0.13.0
func ToParametersSecretData ¶ added in v0.14.0
func WatchForConfigChangeEvents ¶ added in v0.7.0
func ZeroOrEquals ¶ added in v0.14.0
func ZeroOrEquals[E comparable](value E, expectedValue E) bool
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.