service

package
v0.6.2-Daito-RC1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChunkSize int = 2048
View Source
var Ext2IntTierMap map[string]*String2Int

map from cloud vendor name to a map, which is used to map from storage class name to internal tier.

View Source
var Int2ExtTierMap map[string]*Int2String

map from cloud vendor name to a map, which is used to map from internal tier to it's storage class name.

View Source
var SupportedClasses []pb.StorageClass
View Source
var TransitionMap map[int32][]int32

map from a specific tier to an array of tiers, that means transition can happens from the specific tier to those tiers in the array.

Functions

func CheckRights

func CheckRights(ctx context.Context, tenantId4Source string) (bool, string, error)

func GetErrCode

func GetErrCode(err error) (errCode int32)

func GetNameFromTier

func GetNameFromTier(tier int32, backendType string) (string, error)

func NewS3Service

func NewS3Service() pb.S3Handler

Types

type Int2String

type Int2String map[int32]string

type StreamReader

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

func (*StreamReader) Read

func (dr *StreamReader) Read(p []byte) (n int, err error)

type String2Int

type String2Int map[string]int32

Jump to

Keyboard shortcuts

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