buntdb

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuntDBBackend

func NewBuntDBBackend(params map[string]interface{}, ctx context.Context) (common.Backend, error)

Types

type BuntDBBackend

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

func (*BuntDBBackend) Delete

func (b *BuntDBBackend) Delete(name string, ctx context.Context) error

func (*BuntDBBackend) Exists

func (b *BuntDBBackend) Exists(name string, ctx context.Context) error

func (*BuntDBBackend) Get

func (b *BuntDBBackend) Get(name string, ctx context.Context) (*common.File, error)

func (*BuntDBBackend) ListGlob

func (b *BuntDBBackend) ListGlob(ctx context.Context, prefix string) ([]*common.File, error)

func (*BuntDBBackend) Name

func (b *BuntDBBackend) Name() string

func (*BuntDBBackend) RunGC added in v0.1.2

func (b *BuntDBBackend) RunGC(ctx context.Context) ([]common.File, error)

RunGC will try to find expired files, usually Bunt will take care of this but this should cleanup any orphaned entries. TODO: Remove once automatic expiry is properly tested

func (*BuntDBBackend) Upload

func (b *BuntDBBackend) Upload(name string, file *common.File, ctx context.Context) error

Jump to

Keyboard shortcuts

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