Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface { StoreSnapshotInfo(*SnapshotInfo) error GetLatestSnapshotInfo(SnapshotResource) (*SnapshotInfo, error) DeleteSnapshotInfo(*SnapshotInfo) error }
Datastore describes the interface needed by a storage for snapshot info
type SnapshotInfo ¶
type SnapshotInfo struct { Resource SnapshotResource ID SnapshotID CreatedAt time.Time Labels SnapshotLabels }
SnapshotInfo describes meta infos of a snapshot
type SnapshotLabels ¶
SnapshotLabels represent arbitrary labels added to a snapshot
type SnapshotResource ¶
type SnapshotResource string
SnapshotResource describes which resource this snapshot belongs to, e.g. if we consider a EBS volume the name or ID of the volume would be the snapshot resource
Click to show internal directories.
Click to hide internal directories.