kubernetes: k8s.io/kubernetes/pkg/kubelet/checkpointmanager Index | Files | Directories

package checkpointmanager

import "k8s.io/kubernetes/pkg/kubelet/checkpointmanager"

Index

Package Files

checkpoint_manager.go

type Checkpoint Uses

type Checkpoint interface {
    MarshalCheckpoint() ([]byte, error)
    UnmarshalCheckpoint(blob []byte) error
    VerifyChecksum() error
}

Checkpoint provides the process checkpoint data

type CheckpointManager Uses

type CheckpointManager interface {
    // CreateCheckpoint persists checkpoint in CheckpointStore. checkpointKey is the key for utilstore to locate checkpoint.
    // For file backed utilstore, checkpointKey is the file name to write the checkpoint data.
    CreateCheckpoint(checkpointKey string, checkpoint Checkpoint) error
    // GetCheckpoint retrieves checkpoint from CheckpointStore.
    GetCheckpoint(checkpointKey string, checkpoint Checkpoint) error
    // WARNING: RemoveCheckpoint will not return error if checkpoint does not exist.
    RemoveCheckpoint(checkpointKey string) error
    // ListCheckpoint returns the list of existing checkpoints.
    ListCheckpoints() ([]string, error)
}

CheckpointManager provides the interface to manage checkpoint

func NewCheckpointManager Uses

func NewCheckpointManager(checkpointDir string) (CheckpointManager, error)

NewCheckpointManager returns a new instance of a checkpoint manager

Directories

PathSynopsis
checksum
errors
testing
testing/example_checkpoint_formats/v1

Package checkpointmanager imports 5 packages (graph) and is imported by 133 packages. Updated 2019-06-06. Refresh now. Tools for package owners.