logger

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	restic.Backend
}

func New

func New(be restic.Backend) *Backend

func (*Backend) Close

func (be *Backend) Close() error

func (*Backend) Delete

func (be *Backend) Delete(ctx context.Context) error

func (*Backend) IsNotExist

func (be *Backend) IsNotExist(err error) bool

func (*Backend) List

func (be *Backend) List(ctx context.Context, t restic.FileType, fn func(restic.FileInfo) error) error

func (*Backend) Load

func (be *Backend) Load(ctx context.Context, h restic.Handle, length int, offset int64, fn func(io.Reader) error) error

func (*Backend) Remove

func (be *Backend) Remove(ctx context.Context, h restic.Handle) error

Remove deletes a file from the backend.

func (*Backend) Save

Save adds new Data to the backend.

func (*Backend) Stat

func (be *Backend) Stat(ctx context.Context, h restic.Handle) (restic.FileInfo, error)

func (*Backend) Unwrap

func (be *Backend) Unwrap() restic.Backend

Jump to

Keyboard shortcuts

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