rocksdbcloud

package
v0.0.0-...-7b990d8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEnv

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

func NewAwsCloudEnv

func NewAwsCloudEnv(src_bucket_name string,
	src_object_prefix string,
	src_bucket_region string,
	dest_bucket_name string,
	dest_object_prefix string,
	dest_bucket_region string,
	opts *CloudEnvOptions) (*CloudEnv, error)

func NewNativeCloudEnv

func NewNativeCloudEnv(c *C.rocksdb_cloudenv_t) *CloudEnv

func (*CloudEnv) Destroy

func (env *CloudEnv) Destroy()

Destroy deallocates the CloudEnvOptions object.

type CloudEnvOptions

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

func NewCloudEnvOptions

func NewCloudEnvOptions() *CloudEnvOptions

NewCloudEnvOptions creates a default cloud environment Options

func (*CloudEnvOptions) Destroy

func (opts *CloudEnvOptions) Destroy()

Destroy deallocates the CloudEnvOptions object.

func (*CloudEnvOptions) SetCreateIfMissing

func (opts *CloudEnvOptions) SetCreateIfMissing(value bool)

func (*CloudEnvOptions) SetCredentials

func (opts *CloudEnvOptions) SetCredentials(access_key_id string, secret_access_key string)

func (*CloudEnvOptions) SetDstBucket

func (opts *CloudEnvOptions) SetDstBucket(bucket string, prefix string)

func (*CloudEnvOptions) SetEndPoint

func (opts *CloudEnvOptions) SetEndPoint(endpoint string)

func (*CloudEnvOptions) SetEnv

func (opts *CloudEnvOptions) SetEnv(env *Env)

func (*CloudEnvOptions) SetRequestTimeOut

func (opts *CloudEnvOptions) SetRequestTimeOut(timeout uint64)

func (*CloudEnvOptions) SetSrcBucket

func (opts *CloudEnvOptions) SetSrcBucket(bucket string, prefix string)

type DBCloud

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

DBCloud is a reusable handle to a RocksDB database on disk, created by Open.

func OpenCloudDb

func OpenCloudDb(opts *CloudEnvOptions, name string, cachePath string, cacheSize uint64) (*DBCloud, error)

OpenDb opens a database with the specified options.

func (*DBCloud) Close

func (db *DBCloud) Close()

Close closes the database.

type Env

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

Env is a system call environment used by a database.

Jump to

Keyboard shortcuts

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