Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
// LoadPods will load checkpointed Pods from disk
LoadPods() ([]*v1.Pod, error)
// WritePod will serialize a Pod to disk
WritePod(pod *v1.Pod) error
// Deletes the checkpoint of the given pod from disk
DeletePod(pod *v1.Pod) error
}
Manager is the interface used to manage checkpoints which involves writing resources to disk to recover during restart or failure scenarios. https://github.com/kubernetes/community/pull/1241/files
func GetInstance ¶
func GetInstance() Manager
GetInstance will return the current Manager, there should be only one.
func NewCheckpointManager ¶
func NewCheckpointManager(path string) Manager
NewCheckpointManager will create a Manager that points to the following path
Click to show internal directories.
Click to hide internal directories.