utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ActionExpiration               = 1
	ActionIncloudTransition        = 2
	ActionCrosscloudTransition     = 3
	AbortIncompleteMultipartUpload = 4
)
View Source
const (
	KObjKey       = "objkey"
	KLastModified = "lastmodified"
	KStorageTier  = "tier"
)
View Source
const (
	RuleStatusEnabled  = "Enabled"
	RuleStatusDisabled = "Disabled"
)
View Source
const (
	ActionNameExpiration = "expiration"
)

Variables

This section is empty.

Functions

func GetTenantId added in v0.6.3

func GetTenantId(ctx context.Context) (string, error)

func GetUserId added in v0.6.3

func GetUserId(ctx context.Context) (string, error)

Types

type Database

type Database struct {
	Credential string `conf:"credential,username:password@tcp(ip:port)/dbname"`
	Driver     string `conf:"driver,mongodb"`
	Endpoint   string `conf:"endpoint,localhost:27017"`
}

type InternalLifecycleFilter added in v0.5.3

type InternalLifecycleFilter struct {
	Prefix string
	Tags   []string
}

type InternalLifecycleRule added in v0.5.3

type InternalLifecycleRule struct {
	Id           string
	Bucket       string
	Filter       InternalLifecycleFilter
	Days         int32
	Tier         int32
	ActionType   int // 0-Expiration, 1-IncloudTransition, 2-CrossCloudTransition, 3-AbortMultipartUpload
	DeleteMarker string
	Backend      string
}

Jump to

Keyboard shortcuts

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