Documentation
¶
Index ¶
- func Runner(version string, once bool) int
- type Backup
- type ConsulAdapter
- func (c *ConsulAdapter) CreateACL(acl *consulapi.ACLEntry) error
- func (c *ConsulAdapter) CreatePQ(pq *consulapi.PreparedQueryDefinition) error
- func (c *ConsulAdapter) ListACLs() ([]*consulapi.ACLEntry, error)
- func (c *ConsulAdapter) ListKeys() (consulapi.KVPairs, error)
- func (c *ConsulAdapter) ListPQs() ([]*consulapi.PreparedQueryDefinition, error)
- func (c *ConsulAdapter) PutKV(key string, value []byte) error
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backup ¶
type Backup struct {
ACLFileChecksum string
ACLJSONData []byte
Client *consul.Consul
Config *config.Config
Storage interfaces.StorageClient
FileSystem interfaces.FileSystem
Archiver interfaces.Archiver
Logger interfaces.Logger
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
type ConsulAdapter ¶ added in v0.3.0
ConsulAdapter wraps the consul API client to implement ConsulClient interface
func (*ConsulAdapter) CreateACL ¶ added in v0.3.0
func (c *ConsulAdapter) CreateACL(acl *consulapi.ACLEntry) error
CreateACL creates an ACL in consul
func (*ConsulAdapter) CreatePQ ¶ added in v0.3.0
func (c *ConsulAdapter) CreatePQ(pq *consulapi.PreparedQueryDefinition) error
CreatePQ creates a prepared query in consul
func (*ConsulAdapter) ListACLs ¶ added in v0.3.0
func (c *ConsulAdapter) ListACLs() ([]*consulapi.ACLEntry, error)
ListACLs lists all ACLs from consul
func (*ConsulAdapter) ListKeys ¶ added in v0.3.0
func (c *ConsulAdapter) ListKeys() (consulapi.KVPairs, error)
ListKeys lists all keys from consul
func (*ConsulAdapter) ListPQs ¶ added in v0.3.0
func (c *ConsulAdapter) ListPQs() ([]*consulapi.PreparedQueryDefinition, error)
ListPQs lists all prepared queries from consul
Click to show internal directories.
Click to hide internal directories.