localfs

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFS

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

func New

func New(log *slog.Logger, datadir string) *LocalFS

func (*LocalFS) Backup

func (l *LocalFS) Backup(ctx context.Context) error

put Datadir into constants.BackupDir directory

func (*LocalFS) Check

func (l *LocalFS) Check(ctx context.Context) (bool, error)

Check if Datadir is empty

func (*LocalFS) Probe

func (l *LocalFS) Probe(ctx context.Context) error

func (*LocalFS) Recover

func (l *LocalFS) Recover(ctx context.Context) error

get data from constants.RestoreDir

func (*LocalFS) Upgrade

func (_ *LocalFS) Upgrade(ctx context.Context) error

Jump to

Keyboard shortcuts

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