exporter

package
v0.0.0-...-112cc7f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// filename in tar archive that holds the information
	// about exported data format version
	ExportVersionFilename = ".swarm-export-version"
	// current export format version
	CurrentExportVersion = "1"
	// default export filename
	DefaultExportFilename = "swarm-exportdb.tar"
)

Variables

This section is empty.

Functions

func Export

func Export(src string, opts ...Option) error

Types

type Option

type Option func(*exporter)

func WithDestinationFilename

func WithDestinationFilename(fname string) Option

func WithProgressUpdater

func WithProgressUpdater(upd ProgressUpdater) Option

type ProgressUpdater

type ProgressUpdater interface {
	Update(int, int)
}

Jump to

Keyboard shortcuts

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