db

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(db *Database)

func Init

func Init(db *Database)

Init function can perform some initialization work of different databases.

Types

type DBAdapter

type DBAdapter interface {
	CreateBucket(bucket *pb.Bucket) S3Error
	DeleteBucket(name string) S3Error
	UpdateBucket(bucket *pb.Bucket) S3Error
	GetBucketByName(name string, out *pb.Bucket) S3Error
	ListBuckets(in *pb.BaseRequest, out *[]pb.Bucket) S3Error
	CreateObject(in *pb.Object) S3Error
	UpdateObject(in *pb.Object) S3Error
	DeleteObject(in *pb.DeleteObjectInput) S3Error
	GetObject(in *pb.GetObjectInput, out *pb.Object) S3Error
	ListObjects(in *pb.ListObjectsRequest, out *[]pb.Object) S3Error
	CountObjects(in *pb.ListObjectsRequest, out *ObjsCountInfo) S3Error
	DeleteBucketLifecycle(in *pb.DeleteLifecycleInput) S3Error
	UpdateObjMeta(objKey *string, bucketName *string, lastmod int64, setting map[string]interface{}) S3Error
	AddMultipartUpload(record *pb.MultipartUploadRecord) S3Error
	DeleteMultipartUpload(record *pb.MultipartUploadRecord) S3Error
	ListUploadRecords(in *pb.ListMultipartUploadRequest, out *[]pb.MultipartUploadRecord) S3Error
}
var DbAdapter DBAdapter

DbAdapter is a global variable that controls database module.

Directories

Path Synopsis
drivers

Jump to

Keyboard shortcuts

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