reader

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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