blobstore

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 12 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 s3 compatible blobstore

func New

func New(endpoint, region, bucket, accessKey, secretKey string, defaultPutOptions Options) (*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) List added in v2.20.0

func (bs *Blobstore) List() ([]*node.Node, error)

List lists all blobs in the Blobstore

func (*Blobstore) Path added in v2.20.0

func (bs *Blobstore) Path(node *node.Node) string

func (*Blobstore) Upload

func (bs *Blobstore) Upload(node *node.Node, source string) error

Upload stores some data in the blobstore under the given key

type Options added in v2.19.0

type Options struct {
	DisableContentSha256  bool
	DisableMultipart      bool
	SendContentMd5        bool
	ConcurrentStreamParts bool
	NumThreads            uint
	PartSize              uint64
}

Jump to

Keyboard shortcuts

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