manifests

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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

func (v Manifest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Manifest) MarshalJSON

func (v Manifest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Manifest) UnmarshalEasyJSON

func (v *Manifest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Manifest) UnmarshalJSON

func (v *Manifest) UnmarshalJSON(data []byte) error

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

type NodeIdentity struct {
	Cluster  string
	Hostname string
}

func (NodeIdentity) MarshalLogObject

func (ni NodeIdentity) MarshalLogObject(enc zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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