s3

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: 28 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DuplicateRuleIDError               = "error: PUT bucket lifecycle failed because the ruleId $1 is duplicate."
	NoRequestBodyLifecycle             = "error: No request body specified for creating lifecycle configuration"
	MoreThanOneExpirationAction        = "error: More than one expiration action is not permitted in one rule"
	DaysInStorageClassBeforeExpiration = "error: minimum days for an object in the current storage class should be less than Expiration Days"
	DaysInStorageClassBeforeTransition = "error: minimum days for an object in the current storage class is less before transition action"
	NoRuleIDForLifecycleDelete         = "error: No rule ID specified to delete from lifecycle configuration"
	WrongRuleIDForLifecycleDelete      = "error: The rule ID which is specified for delete does not exist"
	InvalidTier                        = "error: Invalid tier"
)

Variables

View Source
var ClassAndTier map[string]int32

Map from storage calss to tier

Functions

func HasHeader

func HasHeader(request *restful.Request, name string) bool

func IsQuery

func IsQuery(request *restful.Request, name string) bool

func ReadBody

func ReadBody(r *restful.Request) []byte

func RegisterRouter

func RegisterRouter(ws *restful.WebService)

RegisterRouter - route request to appropriate method

Types

type APIService

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

func NewAPIService

func NewAPIService(c client.Client) *APIService

func (*APIService) AbortMultipartUpload

func (s *APIService) AbortMultipartUpload(request *restful.Request, response *restful.Response)

func (*APIService) BucketDelete

func (s *APIService) BucketDelete(request *restful.Request, response *restful.Response)

func (*APIService) BucketGet

func (s *APIService) BucketGet(request *restful.Request, response *restful.Response)

func (*APIService) BucketLifecycleDelete added in v0.5.3

func (s *APIService) BucketLifecycleDelete(request *restful.Request, response *restful.Response)

func (*APIService) BucketLifecycleGet added in v0.5.3

func (s *APIService) BucketLifecycleGet(request *restful.Request, response *restful.Response)

Function for GET Bucket Lifecycle API

func (*APIService) BucketLifecyclePut added in v0.5.3

func (s *APIService) BucketLifecyclePut(request *restful.Request, response *restful.Response)

func (*APIService) BucketPut

func (s *APIService) BucketPut(request *restful.Request, response *restful.Response)

func (*APIService) CompleteMultipartUpload

func (s *APIService) CompleteMultipartUpload(request *restful.Request, response *restful.Response)

func (*APIService) GetStorageClasses added in v0.5.2

func (s *APIService) GetStorageClasses(request *restful.Request, response *restful.Response)

func (*APIService) ListBuckets

func (s *APIService) ListBuckets(request *restful.Request, response *restful.Response)

func (*APIService) MultiPartUploadInit

func (s *APIService) MultiPartUploadInit(request *restful.Request, response *restful.Response)

ObjectPut -

func (*APIService) ObjectDelete

func (s *APIService) ObjectDelete(request *restful.Request, response *restful.Response)

func (*APIService) ObjectGet

func (s *APIService) ObjectGet(request *restful.Request, response *restful.Response)

ObjectGet -

func (*APIService) ObjectPut

func (s *APIService) ObjectPut(request *restful.Request, response *restful.Response)

ObjectPut -

func (*APIService) RouteBucketDelete added in v0.5.3

func (s *APIService) RouteBucketDelete(request *restful.Request, response *restful.Response)

func (*APIService) RouteBucketGet added in v0.5.3

func (s *APIService) RouteBucketGet(request *restful.Request, response *restful.Response)

func (*APIService) RouteBucketPut

func (s *APIService) RouteBucketPut(request *restful.Request, response *restful.Response)

func (*APIService) RouteObjectDelete added in v0.3.4

func (s *APIService) RouteObjectDelete(request *restful.Request, response *restful.Response)

func (*APIService) RouteObjectPut

func (s *APIService) RouteObjectPut(request *restful.Request, response *restful.Response)

func (*APIService) UploadPart

func (s *APIService) UploadPart(request *restful.Request, response *restful.Response)

Directories

Path Synopsis
aws
gcp
hws
ibm

Jump to

Keyboard shortcuts

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