sources

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMariaBackupCommand  = errors.New("mariabackup source: missing or invalid mariabackup command")
	ErrMariadbCommand      = errors.New("mariabackup source: missing or invalid mariadb command")
	ErrParseMariadbVersion = errors.New("mariabackup source: cannot parse version information")
)
View Source
var (
	ErrProxyCommandMissing = errors.New("proxy source: missing command")
	ErrProxyMissingType    = errors.New("proxy source: missing proxy-type")
	ErrProxyNoRestoration  = errors.New("proxy source: restoration not implemented")
)
View Source
var (
	ErrBtrfsPath = errors.New("btrfs source: invalid path")
)
View Source
var (
	ErrCommandMissing = errors.New("command source: invalid path")
)
View Source
var (
	ErrTarPath = errors.New("tar source: invalid path")
)

Functions

func New

func New(options *uback.Options) (src uback.Source, typ string, err error)

Create a new source from options ; you should be able to call everything on the returned interface

func NewForRestoration

func NewForRestoration(options *uback.Options, typ string) (uback.Source, error)

Create a new source only from its type ; you should be able to call only RestoreBackup on the returned interface

Types

type CreateBackupArgs added in v0.5.0

type CreateBackupArgs struct {
	uback.Options
	*uback.Snapshot
}

type ListSnapshotsArgs added in v0.5.0

type ListSnapshotsArgs struct {
	uback.Options
}

type RemoveSnapshotArgs added in v0.5.0

type RemoveSnapshotArgs struct {
	uback.Options
	uback.Snapshot
}

Jump to

Keyboard shortcuts

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