backup

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExternalCommandFailed = errors.New("external command failed")
)
View Source
var (
	ErrNoArguments = errors.New("no arguments")
)
View Source
var ErrValidationFailed = errors.New("validation failed")

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Limits LimitsConfig
}

type Config

type Config struct {
	MariaDB    config.MariaDB
	Storage    config.Storage
	Backup     Backup
	Encryption config.Encryption
}

func DefaultConfig

func DefaultConfig() Config

func (Config) Validate added in v0.6.0

func (c Config) Validate() error

type LimitsConfig added in v0.5.1

type LimitsConfig struct {
	MaxCount int
}

type Operation added in v0.6.0

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

func NewOperation added in v0.6.0

func NewOperation(config Config, logger logging.Logger) *Operation

func (*Operation) Run added in v0.6.0

func (o *Operation) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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