blobs

package
v0.0.0-...-ca58dd2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: GPL-3.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*BlobLink) UnmarshalJSON

func (bl *BlobLink) UnmarshalJSON(b []byte) error

type BlobStore

type BlobStore struct {
	Root string
	// contains filtered or unexported fields
}

func Get

func Get(ds *ssb.DataStore) *BlobStore

func New

func New(root string, ds *ssb.DataStore) *BlobStore

func (*BlobStore) Add

func (bs *BlobStore) Add(data []byte) ssb.Ref

func (*BlobStore) Get

func (bs *BlobStore) Get(r ssb.Ref) io.ReadCloser

func (*BlobStore) Has

func (bs *BlobStore) Has(r ssb.Ref) bool

func (*BlobStore) Size

func (bs *BlobStore) Size(r ssb.Ref) int64

func (*BlobStore) WaitFor

func (bs *BlobStore) WaitFor(r ssb.Ref)

func (*BlobStore) Want

func (bs *BlobStore) Want(r ssb.Ref)

Jump to

Keyboard shortcuts

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