mongodb

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Directory string `bson:"directory"`
	Name      string `bson:"name"`
	Meta      []byte `bson:"meta"`
}

type MongodbStore

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

func (*MongodbStore) BeginTransaction

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

func (*MongodbStore) CommitTransaction

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

func (*MongodbStore) DeleteEntry

func (store *MongodbStore) DeleteEntry(ctx context.Context, fullpath util.FullPath) error

func (*MongodbStore) DeleteFolderChildren

func (store *MongodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error

func (*MongodbStore) FindEntry

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

func (*MongodbStore) GetName

func (store *MongodbStore) GetName() string

func (*MongodbStore) Initialize

func (store *MongodbStore) Initialize(configuration util.Configuration, prefix string) (err error)

func (*MongodbStore) InsertEntry

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

func (*MongodbStore) KvDelete

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

func (*MongodbStore) KvGet

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

func (*MongodbStore) KvPut

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

func (*MongodbStore) ListDirectoryEntries

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

func (*MongodbStore) ListDirectoryPrefixedEntries

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

func (*MongodbStore) RollbackTransaction

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

func (*MongodbStore) Shutdown

func (store *MongodbStore) Shutdown()

func (*MongodbStore) UpdateEntry

func (store *MongodbStore) 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