Documentation ¶
Index ¶
- Constants
- type CachedPodListFunc
- type Manager
- func (m *Manager) GetPods() []*v1.Pod
- func (m *Manager) ReconcilePods() ([]string, map[string]struct{}, error)
- func (m *Manager) RegistPodAddedFunc(podAddedFunc PodAddedFunc)
- func (m *Manager) RegistPodDeletedFunc(podDeletedFunc PodDeletedFunc)
- func (m *Manager) Run(ctx context.Context, reconcilePeriod time.Duration)
- type PodAddedFunc
- type PodDeletedFunc
Constants ¶
View Source
const (
MetricReconcileFail = "metamanager_reconcile_fail"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedPodListFunc ¶
type Manager ¶
type Manager struct { *metaserver.MetaServer // contains filtered or unexported fields }
func NewManager ¶
func NewManager( emitter metrics.MetricEmitter, cachedPods CachedPodListFunc, metaServer *metaserver.MetaServer, ) *Manager
func (*Manager) ReconcilePods ¶ added in v0.4.2
ReconcilePods returns a list of new pods and pod should be deleted
func (*Manager) RegistPodAddedFunc ¶
func (m *Manager) RegistPodAddedFunc(podAddedFunc PodAddedFunc)
func (*Manager) RegistPodDeletedFunc ¶
func (m *Manager) RegistPodDeletedFunc(podDeletedFunc PodDeletedFunc)
type PodAddedFunc ¶
type PodAddedFunc func(podUID string)
type PodDeletedFunc ¶
type PodDeletedFunc func(podUID string)
Click to show internal directories.
Click to hide internal directories.