backup

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

func New

func New(cfg *RunnerConfig) *Runner

func (*Runner) CheckKnownRepos

func (r *Runner) CheckKnownRepos(ctx context.Context)

func (*Runner) PruneKnownRepos added in v0.1.16

func (r *Runner) PruneKnownRepos(ctx context.Context)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, ctr *types.Container) (runErr error)

func (*Runner) RunStackBatch

func (r *Runner) RunStackBatch(ctx context.Context, project string, batch []*types.Container)

type RunnerConfig

type RunnerConfig struct {
	Docker            *docker.Client
	Restic            *restic.Client
	Registry          *registry.Registry
	ResticConf        *config.ResticConf
	DefaultSchedule   string
	DefaultRetention  string
	IgnoredIDs        *sync.Map
	Notifier          *notify.Notifier
	Logger            *slog.Logger
	ExecTimeout       time.Duration
	HealthWaitTimeout time.Duration
	RepoTimeout       time.Duration
	Meters            telemetry.MeterSet
	Tracer            trace.Tracer
}

Jump to

Keyboard shortcuts

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