kubernetes/pkg/kubelet/util/store/filestore.go

const tmpPrefix

type FileStore

// NewFileStore returns an instance of FileStore.
func NewFileStore(path string, fs utilfs.Filesystem) (Store, error) {}

// Write writes the given data to a file named key.
func (f *FileStore) Write(key string, data []byte) error {}

// Read reads the data from the file named key.
func (f *FileStore) Read(key string) ([]byte, error) {}

// Delete deletes the key file.
func (f *FileStore) Delete(key string) error {}

// List returns all keys in the store.
func (f *FileStore) List() ([]string, error) {}

// getPathByKey returns the full path of the file for the key.
func (f *FileStore) getPathByKey(key string) string {}

// writeFile writes data to path in a single transaction.
func writeFile(fs utilfs.Filesystem, path string, data []byte) (retErr error) {}

func removePath(fs utilfs.Filesystem, path string) error {}