client

package
v2.13.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupPreparer

type BackupPreparer interface {
	Command(string) *exec.Cmd
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func DefaultClient

func DefaultClient(config config.Config) *Client

func NewClient

func NewClient(config config.Config, tarClient *tarpit.TarClient, backupPreparer BackupPreparer, downloader Downloader, galeraAgentCaller GaleraAgentCallerInterface) *Client

func (*Client) BackupNode

func (this *Client) BackupNode(ip string, index int) error

func (*Client) Execute

func (this *Client) Execute() error

type Downloader

type Downloader interface {
	DownloadBackup(url string, streamer download.StreamedWriter) error
}

type GaleraAgentCallerInterface

type GaleraAgentCallerInterface interface {
	WsrepLocalIndex(string) (int, error)
}

type MultiError

type MultiError []error

func (MultiError) Error

func (e MultiError) Error() string

Jump to

Keyboard shortcuts

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