blobstore

package
v2.26.7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 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(node *node.Node) error

Delete deletes a blob from the blobstore

func (*Blobstore) Download

func (bs *Blobstore) Download(node *node.Node) (io.ReadCloser, error)

Download retrieves a blob from the blobstore for reading

func (*Blobstore) Upload

func (bs *Blobstore) Upload(node *node.Node, source string) 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