common

package
Version: v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTEXT_KEY_SIZE           = "size"
	CONTEXT_KEY_MD5            = "md5"
	CONTEXT_KEY_SSE_TYPE       = "sse_type"
	CONTEXT_KEY_ENCRYPTION_KEY = "encrypt_key"
	CONTEXT_KEY_CIPHER_KEY     = "cipher_key"
	CONTEXT_KEY_STORAGE_CLASS  = "storage_class"
)

Variables

This section is empty.

Functions

func GetMd5FromCtx

func GetMd5FromCtx(ctx context.Context) (md5val string)

func GetStorClassFromCtx added in v1.2.0

func GetStorClassFromCtx(ctx context.Context) (storClass string)

func TrimQuot

func TrimQuot(in string) string

Types

type PutResult

type PutResult struct {
	// bytes written to backend.
	Written int64
	// object id
	ObjectId string
	// object content hash sum string.
	Etag string
	// meta info for this storage driver.
	// only storage driver needs to care about this.
	// meta will be save by grpc server and transfer it to storage driver.
	Meta string
	// update time for this object.
	//UpdateTime time.Time
	UpdateTime int64
}

Jump to

Keyboard shortcuts

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