package testing

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

Index

Types

type MemStore

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

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

func NewMemStore

func NewMemStore() *MemStore

NewMemStore returns an instance of MemStore

func (*MemStore) Delete

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

Delete deletes data from the store

func (*MemStore) List

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

List returns all the keys from the store

func (*MemStore) Read

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

Read returns data read from store

func (*MemStore) Write

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

Write writes the data to the store

Source Files

util.go

Directories

PathSynopsis
pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats
pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
3 hours ago

Tools for package owners.