dump

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type Dumper added in v0.13.0

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

A Dumper writes trees and files from a repository to a Writer in an archive format.

func New added in v0.13.0

func New(format string, repo restic.Repository, w io.Writer) *Dumper

func (*Dumper) DumpTree added in v0.13.0

func (d *Dumper) DumpTree(ctx context.Context, tree *restic.Tree, rootPath string) error

func (*Dumper) WriteNode added in v0.13.0

func (d *Dumper) WriteNode(ctx context.Context, node *restic.Node) error

WriteNode writes a file node's contents directly to d's Writer, without caring about d's format.

Jump to

Keyboard shortcuts

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