Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("snapshot: not found")
ErrNotFound is returned by Store.Get when a Snapshot doesn't exist.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct {
SnapshotID string
ResourceURI string
SourceRevision string
// ContentHash is "sha256:<hex>" and content-addresses the blob store.
ContentHash string
ObservedAt time.Time
CreatedAt time.Time
ContentType string
Bytes int64
Provenance map[string]string
}
Snapshot is an immutable representation of a Resource at an observed point in time. It must never mutate after creation.
Click to show internal directories.
Click to hide internal directories.