datastore

package
v0.0.0-...-ebde46d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 1 Imported by: 0

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 SnapshotID

type SnapshotID string

SnapshotID is the actual ID of the snapshot created

type SnapshotInfo

type SnapshotInfo struct {
	Resource  SnapshotResource
	ID        SnapshotID
	CreatedAt time.Time
	Labels    SnapshotLabels
}

SnapshotInfo describes meta infos of a snapshot

type SnapshotLabels

type SnapshotLabels map[string]string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL