Documentation ¶
Index ¶
- Constants
- Variables
- func HasHeader(request *restful.Request, name string) bool
- func IsQuery(request *restful.Request, name string) bool
- func ReadBody(r *restful.Request) []byte
- func RegisterRouter(ws *restful.WebService)
- type APIService
- func (s *APIService) AbortMultipartUpload(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketDelete(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketGet(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketLifecycleDelete(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketLifecycleGet(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketLifecyclePut(request *restful.Request, response *restful.Response)
- func (s *APIService) BucketPut(request *restful.Request, response *restful.Response)
- func (s *APIService) CompleteMultipartUpload(request *restful.Request, response *restful.Response)
- func (s *APIService) GetStorageClasses(request *restful.Request, response *restful.Response)
- func (s *APIService) ListBuckets(request *restful.Request, response *restful.Response)
- func (s *APIService) MultiPartUploadInit(request *restful.Request, response *restful.Response)
- func (s *APIService) ObjectDelete(request *restful.Request, response *restful.Response)
- func (s *APIService) ObjectGet(request *restful.Request, response *restful.Response)
- func (s *APIService) ObjectPut(request *restful.Request, response *restful.Response)
- func (s *APIService) RouteBucketDelete(request *restful.Request, response *restful.Response)
- func (s *APIService) RouteBucketGet(request *restful.Request, response *restful.Response)
- func (s *APIService) RouteBucketPut(request *restful.Request, response *restful.Response)
- func (s *APIService) RouteObjectDelete(request *restful.Request, response *restful.Response)
- func (s *APIService) RouteObjectPut(request *restful.Request, response *restful.Response)
- func (s *APIService) UploadPart(request *restful.Request, response *restful.Response)
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 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)
Source Files ¶
- abortmultipartupload.go
- bucketdelete.go
- bucketget.go
- bucketlifecycledelete.go
- bucketlifecycleget.go
- bucketlifecycleput.go
- bucketput.go
- completemultipartupload.go
- lifecycleerrorcodes.go
- listbuckets.go
- liststorageclasses.go
- multipartuploadinit.go
- objectdelete.go
- objectget.go
- objectput.go
- routbucketdelete.go
- routbucketget.go
- routbucketput.go
- routeobjectdelete.go
- routeobjectput.go
- router.go
- service.go
- uploadpart.go
Click to show internal directories.
Click to hide internal directories.