provider

package
v0.0.0-...-1414ade Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Init() error
	TargetLocation() string
	Backup(path string) error
	BackupWithIfile(ifile string) error
	PasswordIsSet() bool
}

type Restic

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

func NewRestic

func NewRestic(ctx context.Context, repoPath, extraArgs, password string, sudo bool, log *zap.Logger) *Restic

func (*Restic) Backup

func (r *Restic) Backup(path string) error

func (*Restic) BackupWithIfile

func (r *Restic) BackupWithIfile(ifile string) error

func (*Restic) Init

func (r *Restic) Init() error

func (*Restic) PasswordIsSet

func (r *Restic) PasswordIsSet() bool

func (*Restic) TargetLocation

func (r *Restic) TargetLocation() string

Jump to

Keyboard shortcuts

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