Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorMarshallingConfig = func(err error) error { return errors.Wrapf(err, "could not marshal config to string") } ErrorUnmarshallingConfig = func(err error) error { return errors.Wrapf(err, "could not unmarshal string to config") } ErrorLoadingExistingConfig = func(err error) error { return errors.Wrapf(err, "could not load existing config") } ErrorUpdatingConfig = func(err error) error { return errors.Wrapf(err, "could not update config") } ErrorSettingDefaultConfig = func(err error) error { return errors.Wrapf(err, "could not get config, and could not set config to default") } )
Functions ¶
Types ¶
type ConfigClient ¶
type ConfigClient interface { GetConfig(ctx context.Context, config proto.Message) error SetConfig(ctx context.Context, config proto.Message) error }
func NewConfigClient ¶
func NewConfigClient(kube ConfigMapClient, configMapNamespace, configMapName, configKey string, defaultConfig proto.Message) ConfigClient
type ConfigMapClient ¶
type ConfigMapClient interface { GetConfigMap(ctx context.Context, namespace string, name string) (*v1.ConfigMap, error) SetConfigMap(ctx context.Context, config *v1.ConfigMap) error }
func NewConfigMapClient ¶
func NewConfigMapClient(client kubernetes.Interface) ConfigMapClient
type KubeConfigMapClient ¶
type KubeConfigMapClient struct {
// contains filtered or unexported fields
}
func (*KubeConfigMapClient) GetConfigMap ¶
func (*KubeConfigMapClient) SetConfigMap ¶
type MockConfigMapClient ¶
func (*MockConfigMapClient) GetConfigMap ¶
func (*MockConfigMapClient) SetConfigMap ¶
Click to show internal directories.
Click to hide internal directories.