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

package testing

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

Index

Package Files

util.go

type MemStore Uses

type MemStore struct {
    sync.Mutex
    // contains filtered or unexported fields
}

MemStore is an implementation of CheckpointStore interface which stores checkpoint in memory.

func NewMemStore Uses

func NewMemStore() *MemStore

NewMemStore returns an instance of MemStore

func (*MemStore) Delete Uses

func (mstore *MemStore) Delete(key string) error

Delete deletes data from the store

func (*MemStore) List Uses

func (mstore *MemStore) List() ([]string, error)

List returns all the keys from the store

func (*MemStore) Read Uses

func (mstore *MemStore) Read(key string) ([]byte, error)

Read returns data read from store

func (*MemStore) Write Uses

func (mstore *MemStore) Write(key string, data []byte) error

Write writes the data to the store

Directories

PathSynopsis
example_checkpoint_formats/v1

Package testing imports 2 packages (graph). Updated 2018-04-17. Refresh now. Tools for package owners.