s3bolt

package
v0.0.0-...-2d6084a Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func New

func New(bolt *bolt.DB, opts ...Option) *Backend

func NewFile

func NewFile(file string, opts ...Option) (*Backend, error)

func (*Backend) BucketExists

func (db *Backend) BucketExists(name string) (exists bool, err error)

func (*Backend) CreateBucket

func (db *Backend) CreateBucket(name string) error

func (*Backend) DeleteBucket

func (db *Backend) DeleteBucket(name string) error

func (*Backend) DeleteMulti

func (db *Backend) DeleteMulti(bucketName string, objects ...string) (result s3tohdfs.MultiDeleteResult, err error)

func (*Backend) DeleteObject

func (db *Backend) DeleteObject(bucketName, objectName string) (result s3tohdfs.ObjectDeleteResult, rerr error)

func (*Backend) GetObject

func (db *Backend) GetObject(bucketName, objectName string, rangeRequest *s3tohdfs.ObjectRangeRequest) (*s3tohdfs.Object, error)

func (*Backend) HeadObject

func (db *Backend) HeadObject(bucketName, objectName string) (*s3tohdfs.Object, error)

func (*Backend) ListBucket

func (db *Backend) ListBucket(name string, prefix *s3tohdfs.Prefix, page s3tohdfs.ListBucketPage) (*s3tohdfs.ObjectList, error)

func (*Backend) ListBuckets

func (db *Backend) ListBuckets() ([]s3tohdfs.BucketInfo, error)

func (*Backend) PutObject

func (db *Backend) PutObject(
	bucketName, objectName string,
	meta map[string]string,
	input io.Reader, size int64,
) (result s3tohdfs.PutObjectResult, err error)

type Option

type Option func(b *Backend)

func WithTimeSource

func WithTimeSource(timeSource s3tohdfs.TimeSource) Option

Jump to

Keyboard shortcuts

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