Documentation
¶
Overview ¶
Package consumer implements the WAL consumer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
Backup represents a Backup consumer.
func NewBackup ¶
func NewBackup(opts *BackupOptions) (*Backup, error)
NewBackup creates a new Backup consumer.
type BackupOptions ¶
type BackupOptions struct {
// The queue to be used
Queue *queue.Conn
// A config file to connect to tier 1
Tier1KopiaConfig string
// A config file to connect to tier 2
Tier2KopiaConfig string
// Tier1WALRepository is where the retention policy is stored (see
// walserver.GetClusterRetentionPolicy): the relay only copies the
// backups that tier 2 retention keeps. Only needed with tier 2.
Tier1WALRepository *repository.Connection
// Tier2ServerAddress is the address of the tier 2 Kopia server.
Tier2ServerAddress string
// ServerTLSCertFile is the PEM file with the serving certificate shared
// by the tier 1 and tier 2 Kopia servers.
ServerTLSCertFile string
// RunID is the unique identifier for this server run.
RunID string
// RunSecret is the secret credential for server control operations.
RunSecret string
// The cache directory
CacheDirectory string
}
BackupOptions are the configuration of the WAL consumer.
type WAL ¶
type WAL struct {
// contains filtered or unexported fields
}
WAL represents a WAL consumer.
type WALOptions ¶
type WALOptions struct {
// The queue to be used
Queue *queue.Conn
// A connection to tier 1
Tier1 *repository.Connection
// A connection to tier 2
Tier2 *repository.Connection
}
WALOptions are the configuration of the WAL consumer.