Documentation ¶
Overview ¶
Package version holds spores version management internal logic.
Index ¶
Constants ¶
View Source
const VersionBytes = sha512.Size
VersionBytes is the space used by the version when marshalled.
Variables ¶
View Source
var ErrVersionMismatch = errors.New("the stored version does not match with required version")
ErrVersionMismatch is returned when two versions are not matching.
View Source
var NoVersion = &V{}
NoVersion is the default version that should be returned when no version is available in one store for a specific key.
Functions ¶
This section is empty.
Types ¶
type V ¶
type V struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (*V) Descriptor ¶
func (*V) MarshalBinary ¶
MarshalBinary converts the version to a VersionBytes-sized bytes slice.
func (*V) ProtoMessage ¶
func (*V) ProtoMessage()
func (*V) UnmarshalBinary ¶
UnmarshalBinary converts the input to a version.
Click to show internal directories.
Click to hide internal directories.