backup

package
v0.0.0-...-760de45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(args []string)

func Describe

func Describe()

func ProcessBytes

func ProcessBytes(displayName, dstName string, content []byte, writer *zip.Writer) result.Result

func ProcessDir

func ProcessDir(dirPath, dstName string, writer *zip.Writer) result.Result

func ProcessDirFiltered

func ProcessDirFiltered(dirPath, dstName string, matcher FileMatcher, writer *zip.Writer) result.Result

func ProcessFile

func ProcessFile(filePath, dstName string, writer *zip.Writer) result.Result

func Restore

func Restore(args []string)

Types

type CrontabSource

type CrontabSource struct {
}

func (CrontabSource) Backup

func (src CrontabSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (CrontabSource) Describe

func (src CrontabSource) Describe()

func (CrontabSource) Restore

func (src CrontabSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type DirSource

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

func (DirSource) Backup

func (src DirSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (DirSource) Describe

func (src DirSource) Describe()

func (DirSource) Restore

func (src DirSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type DpkgSource

type DpkgSource struct {
}

func (DpkgSource) Backup

func (src DpkgSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (DpkgSource) Describe

func (src DpkgSource) Describe()

func (DpkgSource) Restore

func (src DpkgSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type FileMatcher

type FileMatcher interface {
	Match(element srcdst) bool
}

type FileSource

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

func (FileSource) Backup

func (src FileSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (FileSource) Describe

func (src FileSource) Describe()

func (FileSource) Restore

func (src FileSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type FstabSource

type FstabSource struct {
}

func (FstabSource) Backup

func (src FstabSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (FstabSource) Describe

func (src FstabSource) Describe()

func (FstabSource) Restore

func (src FstabSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type LsblkSource

type LsblkSource struct {
}

func (LsblkSource) Backup

func (src LsblkSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (LsblkSource) Describe

func (src LsblkSource) Describe()

func (LsblkSource) Restore

func (src LsblkSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type MatchAll

type MatchAll struct {
}

func (MatchAll) Match

func (f MatchAll) Match(element srcdst) bool

type UnisonSource

type UnisonSource struct {
}

func (UnisonSource) Backup

func (src UnisonSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (UnisonSource) Describe

func (src UnisonSource) Describe()

func (UnisonSource) Restore

func (src UnisonSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type XfcePropertySource

type XfcePropertySource struct {
}

func (XfcePropertySource) Backup

func (src XfcePropertySource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (XfcePropertySource) Describe

func (src XfcePropertySource) Describe()

func (XfcePropertySource) Restore

func (src XfcePropertySource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

type XfceSource

type XfceSource struct {
}

func (XfceSource) Backup

func (src XfceSource) Backup(writer *zip.Writer, kvstore *[]strpair.StrPair) result.Result

func (XfceSource) Describe

func (src XfceSource) Describe()

func (XfceSource) Restore

func (src XfceSource) Restore(zip zipfile.ZipFile, store []strpair.StrPair) result.Result

Jump to

Keyboard shortcuts

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