utils

package
v0.6.1 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: 0 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

This section is empty.

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