package snapshot
import "github.com/containerd/containerd/pkg/cri/store/snapshot"
Index ¶
Types ¶
type Snapshot ¶
type Snapshot struct { // Key is the key of the snapshot Key string // Kind is the kind of the snapshot (active, committed, view) Kind snapshot.Kind // Size is the size of the snapshot in bytes. Size uint64 // Inodes is the number of inodes used by the snapshot Inodes uint64 // Timestamp is latest update time (in nanoseconds) of the snapshot // information. Timestamp int64 }
Snapshot contains the information about the snapshot.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores all snapshots.
func NewStore ¶
func NewStore() *Store
NewStore creates a snapshot store.
func (*Store) Add ¶
Add a snapshot into the store.
func (*Store) Delete ¶
Delete deletes the snapshot with specified key.
func (*Store) Get ¶
Get returns the snapshot with specified key. Returns store.ErrNotExist if the snapshot doesn't exist.
func (*Store) List ¶
List lists all snapshots.
Source Files ¶
- Version
- v1.5.9
- Published
- Jan 5, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 37 minutes ago –
Tools for package owners.