blob

package
v0.0.0-...-b8432e4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobProvider

type BlobProvider interface {
	ReadBlob(name string, options ReadBlobOptions) (io.ReadCloser, error)
	WriteBlob(name string, reader io.Reader) error
	StatBlob(name string) (StatBlobResult, error)
}

func CreateS3BlobProvider

func CreateS3BlobProvider(URL string) (BlobProvider, error)

type BlobRange

type BlobRange struct {
	Start int64
	End   int64
}

type ReadBlobOptions

type ReadBlobOptions struct {
	Range *BlobRange
}

type S3BlobProvider

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

func (*S3BlobProvider) ReadBlob

func (provider *S3BlobProvider) ReadBlob(name string, options ReadBlobOptions) (io.ReadCloser, error)

func (*S3BlobProvider) StatBlob

func (provider *S3BlobProvider) StatBlob(name string) (StatBlobResult, error)

func (*S3BlobProvider) WriteBlob

func (provider *S3BlobProvider) WriteBlob(name string, reader io.Reader) error

type StatBlobResult

type StatBlobResult struct {
	Size int64
}

Jump to

Keyboard shortcuts

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