dump

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

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

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

func (*Dumper) DumpTree

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

func (*Dumper) WriteNode

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