Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMap ¶
type ConfigMap interface { //create configmap Create(ctx context.Context, namespace string, cm *coreV1.ConfigMap) error //update configmap Update(ctx context.Context, namespace string, cm *coreV1.ConfigMap) error //delete configmap Delete(ctx context.Context, namespace string, name string) error //list configmap List(ctx context.Context, namespace string, selector labels.Selector) ([]*coreV1.ConfigMap, error) //get configmap Get(ctx context.Context, namespace string, name string) (*coreV1.ConfigMap, error) //watch event WatchEvent(ctx context.Context, handler ConfigMapHandlerFuncs) }
configmap interface
func NewConfigMap ¶
func NewConfigMap(clientset *kubernetes.Clientset, factory informers.SharedInformerFactory) ConfigMap
new configmap
type ConfigMapHandlerFuncs ¶
type ConfigMapHandlerFuncs struct { AddFunc func(obj *coreV1.ConfigMap) UpdateFunc func(oldObj, newObj *coreV1.ConfigMap) DeleteFunc func(obj *coreV1.ConfigMap) }
ConfigMapHandlerFuncs
func (ConfigMapHandlerFuncs) OnAdd ¶
func (j ConfigMapHandlerFuncs) OnAdd(obj interface{})
OnAdd calls AddFunc if it's not nil.
func (ConfigMapHandlerFuncs) OnDelete ¶
func (j ConfigMapHandlerFuncs) OnDelete(obj interface{})
OnDelete calls DeleteFunc if it's not nil.
func (ConfigMapHandlerFuncs) OnUpdate ¶
func (j ConfigMapHandlerFuncs) OnUpdate(oldObj, newObj interface{})
OnUpdate calls UpdateFunc if it's not nil.
Click to show internal directories.
Click to hide internal directories.