Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMirrorPod ¶
func IsStaticPod ¶
Types ¶
type Manager ¶
type Manager interface { GetPods() []*api.Pod GetPodByFullName(podFullName string) (*api.Pod, bool) GetPodByName(namespace, name string) (*api.Pod, bool) GetPodByUID(types.UID) (*api.Pod, bool) GetPodByMirrorPod(*api.Pod) (*api.Pod, bool) GetMirrorPodByPod(*api.Pod) (*api.Pod, bool) GetPodsAndMirrorPods() ([]*api.Pod, []*api.Pod) // SetPods replaces the internal pods with the new pods. // It is currently only used for testing. SetPods(pods []*api.Pod) // Methods that modify a single pod. AddPod(pod *api.Pod) UpdatePod(pod *api.Pod) DeletePod(pod *api.Pod) DeleteOrphanedMirrorPods() TranslatePodUID(uid types.UID) types.UID GetUIDTranslations() (podToMirror, mirrorToPod map[types.UID]types.UID) IsMirrorPodOf(mirrorPod, pod *api.Pod) bool MirrorClient }
func NewBasicPodManager ¶
func NewBasicPodManager(client MirrorClient) Manager
type MirrorClient ¶
Mirror client is used to create/delete a mirror pod.
func NewBasicMirrorClient ¶
func NewBasicMirrorClient(apiserverClient clientset.Interface) MirrorClient
Click to show internal directories.
Click to hide internal directories.