blobstore

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-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
}

Blobstore provides an interface to an filesystem based blobstore

func New

func New(root string) (*Blobstore, error)

New returns a new Blobstore

func (*Blobstore) Delete

func (bs *Blobstore) Delete(key string) error

Delete deletes a blob from the blobstore

func (*Blobstore) Download

func (bs *Blobstore) Download(key string) (io.ReadCloser, error)

Download retrieves a blob from the blobstore for reading

func (*Blobstore) Upload

func (bs *Blobstore) Upload(key string, data io.Reader) error

Upload stores some data in the blobstore under the given key

Jump to

Keyboard shortcuts

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