checkpoint

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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