pod

package
v1.1.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2016 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMirrorPod

func IsMirrorPod(pod *api.Pod) bool

func IsStaticPod

func IsStaticPod(pod *api.Pod) bool

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

type MirrorClient interface {
	CreateMirrorPod(*api.Pod) error
	DeleteMirrorPod(string) error
}

Mirror client is used to create/delete a mirror pod.

func NewBasicMirrorClient

func NewBasicMirrorClient(apiserverClient clientset.Interface) MirrorClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL