Versions in this module Expand all Collapse all v0 v0.0.3 Apr 15, 2022 v0.0.1 Apr 15, 2022 Changes in this version + const ExampleChecksumAnnotation + const ExampleKey + func Checksum(value string) string + func Load(p string) (map[string]string, error) + func Parse(data map[string]string, parsers ...ParseFunc) error + func TypeFilter(ts ...interface{}) func(func(string, interface{})) func(string, interface{}) + func ValidateConstructor(constructor interface{}) error + type Constructors map[string]interface + type DefaultingWatcher interface + WatchWithDefault func(cm corev1.ConfigMap, o ...Observer) + type Logger interface + Debugf func(string, ...interface{}) + Errorf func(string, ...interface{}) + Fatalf func(string, ...interface{}) + Infof func(string, ...interface{}) + type ManualWatcher struct + Namespace string + func (w *ManualWatcher) ForEach(f func(string, []Observer) error) error + func (w *ManualWatcher) OnChange(configMap *corev1.ConfigMap) + func (w *ManualWatcher) Start(<-chan struct{}) error + func (w *ManualWatcher) Watch(name string, o ...Observer) + type Observer func(*corev1.ConfigMap) + type ParseFunc func(map[string]string) error + func AsBool(key string, target *bool) ParseFunc + func AsDuration(key string, target *time.Duration) ParseFunc + func AsFloat64(key string, target *float64) ParseFunc + func AsInt(key string, target *int) ParseFunc + func AsInt16(key string, target *int16) ParseFunc + func AsInt32(key string, target *int32) ParseFunc + func AsInt64(key string, target *int64) ParseFunc + func AsNamespacedName(key string, target *types.NamespacedName) ParseFunc + func AsOptionalNamespacedName(key string, target **types.NamespacedName) ParseFunc + func AsQuantity(key string, target **resource.Quantity) ParseFunc + func AsString(key string, target *string) ParseFunc + func AsStringSet(key string, target *sets.String) ParseFunc + func AsUint16(key string, target *uint16) ParseFunc + func AsUint32(key string, target *uint32) ParseFunc + func CollectMapEntriesWithPrefix(prefix string, target *map[string]string) ParseFunc + type StaticWatcher struct + func NewStaticWatcher(cms ...*corev1.ConfigMap) *StaticWatcher + func (di *StaticWatcher) Start(<-chan struct{}) error + func (di *StaticWatcher) Watch(name string, o ...Observer) + type UntypedStore struct + func NewUntypedStore(name string, logger Logger, constructors Constructors, ...) *UntypedStore + func (s *UntypedStore) OnConfigChanged(c *corev1.ConfigMap) + func (s *UntypedStore) UntypedLoad(name string) interface{} + func (s *UntypedStore) WatchConfigs(w Watcher) + type Watcher interface + Start func(<-chan struct{}) error + Watch func(string, ...Observer)