Documentation
¶
Index ¶
- func InitUserAgent() string
- func NosUrlEncode(origin string) string
- func ParseXmlBody(body io.Reader, value interface{}) error
- func PopulateAllHeader(response *http.Response) *model.ObjectMetadata
- func PopulateResponseHeader(response *http.Response) (requestid, etag string)
- func ProcessClientError(statCode int, bucket, object string, msg string) error
- func ProcessServerError(response *http.Response, bucketName, objectName string) error
- func RemoveQuotes(orig string) string
- func VerifyBucketName(bucketName string) bool
- func VerifyObjectName(object string) bool
- func VerifyParams(bucket string) error
- func VerifyParamsWithLength(bucket string, object string, length int64) error
- func VerifyParamsWithObject(bucket string, object string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUserAgent ¶
func InitUserAgent() string
func NosUrlEncode ¶
func ParseXmlBody ¶
func PopulateAllHeader ¶
func PopulateAllHeader(response *http.Response) *model.ObjectMetadata
func PopulateResponseHeader ¶
func ProcessClientError ¶
func ProcessServerError ¶
func RemoveQuotes ¶
func VerifyBucketName ¶
VerifyObjectName check if the BucketName is legal
func VerifyObjectName ¶
VerifyObjectName check if the object name is legal
func VerifyParams ¶
func VerifyParamsWithLength ¶
func VerifyParamsWithObject ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.