bsexternal

package
v0.0.0-...-01875d1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blobstore

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

func New

func New(kvs kvstore.KVStore) *Blobstore

func (*Blobstore) AddEntry

func (bs *Blobstore) AddEntry(id blobs.ID, e Entry) error

func (*Blobstore) Contains

func (bs *Blobstore) Contains(id blobs.ID) bool

func (*Blobstore) Get

func (bs *Blobstore) Get(id blobs.ID) (b blobs.Blob, err error)

func (*Blobstore) Iterate

func (bs *Blobstore) Iterate(f func(blobs.Blob) bool) (err error)

type Entry

type Entry struct {
	Path   string
	Offset uint64
	Size   uint64
}

Jump to

Keyboard shortcuts

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