dump

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeData

func GetNodeData(ctx context.Context, output io.Writer, repo restic.Repository, node *restic.Node) error

GetNodeData will write the contents of the node to the given output.

func IsDir

func IsDir(node *restic.Node) bool

IsDir checks if the given node is a directory.

func IsFile

func IsFile(node *restic.Node) bool

IsFile checks if the given node is a file.

func IsLink(node *restic.Node) bool

IsLink checks if the given node as a link.

func WriteTar

func WriteTar(ctx context.Context, repo restic.Repository, tree *restic.Tree, rootPath string, dst io.Writer) error

WriteTar will write the contents of the given tree, encoded as a tar to the given destination.

func WriteZip

func WriteZip(ctx context.Context, repo restic.Repository, tree *restic.Tree, rootPath string, dst io.Writer) error

WriteZip will write the contents of the given tree, encoded as a zip to the given destination.

Types

type WriteDump

type WriteDump func(ctx context.Context, repo restic.Repository, tree *restic.Tree, rootPath string, dst io.Writer) error

WriteDump will write the contents of the given tree to the given destination. It will loop over all nodes in the tree and dump them recursively.

Jump to

Keyboard shortcuts

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