backup

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Runner

func Runner(version string) int

Runner is the main runner for a backup

Types

type Backup

type Backup struct {
	ACLFileChecksum  string
	ACLJSONData      []byte
	Client           *consul.Consul
	Config           *config.Config
	FullFilename     string
	KVFileChecksum   string
	KVJSONData       []byte
	LocalACLFileName string
	LocalFilePath    string
	LocalKVFileName  string
	LocalPQFileName  string
	PQFileChecksum   string
	PQJSONData       []byte
	RemoteFilePath   string
	StartTime        int64
}

Backup is the backup itself including configuration and data

func (*Backup) ACLsToJSON added in v0.1.6

func (b *Backup) ACLsToJSON()

ACLsToJSON used to marshall the data and put it on a Backup object

func (*Backup) KeysToJSON

func (b *Backup) KeysToJSON()

KeysToJSON used to marshall the data and put it on a Backup object

func (*Backup) PQsToJSON added in v0.1.6

func (b *Backup) PQsToJSON()

PQsToJSON used to marshall the data and put it on a Backup object

type Meta added in v0.1.6

type Meta struct {
	ACLSha256             string
	ConsulSnapshotVersion string
	EndTime               int64
	KVSha256              string
	NodeName              string
	PQSha256              string
	StartTime             int64
}

Meta holds the meta struct to write inside the compressed data

Jump to

Keyboard shortcuts

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