leveldb

package
v0.0.0-...-45e1a9a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT = "_main"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDB3Store

type LevelDB3Store struct {
	ReadOnly bool
	// contains filtered or unexported fields
}

func (*LevelDB3Store) BeginTransaction

func (store *LevelDB3Store) BeginTransaction(ctx context.Context) (context.Context, error)

func (*LevelDB3Store) CanDropWholeBucket

func (store *LevelDB3Store) CanDropWholeBucket() bool

func (*LevelDB3Store) CommitTransaction

func (store *LevelDB3Store) CommitTransaction(ctx context.Context) error

func (*LevelDB3Store) DeleteEntry

func (store *LevelDB3Store) DeleteEntry(ctx context.Context, fullpath weed_util.FullPath) (err error)

func (*LevelDB3Store) DeleteFolderChildren

func (store *LevelDB3Store) DeleteFolderChildren(ctx context.Context, fullpath weed_util.FullPath) (err error)

func (*LevelDB3Store) FindEntry

func (store *LevelDB3Store) FindEntry(ctx context.Context, fullpath weed_util.FullPath) (entry *filer.Entry, err error)

func (*LevelDB3Store) GetName

func (store *LevelDB3Store) GetName() string

func (*LevelDB3Store) Initialize

func (store *LevelDB3Store) Initialize(configuration weed_util.Configuration, prefix string) (err error)

func (*LevelDB3Store) InsertEntry

func (store *LevelDB3Store) InsertEntry(ctx context.Context, entry *filer.Entry) (err error)

func (*LevelDB3Store) KvDelete

func (store *LevelDB3Store) KvDelete(ctx context.Context, key []byte) (err error)

func (*LevelDB3Store) KvGet

func (store *LevelDB3Store) KvGet(ctx context.Context, key []byte) (value []byte, err error)

func (*LevelDB3Store) KvPut

func (store *LevelDB3Store) KvPut(ctx context.Context, key []byte, value []byte) (err error)

func (*LevelDB3Store) ListDirectoryEntries

func (store *LevelDB3Store) ListDirectoryEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*LevelDB3Store) ListDirectoryPrefixedEntries

func (store *LevelDB3Store) ListDirectoryPrefixedEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*LevelDB3Store) OnBucketCreation

func (store *LevelDB3Store) OnBucketCreation(bucket string)

func (*LevelDB3Store) OnBucketDeletion

func (store *LevelDB3Store) OnBucketDeletion(bucket string)

func (*LevelDB3Store) RollbackTransaction

func (store *LevelDB3Store) RollbackTransaction(ctx context.Context) error

func (*LevelDB3Store) Shutdown

func (store *LevelDB3Store) Shutdown()

func (*LevelDB3Store) UpdateEntry

func (store *LevelDB3Store) UpdateEntry(ctx context.Context, entry *filer.Entry) (err error)

Jump to

Keyboard shortcuts

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