db

package
Version: v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

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
	UpdateObjMeta(objKey *string, bucketName *string, setting map[string]interface{}) S3Error
}
var DbAdapter DBAdapter

DbAdapter is a global variable that controls database module.

Source Files

Directories

Path Synopsis
drivers

Jump to

Keyboard shortcuts

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