Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDir

func GetDir(ctx context.Context, bs *blobstore.BlobStore, hash, path string) error

GetDir restore the directory to path

Types

type BlobStorer

type BlobStorer interface {
	// Get(context.Context, string) ([]byte, error)
	// Enumerate(chan<- string, string, string, int) error
	Stat(string) (bool, error)
	Put(string, []byte) error
}

type Downloader

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

func NewDownloader

func NewDownloader(bs *blobstore.BlobStore) *Downloader

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, m *node.RawNode, path string) error

func (*Downloader) File

func (d *Downloader) File(ctx context.Context, m *node.RawNode) (io.ReadCloser, error)

Directories

Path Synopsis