Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidManifestKey = errors.New("invalid manifest key")
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { Time unixtime.Seconds `json:"time"` ManifestType ManifestType `json:"manifest_type"` HostID string `json:"host_id"` Address string `json:"address"` Partitioner string `json:"partitioner"` Tokens []string `json:"tokens"` DataFiles map[string]digest.ForRestore `json:"data_files"` }
func (Manifest) Key ¶
func (m Manifest) Key() ManifestKey
func (Manifest) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Manifest) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Manifest) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Manifest) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ManifestKey ¶
type ManifestKey struct { Time unixtime.Seconds ManifestType ManifestType }
func (ManifestKey) FileName ¶
func (k ManifestKey) FileName() string
func (*ManifestKey) PopulateFromFileName ¶
func (k *ManifestKey) PopulateFromFileName(name string) error
type ManifestKeys ¶
type ManifestKeys []ManifestKey
func (ManifestKeys) Len ¶
func (s ManifestKeys) Len() int
func (ManifestKeys) Less ¶
func (s ManifestKeys) Less(i, j int) bool
func (ManifestKeys) Swap ¶
func (s ManifestKeys) Swap(i, j int)
type ManifestType ¶
type ManifestType int
const ( ManifestTypeInvalid ManifestType = 0 ManifestTypeSnapshot ManifestType = 1 ManifestTypeIncomplete ManifestType = 2 ManifestTypeIncremental ManifestType = 3 )
type NodeIdentity ¶
func (NodeIdentity) MarshalLogObject ¶
func (ni NodeIdentity) MarshalLogObject(enc zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.