utils

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitUserAgent

func InitUserAgent() string

func NosUrlEncode

func NosUrlEncode(origin string) string

func ParseXmlBody

func ParseXmlBody(body io.Reader, value interface{}) error

func PopulateAllHeader

func PopulateAllHeader(response *http.Response) *model.ObjectMetadata

func PopulateResponseHeader

func PopulateResponseHeader(response *http.Response) (requestid, etag string)

func ProcessClientError

func ProcessClientError(statCode int, bucket, object string, msg string) error

func ProcessServerError

func ProcessServerError(response *http.Response, bucketName, objectName string) error

func RemoveQuotes

func RemoveQuotes(orig string) string

func VerifyBucketName

func VerifyBucketName(bucketName string) bool

VerifyObjectName check if the BucketName is legal

func VerifyObjectName

func VerifyObjectName(object string) bool

VerifyObjectName check if the object name is legal

func VerifyParams

func VerifyParams(bucket string) error

func VerifyParamsWithLength

func VerifyParamsWithLength(bucket string, object string, length int64) error

func VerifyParamsWithObject

func VerifyParamsWithObject(bucket string, object string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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