Documentation ¶
Index ¶
- func Map(cm *corev1.ConfigMap, obj interface{})
- type AddNotifiable
- type Config
- type DeleteNotifiable
- type Notifiable
- type UpdateNotifiable
- type Watcher
- func (w *Watcher) NotifyDelete(*corev1.ConfigMap)
- func (w *Watcher) OnAddNotify(notifiable AddNotifiable) *Watcher
- func (w *Watcher) OnDeleteNotify(notifiable DeleteNotifiable) *Watcher
- func (w *Watcher) OnDeleteNotifyMe() *Watcher
- func (w *Watcher) OnUpdateNotify(notifiable UpdateNotifiable) *Watcher
- func (w *Watcher) Watch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddNotifiable ¶
type Config ¶
type Config struct { ServerAddress string PublishHost string `config:"publish_host"` MaxIdleConns int `config:"max_idle_conns"` MaxConnsPerHost int `config:"max_conns_per_host"` MaxIdleConnsPerHost int `config:"max_idle_conns_per_host"` IdleConnTimeout time.Duration `config:"idle_conn_timeout"` }
Config represents environment config.
type DeleteNotifiable ¶
type Notifiable ¶
type Notifiable interface { AddNotifiable UpdateNotifiable DeleteNotifiable }
type UpdateNotifiable ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(client kubernetes.Interface, namespace, name string) *Watcher
func (*Watcher) NotifyDelete ¶
func (*Watcher) OnAddNotify ¶
func (w *Watcher) OnAddNotify(notifiable AddNotifiable) *Watcher
func (*Watcher) OnDeleteNotify ¶
func (w *Watcher) OnDeleteNotify(notifiable DeleteNotifiable) *Watcher
func (*Watcher) OnDeleteNotifyMe ¶
func (*Watcher) OnUpdateNotify ¶
func (w *Watcher) OnUpdateNotify(notifiable UpdateNotifiable) *Watcher
Click to show internal directories.
Click to hide internal directories.