Documentation
¶
Overview ¶
Package snapshot implements atomic full-project backup and restore for the .cloop directory. Snapshots are stored as gzip-compressed tar archives in .cloop/snapshots/ and can be created, listed, restored, and deleted via the cloop snapshot subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct {
ID string // base filename without .tar.gz
Name string // user-supplied label (may be empty)
CreatedAt time.Time // parsed from the timestamp portion of the filename
Size int64 // compressed file size in bytes
Path string // absolute path to the archive
}
Meta holds the parsed metadata for a single snapshot.
func FindByPrefix ¶
FindByPrefix resolves a potentially abbreviated id prefix (or exact id) to a full Meta. Returns an error if zero or more than one match.
Click to show internal directories.
Click to hide internal directories.