list

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPacks

func AllPacks(ctx context.Context, repo Lister, ignorePacks restic.IDSet, ch chan<- worker.Job)

AllPacks sends the contents of all packs to ch.

Types

type Lister

type Lister interface {
	List(context.Context, restic.FileType) <-chan restic.ID
	ListPack(context.Context, restic.ID) ([]restic.Blob, int64, error)
}

Lister combines lists packs in a repo and blobs in a pack.

type Result

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

Result is returned in the channel from LoadBlobsFromAllPacks.

func (Result) Entries

func (l Result) Entries() []restic.Blob

Entries returns a list of all blobs saved in the pack.

func (Result) PackID

func (l Result) PackID() restic.ID

PackID returns the pack ID of this result.

func (Result) Size

func (l Result) Size() int64

Size returns the size of the pack.

Jump to

Keyboard shortcuts

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