backup

package
v0.0.0-...-cf45389 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 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 Backup

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

func CreateBackup

func CreateBackup(root string) (*Backup, error)

func LoadBackup

func LoadBackup(root string) (*Backup, error)

func NewBackup

func NewBackup(root string) (*Backup, error)

func (*Backup) WriteData

func (b *Backup) WriteData(id string, data io.Reader) error

func (*Backup) WriteFile

func (b *Backup) WriteFile(file *scproto.TaggedFile) error

type Driver

type Driver interface {
	WriteFile(*scproto.TaggedFile) error
	WriteData(string, io.Reader) error
	WriteTag(*scproto.Tag) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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