list

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 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, func(restic.ID, int64) error) error
	ListPack(context.Context, restic.ID, int64) ([]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