checkpoint

package
v1.15.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePod added in v1.11.0

func DeletePod(cpm checkpointmanager.CheckpointManager, pod *v1.Pod) error

DeletePod deletes a checkpoint from disk if present

func LoadPods added in v1.11.0

func LoadPods(cpm checkpointmanager.CheckpointManager) ([]*v1.Pod, error)

LoadPods Loads All Checkpoints from disk

func WritePod added in v1.11.0

func WritePod(cpm checkpointmanager.CheckpointManager, pod *v1.Pod) error

WritePod a checkpoint to a file on disk if annotation is present

Types

type Data added in v1.11.0

type Data struct {
	Pod      *v1.Pod
	Checksum checksum.Checksum
}

Data to be stored as checkpoint

func (*Data) GetPod added in v1.11.0

func (cp *Data) GetPod() *v1.Pod

func (*Data) MarshalCheckpoint added in v1.11.0

func (cp *Data) MarshalCheckpoint() ([]byte, error)

MarshalCheckpoint returns marshalled data

func (*Data) UnmarshalCheckpoint added in v1.11.0

func (cp *Data) UnmarshalCheckpoint(blob []byte) error

UnmarshalCheckpoint returns unmarshalled data

func (*Data) VerifyChecksum added in v1.11.0

func (cp *Data) VerifyChecksum() error

VerifyChecksum verifies that passed checksum is same as calculated checksum

type PodCheckpoint added in v1.11.0

type PodCheckpoint interface {
	checkpointmanager.Checkpoint
	GetPod() *v1.Pod
}

func NewPodCheckpoint added in v1.11.0

func NewPodCheckpoint(pod *v1.Pod) PodCheckpoint

NewPodCheckpoint returns new pod checkpoint

Jump to

Keyboard shortcuts

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