reader

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader allows an io.ReadCloser to be used as a backup destination.

func NewReader

func NewReader() *Reader

NewReader creates a new Writer -> Reader wrapper that can be used for backups.

func (*Reader) Output

func (r *Reader) Output() io.ReadCloser

Output returns the reader that must be consumed to receive the entire backup.

func (*Reader) Save

func (r *Reader) Save(ctx context.Context) (io.WriteCloser, error)

Save returns the writer for saving a backup.

Jump to

Keyboard shortcuts

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