Documentation ¶
Index ¶
- Constants
- func Base64Decode(value string) ([]byte, error)
- func Base64Encode(value []byte) string
- func Base64Md5(value []byte) string
- func CloseLog()
- func ConverntObsRestoreToXml(restoreObjectInput RestoreObjectInput) string
- func ConvertAclToXml(input AccessControlPolicy, returnMd5 bool, isObs bool) (data string, md5 string)
- func ConvertCompleteMultipartUploadInputToXml(input CompleteMultipartUploadInput, returnMd5 bool) (data string, md5 string)
- func ConvertLifecyleConfigurationToXml(input BucketLifecyleConfiguration, returnMd5 bool, isObs bool) (data string, md5 string)
- func ConvertLoggingStatusToXml(input BucketLoggingStatus, returnMd5 bool, isObs bool) (data string, md5 string)
- func ConvertNotificationToXml(input BucketNotification, returnMd5 bool, isObs bool) (data string, md5 string)
- func ConvertRequestToIoReader(req interface{}) (io.Reader, error)
- func ConvertRequestToIoReaderV2(req interface{}) (io.Reader, string, error)
- func ConvertWebsiteConfigurationToXml(input BucketWebsiteConfiguration, returnMd5 bool) (data string, md5 string)
- func DoLog(level Level, format string, v ...interface{})
- func DummyQueryEscape(s string) string
- func FormatUtcNow(format string) string
- func FormatUtcToRfc1123(t time.Time) string
- func GetAuthorization(ak, sk, method, bucketName, objectKey, queryUrl string, ...) (ret map[string]string)
- func GetCurrentTimestamp() int64
- func GetV2Authorization(ak, sk, method, bucketName, objectKey, queryUrl string, ...) (ret map[string]string)
- func Hex(value []byte) string
- func HexMd5(value []byte) string
- func HexSha256(value []byte) string
- func HmacSha1(key, value []byte) []byte
- func HmacSha256(key, value []byte) []byte
- func InitLog(logFullPath string, maxLogSize int64, backups int, level Level, ...) error
- func InitLogWithCacheCnt(logFullPath string, maxLogSize int64, backups int, level Level, ...) error
- func Int64ToString(value int64) string
- func IntToString(value int) string
- func IsIP(value string) bool
- func Md5(value []byte) []byte
- func ParseCompleteMultipartUploadOutput(output *CompleteMultipartUploadOutput)
- func ParseCopyObjectOutput(output *CopyObjectOutput)
- func ParseCopyPartOutput(output *CopyPartOutput)
- func ParseDeleteObjectOutput(output *DeleteObjectOutput)
- func ParseGetBucketMetadataOutput(output *GetBucketMetadataOutput)
- func ParseGetObjectMetadataOutput(output *GetObjectMetadataOutput)
- func ParseGetObjectOutput(output *GetObjectOutput)
- func ParseInitiateMultipartUploadOutput(output *InitiateMultipartUploadOutput)
- func ParsePutObjectOutput(output *PutObjectOutput)
- func ParseResponseToBaseModel(resp *http.Response, baseModel IBaseModel, xmlResult bool, _ bool) (err error)
- func ParseResponseToObsError(resp *http.Response, isObs bool) error
- func ParseSetObjectMetadataOutput(output *SetObjectMetadataOutput)
- func ParseUploadPartOutput(output *UploadPartOutput)
- func ParseXml(value []byte, result interface{}) error
- func Sha256Hash(value []byte) []byte
- func StringContains(src string, subStr string, subTranscoding string) string
- func StringToInt(value string, def int) int
- func StringToInt64(value string, def int64) int64
- func SyncLog()
- func TransToXml(value interface{}) ([]byte, error)
- func UrlDecode(value string) (string, error)
- func UrlDecodeWithoutError(value string) string
- func UrlEncode(value string, chineseOnly bool) string
- func V4Auth(ak, sk, region, method, canonicalizedUrl, queryUrl string, ...) map[string]string
- func XmlTranscoding(src string) string
- type AbortMultipartUploadInput
- type AccessControlPolicy
- type AclType
- type BaseModel
- type Bucket
- type BucketCors
- type BucketLifecyleConfiguration
- type BucketLocation
- type BucketLoggingStatus
- type BucketNotification
- type BucketQuota
- type BucketStoragePolicy
- type BucketTagging
- type BucketVersioningConfiguration
- type BucketWebsiteConfiguration
- type CompleteMultipartUploadInput
- type CompleteMultipartUploadOutput
- type Condition
- type Configurer
- func WithConnectTimeout(connectTimeout int) Configurer
- func WithCustomDomainName(cname bool) Configurer
- func WithHeaderTimeout(headerTimeout int) Configurer
- func WithHttpTransport(transport *http.Transport) Configurer
- func WithIdleConnTimeout(idleConnTimeout int) Configurer
- func WithMaxConnections(maxConnsPerHost int) Configurer
- func WithMaxRedirectCount(maxRedirectCount int) Configurer
- func WithMaxRetryCount(maxRetryCount int) Configurer
- func WithPathStyle(pathStyle bool) Configurer
- func WithProxyUrl(proxyUrl string) Configurer
- func WithRegion(region string) Configurer
- func WithRequestContext(ctx context.Context) Configurer
- func WithSecurityToken(securityToken string) Configurer
- func WithSignature(signature SignatureType) Configurer
- func WithSocketTimeout(socketTimeout int) Configurer
- func WithSslVerify(sslVerify bool) Configurer
- func WithSslVerifyAndPemCerts(sslVerify bool, pemCerts []byte) Configurer
- type Content
- type CopyObjectInput
- type CopyObjectOutput
- type CopyPartInput
- type CopyPartOutput
- type CorsRule
- type CreateBrowserBasedSignatureInput
- type CreateBrowserBasedSignatureOutput
- type CreateBucketInput
- type CreateSignedUrlInput
- type CreateSignedUrlOutput
- type DefaultSerializable
- type DeleteMarker
- type DeleteObjectInput
- type DeleteObjectOutput
- type DeleteObjectsInput
- type DeleteObjectsOutput
- type Deleted
- type Error
- type ErrorDocument
- type EventType
- type Expiration
- type FilterRule
- type GetBucketAclOutput
- type GetBucketCorsOutput
- type GetBucketLifecycleConfigurationOutput
- type GetBucketLocationOutput
- type GetBucketLoggingConfigurationOutput
- type GetBucketMetadataInput
- type GetBucketMetadataOutput
- type GetBucketNotificationOutput
- type GetBucketPolicyOutput
- type GetBucketQuotaOutput
- type GetBucketStorageInfoOutput
- type GetBucketStoragePolicyOutput
- type GetBucketTaggingOutput
- type GetBucketVersioningOutput
- type GetBucketWebsiteConfigurationOutput
- type GetObjectAclInput
- type GetObjectAclOutput
- type GetObjectInput
- type GetObjectMetadataInput
- type GetObjectMetadataOutput
- type GetObjectOutput
- type Grant
- type Grantee
- type GranteeType
- type GroupUriType
- type HttpMethodType
- type IBaseModel
- type IReadCloser
- type ISerializable
- type ISseHeader
- type IndexDocument
- type InitiateMultipartUploadInput
- type InitiateMultipartUploadOutput
- type Initiator
- type Level
- type LifecycleRule
- type ListBucketsInput
- type ListBucketsOutput
- type ListMultipartUploadsInput
- type ListMultipartUploadsOutput
- type ListObjectsInput
- type ListObjectsOutput
- type ListObjsInput
- type ListPartsInput
- type ListPartsOutput
- type ListVersionsInput
- type ListVersionsOutput
- type MetadataDirectiveType
- type NoncurrentVersionExpiration
- type NoncurrentVersionTransition
- type ObjectOperationInput
- type ObjectToDelete
- type ObsClient
- func (obsClient ObsClient) AbortMultipartUpload(input *AbortMultipartUploadInput) (output *BaseModel, err error)
- func (obsClient ObsClient) AbortMultipartUploadWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) Close()
- func (obsClient ObsClient) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (output *CompleteMultipartUploadOutput, err error)
- func (obsClient ObsClient) CompleteMultipartUploadWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *CompleteMultipartUploadOutput, err error)
- func (obsClient ObsClient) CopyObject(input *CopyObjectInput) (output *CopyObjectOutput, err error)
- func (obsClient ObsClient) CopyObjectWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *CopyObjectOutput, err error)
- func (obsClient ObsClient) CopyPart(input *CopyPartInput) (output *CopyPartOutput, err error)
- func (obsClient ObsClient) CopyPartWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *CopyPartOutput, err error)
- func (obsClient ObsClient) CreateBrowserBasedSignature(input *CreateBrowserBasedSignatureInput) (output *CreateBrowserBasedSignatureOutput, err error)
- func (obsClient ObsClient) CreateBucket(input *CreateBucketInput) (output *BaseModel, err error)
- func (obsClient ObsClient) CreateBucketWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) CreateSignedUrl(input *CreateSignedUrlInput) (output *CreateSignedUrlOutput, err error)
- func (obsClient ObsClient) DeleteBucket(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketCors(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketCorsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketLifecycleConfiguration(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketLifecycleConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketPolicy(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketPolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketTagging(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketWebsiteConfiguration(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketWebsiteConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteObject(input *DeleteObjectInput) (output *DeleteObjectOutput, err error)
- func (obsClient ObsClient) DeleteObjectWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *DeleteObjectOutput, err error)
- func (obsClient ObsClient) DeleteObjects(input *DeleteObjectsInput) (output *DeleteObjectsOutput, err error)
- func (obsClient ObsClient) DeleteObjectsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *DeleteObjectsOutput, err error)
- func (obsClient ObsClient) GetBucketAcl(bucketName string) (output *GetBucketAclOutput, err error)
- func (obsClient ObsClient) GetBucketAclWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketAclOutput, err error)
- func (obsClient ObsClient) GetBucketCors(bucketName string) (output *GetBucketCorsOutput, err error)
- func (obsClient ObsClient) GetBucketCorsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketCorsOutput, err error)
- func (obsClient ObsClient) GetBucketLifecycleConfiguration(bucketName string) (output *GetBucketLifecycleConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketLifecycleConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketLifecycleConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketLocation(bucketName string) (output *GetBucketLocationOutput, err error)
- func (obsClient ObsClient) GetBucketLocationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketLocationOutput, err error)
- func (obsClient ObsClient) GetBucketLoggingConfiguration(bucketName string) (output *GetBucketLoggingConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketLoggingConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketLoggingConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketMetadata(input *GetBucketMetadataInput) (output *GetBucketMetadataOutput, err error)
- func (obsClient ObsClient) GetBucketMetadataWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketMetadataOutput, err error)
- func (obsClient ObsClient) GetBucketNotification(bucketName string) (output *GetBucketNotificationOutput, err error)
- func (obsClient ObsClient) GetBucketNotificationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketNotificationOutput, err error)
- func (obsClient ObsClient) GetBucketPolicy(bucketName string) (output *GetBucketPolicyOutput, err error)
- func (obsClient ObsClient) GetBucketPolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketPolicyOutput, err error)
- func (obsClient ObsClient) GetBucketQuota(bucketName string) (output *GetBucketQuotaOutput, err error)
- func (obsClient ObsClient) GetBucketQuotaWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketQuotaOutput, err error)
- func (obsClient ObsClient) GetBucketStorageInfo(bucketName string) (output *GetBucketStorageInfoOutput, err error)
- func (obsClient ObsClient) GetBucketStorageInfoWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketStorageInfoOutput, err error)
- func (obsClient ObsClient) GetBucketStoragePolicy(bucketName string) (output *GetBucketStoragePolicyOutput, err error)
- func (obsClient ObsClient) GetBucketStoragePolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketStoragePolicyOutput, err error)
- func (obsClient ObsClient) GetBucketTagging(bucketName string) (output *GetBucketTaggingOutput, err error)
- func (obsClient ObsClient) GetBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketTaggingOutput, err error)
- func (obsClient ObsClient) GetBucketVersioning(bucketName string) (output *GetBucketVersioningOutput, err error)
- func (obsClient ObsClient) GetBucketVersioningWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketVersioningOutput, err error)
- func (obsClient ObsClient) GetBucketWebsiteConfiguration(bucketName string) (output *GetBucketWebsiteConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketWebsiteConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketWebsiteConfigurationOutput, err error)
- func (obsClient ObsClient) GetObject(input *GetObjectInput) (output *GetObjectOutput, err error)
- func (obsClient ObsClient) GetObjectAcl(input *GetObjectAclInput) (output *GetObjectAclOutput, err error)
- func (obsClient ObsClient) GetObjectAclWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetObjectAclOutput, err error)
- func (obsClient ObsClient) GetObjectMetadata(input *GetObjectMetadataInput) (output *GetObjectMetadataOutput, err error)
- func (obsClient ObsClient) GetObjectMetadataWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetObjectMetadataOutput, err error)
- func (obsClient ObsClient) GetObjectWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetObjectOutput, err error)
- func (obsClient ObsClient) HeadBucket(bucketName string) (output *BaseModel, err error)
- func (obsClient ObsClient) HeadBucketWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (output *InitiateMultipartUploadOutput, err error)
- func (obsClient ObsClient) InitiateMultipartUploadWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *InitiateMultipartUploadOutput, err error)
- func (obsClient ObsClient) ListBuckets(input *ListBucketsInput) (output *ListBucketsOutput, err error)
- func (obsClient ObsClient) ListBucketsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *ListBucketsOutput, err error)
- func (obsClient ObsClient) ListMultipartUploads(input *ListMultipartUploadsInput) (output *ListMultipartUploadsOutput, err error)
- func (obsClient ObsClient) ListMultipartUploadsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *ListMultipartUploadsOutput, err error)
- func (obsClient ObsClient) ListObjects(input *ListObjectsInput) (output *ListObjectsOutput, err error)
- func (obsClient ObsClient) ListObjectsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *ListObjectsOutput, err error)
- func (obsClient ObsClient) ListParts(input *ListPartsInput) (output *ListPartsOutput, err error)
- func (obsClient ObsClient) ListPartsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *ListPartsOutput, err error)
- func (obsClient ObsClient) ListVersions(input *ListVersionsInput) (output *ListVersionsOutput, err error)
- func (obsClient ObsClient) ListVersionsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *ListVersionsOutput, err error)
- func (obsClient ObsClient) PutFile(input *PutFileInput) (output *PutObjectOutput, err error)
- func (obsClient ObsClient) PutFileWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, sourceFile string) (output *PutObjectOutput, err error)
- func (obsClient ObsClient) PutObject(input *PutObjectInput) (output *PutObjectOutput, err error)
- func (obsClient ObsClient) PutObjectWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *PutObjectOutput, err error)
- func (obsClient ObsClient) Refresh(ak, sk, securityToken string)
- func (obsClient ObsClient) RestoreObject(input *RestoreObjectInput) (output *BaseModel, err error)
- func (obsClient ObsClient) RestoreObjectWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketAcl(input *SetBucketAclInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketAclWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketCors(input *SetBucketCorsInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketCorsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketLifecycleConfiguration(input *SetBucketLifecycleConfigurationInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketLifecycleConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketLoggingConfiguration(input *SetBucketLoggingConfigurationInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketLoggingConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketNotification(input *SetBucketNotificationInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketNotificationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketPolicy(input *SetBucketPolicyInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketPolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketQuota(input *SetBucketQuotaInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketQuotaWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketStoragePolicy(input *SetBucketStoragePolicyInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketStoragePolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketTagging(input *SetBucketTaggingInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketVersioning(input *SetBucketVersioningInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketVersioningWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketWebsiteConfiguration(input *SetBucketWebsiteConfigurationInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetBucketWebsiteConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetObjectAcl(input *SetObjectAclInput) (output *BaseModel, err error)
- func (obsClient ObsClient) SetObjectAclWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *BaseModel, err error)
- func (obsClient ObsClient) SetObjectMetadata(input *SetObjectMetadataInput) (output *SetObjectMetadataOutput, err error)
- func (obsClient ObsClient) UploadPart(_input *UploadPartInput) (output *UploadPartOutput, err error)
- func (obsClient ObsClient) UploadPartWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header, data io.Reader) (output *UploadPartOutput, err error)
- type ObsError
- type Owner
- type Part
- type PermissionType
- type ProtocolType
- type PutFileInput
- type PutObjectBasicInput
- type PutObjectInput
- type PutObjectOutput
- type Redirect
- type RedirectAllRequestsTo
- type RestoreObjectInput
- type RestoreTierType
- type RoutingRule
- type RuleStatusType
- type SetBucketAclInput
- type SetBucketCorsInput
- type SetBucketLifecycleConfigurationInput
- type SetBucketLoggingConfigurationInput
- type SetBucketNotificationInput
- type SetBucketPolicyInput
- type SetBucketQuotaInput
- type SetBucketStoragePolicyInput
- type SetBucketTaggingInput
- type SetBucketVersioningInput
- type SetBucketWebsiteConfigurationInput
- type SetObjectAclInput
- type SetObjectMetadataInput
- type SetObjectMetadataOutput
- type SignatureType
- type SseCHeader
- type SseKmsHeader
- type StorageClassType
- type SubResourceType
- type Tag
- type TopicConfiguration
- type Transition
- type Upload
- type UploadPartInput
- type UploadPartOutput
- type Version
- type VersioningStatusType
Constants ¶
View Source
const ( USER_AGENT = "obs-sdk-go/" + obs_sdk_version HEADER_PREFIX = "x-amz-" HEADER_PREFIX_META = "x-amz-meta-" HEADER_PREFIX_OBS = "x-obs-" HEADER_PREFIX_META_OBS = "x-obs-meta-" HEADER_DATE_AMZ = "x-amz-date" HEADER_DATE_OBS = "x-obs-date" HEADER_STS_TOKEN_AMZ = "x-amz-security-token" HEADER_STS_TOKEN_OBS = "x-obs-security-token" HEADER_ACCESSS_KEY_AMZ = "AWSAccessKeyId" PREFIX_META = "meta-" HEADER_CONTENT_SHA256_AMZ = "x-amz-content-sha256" HEADER_ACL_AMZ = "x-amz-acl" HEADER_ACL_OBS = "x-obs-acl" HEADER_ACL = "acl" HEADER_LOCATION_AMZ = "location" HEADER_BUCKET_LOCATION_OBS = "bucket-location" HEADER_COPY_SOURCE = "copy-source" HEADER_COPY_SOURCE_RANGE = "copy-source-range" HEADER_RANGE = "Range" HEADER_STORAGE_CLASS = "x-default-storage-class" HEADER_STORAGE_CLASS_OBS = "x-obs-storage-class" HEADER_VERSION_OBS = "version" HEADER_GRANT_READ_OBS = "grant-read" HEADER_GRANT_WRITE_OBS = "grant-write" HEADER_GRANT_READ_ACP_OBS = "grant-read-acp" HEADER_GRANT_WRITE_ACP_OBS = "grant-write-acp" HEADER_GRANT_FULL_CONTROL_OBS = "grant-full-control" HEADER_GRANT_READ_DELIVERED_OBS = "grant-read-delivered" HEADER_GRANT_FULL_CONTROL_DELIVERED_OBS = "grant-full-control-delivered" HEADER_REQUEST_ID = "request-id" HEADER_BUCKET_REGION = "bucket-region" HEADER_ACCESS_CONRTOL_ALLOW_ORIGIN = "access-control-allow-origin" HEADER_ACCESS_CONRTOL_ALLOW_HEADERS = "access-control-allow-headers" HEADER_ACCESS_CONRTOL_MAX_AGE = "access-control-max-age" HEADER_ACCESS_CONRTOL_ALLOW_METHODS = "access-control-allow-methods" HEADER_ACCESS_CONRTOL_EXPOSE_HEADERS = "access-control-expose-headers" HEADER_EPID_HEADERS = "epid" HEADER_VERSION_ID = "version-id" HEADER_COPY_SOURCE_VERSION_ID = "copy-source-version-id" HEADER_DELETE_MARKER = "delete-marker" HEADER_WEBSITE_REDIRECT_LOCATION = "website-redirect-location" HEADER_METADATA_DIRECTIVE = "metadata-directive" HEADER_EXPIRATION = "expiration" HEADER_EXPIRES_OBS = "x-obs-expires" HEADER_RESTORE = "restore" HEADER_OBJECT_TYPE = "object-type" HEADER_NEXT_APPEND_POSITION = "next-append-position" HEADER_STORAGE_CLASS2 = "storage-class" HEADER_CONTENT_LENGTH = "content-length" HEADER_CONTENT_TYPE = "content-type" HEADER_CONTENT_LANGUAGE = "content-language" HEADER_EXPIRES = "expires" HEADER_CACHE_CONTROL = "cache-control" HEADER_CONTENT_DISPOSITION = "content-disposition" HEADER_CONTENT_ENCODING = "content-encoding" HEADER_ETAG = "etag" HEADER_LASTMODIFIED = "last-modified" HEADER_COPY_SOURCE_IF_MATCH = "copy-source-if-match" HEADER_COPY_SOURCE_IF_NONE_MATCH = "copy-source-if-none-match" HEADER_COPY_SOURCE_IF_MODIFIED_SINCE = "copy-source-if-modified-since" HEADER_COPY_SOURCE_IF_UNMODIFIED_SINCE = "copy-source-if-unmodified-since" HEADER_IF_MATCH = "If-Match" HEADER_IF_NONE_MATCH = "If-None-Match" HEADER_IF_MODIFIED_SINCE = "If-Modified-Since" HEADER_IF_UNMODIFIED_SINCE = "If-Unmodified-Since" HEADER_SSEC_ENCRYPTION = "server-side-encryption-customer-algorithm" HEADER_SSEC_KEY = "server-side-encryption-customer-key" HEADER_SSEC_KEY_MD5 = "server-side-encryption-customer-key-MD5" HEADER_SSEKMS_ENCRYPTION = "server-side-encryption" HEADER_SSEKMS_KEY = "server-side-encryption-aws-kms-key-id" HEADER_SSEKMS_ENCRYPT_KEY_OBS = "server-side-encryption-kms-key-id" HEADER_SSEC_COPY_SOURCE_ENCRYPTION = "copy-source-server-side-encryption-customer-algorithm" HEADER_SSEC_COPY_SOURCE_KEY = "copy-source-server-side-encryption-customer-key" HEADER_SSEC_COPY_SOURCE_KEY_MD5 = "copy-source-server-side-encryption-customer-key-MD5" HEADER_SSEKMS_KEY_AMZ = "x-amz-server-side-encryption-aws-kms-key-id" HEADER_SSEKMS_KEY_OBS = "x-obs-server-side-encryption-kms-key-id" HEADER_SUCCESS_ACTION_REDIRECT = "success_action_redirect" HEADER_DATE_CAMEL = "Date" HEADER_HOST_CAMEL = "Host" HEADER_HOST = "host" HEADER_AUTH_CAMEL = "Authorization" HEADER_MD5_CAMEL = "Content-MD5" HEADER_LOCATION_CAMEL = "Location" HEADER_CONTENT_LENGTH_CAMEL = "Content-Length" HEADER_CONTENT_TYPE_CAML = "Content-Type" HEADER_USER_AGENT_CAMEL = "User-Agent" HEADER_ORIGIN_CAMEL = "Origin" HEADER_ACCESS_CONTROL_REQUEST_HEADER_CAMEL = "Access-Control-Request-Headers" HEADER_CACHE_CONTROL_CAMEL = "Cache-Control" HEADER_CONTENT_DISPOSITION_CAMEL = "Content-Disposition" HEADER_CONTENT_ENCODING_CAMEL = "Content-Encoding" HEADER_CONTENT_LANGUAGE_CAMEL = "Content-Language" HEADER_EXPIRES_CAMEL = "Expires" PARAM_VERSION_ID = "versionId" PARAM_RESPONSE_CONTENT_TYPE = "response-content-type" PARAM_RESPONSE_CONTENT_LANGUAGE = "response-content-language" PARAM_RESPONSE_EXPIRES = "response-expires" PARAM_RESPONSE_CACHE_CONTROL = "response-cache-control" PARAM_RESPONSE_CONTENT_DISPOSITION = "response-content-disposition" PARAM_RESPONSE_CONTENT_ENCODING = "response-content-encoding" PARAM_IMAGE_PROCESS = "x-image-process" PARAM_ALGORITHM_AMZ_CAMEL = "X-Amz-Algorithm" PARAM_CREDENTIAL_AMZ_CAMEL = "X-Amz-Credential" PARAM_DATE_AMZ_CAMEL = "X-Amz-Date" PARAM_DATE_OBS_CAMEL = "X-Obs-Date" PARAM_EXPIRES_AMZ_CAMEL = "X-Amz-Expires" PARAM_SIGNEDHEADERS_AMZ_CAMEL = "X-Amz-SignedHeaders" PARAM_SIGNATURE_AMZ_CAMEL = "X-Amz-Signature" DEFAULT_SIGNATURE = SignatureV2 DEFAULT_REGION = "region" DEFAULT_CONNECT_TIMEOUT = 60 DEFAULT_SOCKET_TIMEOUT = 60 DEFAULT_HEADER_TIMEOUT = 60 DEFAULT_IDLE_CONN_TIMEOUT = 30 DEFAULT_MAX_RETRY_COUNT = 3 DEFAULT_MAX_REDIRECT_COUNT = 3 DEFAULT_MAX_CONN_PER_HOST = 1000 EMPTY_CONTENT_SHA256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD" LONG_DATE_FORMAT = "20060102T150405Z" SHORT_DATE_FORMAT = "20060102" ISO8601_DATE_FORMAT = "2006-01-02T15:04:05Z" ISO8601_MIDNIGHT_DATE_FORMAT = "2006-01-02T00:00:00Z" RFC1123_FORMAT = "Mon, 02 Jan 2006 15:04:05 GMT" V4_SERVICE_NAME = "s3" V4_SERVICE_SUFFIX = "aws4_request" V2_HASH_PREFIX = "AWS" OBS_HASH_PREFIX = "OBS" V4_HASH_PREFIX = "AWS4-HMAC-SHA256" V4_HASH_PRE = "AWS4" DEFAULT_SSE_KMS_ENCRYPTION = "aws:kms" DEFAULT_SSE_KMS_ENCRYPTION_OBS = "kms" DEFAULT_SSE_C_ENCRYPTION = "AES256" HTTP_GET = "GET" HTTP_POST = "POST" HTTP_PUT = "PUT" HTTP_DELETE = "DELETE" HTTP_HEAD = "HEAD" HTTP_OPTIONS = "OPTIONS" )
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ConverntObsRestoreToXml ¶
func ConverntObsRestoreToXml(restoreObjectInput RestoreObjectInput) string
func ConvertAclToXml ¶
func ConvertAclToXml(input AccessControlPolicy, returnMd5 bool, isObs bool) (data string, md5 string)
func ConvertCompleteMultipartUploadInputToXml ¶
func ConvertCompleteMultipartUploadInputToXml(input CompleteMultipartUploadInput, returnMd5 bool) (data string, md5 string)
func ConvertLifecyleConfigurationToXml ¶
func ConvertLifecyleConfigurationToXml(input BucketLifecyleConfiguration, returnMd5 bool, isObs bool) (data string, md5 string)
func ConvertLoggingStatusToXml ¶
func ConvertLoggingStatusToXml(input BucketLoggingStatus, returnMd5 bool, isObs bool) (data string, md5 string)
func ConvertNotificationToXml ¶
func ConvertNotificationToXml(input BucketNotification, returnMd5 bool, isObs bool) (data string, md5 string)
func ConvertWebsiteConfigurationToXml ¶
func ConvertWebsiteConfigurationToXml(input BucketWebsiteConfiguration, returnMd5 bool) (data string, md5 string)
func DummyQueryEscape ¶
func FormatUtcNow ¶
func FormatUtcToRfc1123 ¶
func GetAuthorization ¶
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() int64
func GetV2Authorization ¶
func HmacSha256 ¶
func InitLogWithCacheCnt ¶
func Int64ToString ¶
func IntToString ¶
func ParseCompleteMultipartUploadOutput ¶
func ParseCompleteMultipartUploadOutput(output *CompleteMultipartUploadOutput)
func ParseCopyObjectOutput ¶
func ParseCopyObjectOutput(output *CopyObjectOutput)
func ParseCopyPartOutput ¶
func ParseCopyPartOutput(output *CopyPartOutput)
func ParseDeleteObjectOutput ¶
func ParseDeleteObjectOutput(output *DeleteObjectOutput)
func ParseGetBucketMetadataOutput ¶
func ParseGetBucketMetadataOutput(output *GetBucketMetadataOutput)
func ParseGetObjectMetadataOutput ¶
func ParseGetObjectMetadataOutput(output *GetObjectMetadataOutput)
func ParseGetObjectOutput ¶
func ParseGetObjectOutput(output *GetObjectOutput)
func ParseInitiateMultipartUploadOutput ¶
func ParseInitiateMultipartUploadOutput(output *InitiateMultipartUploadOutput)
func ParsePutObjectOutput ¶
func ParsePutObjectOutput(output *PutObjectOutput)
func ParseSetObjectMetadataOutput ¶
func ParseSetObjectMetadataOutput(output *SetObjectMetadataOutput)
func ParseUploadPartOutput ¶
func ParseUploadPartOutput(output *UploadPartOutput)
func Sha256Hash ¶
func StringToInt ¶
func StringToInt64 ¶
func TransToXml ¶
func UrlDecodeWithoutError ¶
func XmlTranscoding ¶
Types ¶
type AccessControlPolicy ¶
type AclType ¶
type AclType string
const ( AclPrivate AclType = "private" AclPublicRead AclType = "public-read" AclPublicReadWrite AclType = "public-read-write" AclAuthenticatedRead AclType = "authenticated-read" AclBucketOwnerRead AclType = "bucket-owner-read" AclBucketOwnerFullControl AclType = "bucket-owner-full-control" AclLogDeliveryWrite AclType = "log-delivery-write" AclPublicReadDelivery AclType = "public-read-delivered" AclPublicReadWriteDelivery AclType = "public-read-write-delivered" )
type BucketCors ¶
type BucketLifecyleConfiguration ¶
type BucketLifecyleConfiguration struct { XMLName xml.Name `xml:"LifecycleConfiguration"` LifecycleRules []LifecycleRule `xml:"Rule"` }
type BucketLocation ¶
type BucketLoggingStatus ¶
type BucketLoggingStatus struct { XMLName xml.Name `xml:"BucketLoggingStatus"` Agency string `xml:"Agency,omitempty"` TargetBucket string `xml:"LoggingEnabled>TargetBucket,omitempty"` TargetPrefix string `xml:"LoggingEnabled>TargetPrefix,omitempty"` TargetGrants []Grant `xml:"LoggingEnabled>TargetGrants>Grant,omitempty"` }
type BucketNotification ¶
type BucketNotification struct { XMLName xml.Name `xml:"NotificationConfiguration"` TopicConfigurations []TopicConfiguration `xml:"TopicConfiguration"` }
type BucketQuota ¶
type BucketStoragePolicy ¶
type BucketStoragePolicy struct { XMLName xml.Name `xml:"StoragePolicy"` StorageClass StorageClassType `xml:"DefaultStorageClass"` }
type BucketTagging ¶
type BucketVersioningConfiguration ¶
type BucketVersioningConfiguration struct { XMLName xml.Name `xml:"VersioningConfiguration"` Status VersioningStatusType `xml:"Status"` }
type BucketWebsiteConfiguration ¶
type BucketWebsiteConfiguration struct { XMLName xml.Name `xml:"WebsiteConfiguration"` RedirectAllRequestsTo RedirectAllRequestsTo `xml:"RedirectAllRequestsTo,omitempty"` IndexDocument IndexDocument `xml:"IndexDocument,omitempty"` ErrorDocument ErrorDocument `xml:"ErrorDocument,omitempty"` RoutingRules []RoutingRule `xml:"RoutingRules>RoutingRule,omitempty"` }
type Configurer ¶ added in v0.2.1
type Configurer func(conf *config)
func WithConnectTimeout ¶
func WithConnectTimeout(connectTimeout int) Configurer
func WithCustomDomainName ¶
func WithCustomDomainName(cname bool) Configurer
func WithHeaderTimeout ¶
func WithHeaderTimeout(headerTimeout int) Configurer
func WithHttpTransport ¶
func WithHttpTransport(transport *http.Transport) Configurer
func WithIdleConnTimeout ¶
func WithIdleConnTimeout(idleConnTimeout int) Configurer
func WithMaxConnections ¶
func WithMaxConnections(maxConnsPerHost int) Configurer
func WithMaxRedirectCount ¶
func WithMaxRedirectCount(maxRedirectCount int) Configurer
func WithMaxRetryCount ¶
func WithMaxRetryCount(maxRetryCount int) Configurer
func WithPathStyle ¶
func WithPathStyle(pathStyle bool) Configurer
func WithProxyUrl ¶
func WithProxyUrl(proxyUrl string) Configurer
func WithRegion ¶
func WithRegion(region string) Configurer
func WithRequestContext ¶
func WithRequestContext(ctx context.Context) Configurer
func WithSecurityToken ¶
func WithSecurityToken(securityToken string) Configurer
func WithSignature ¶
func WithSignature(signature SignatureType) Configurer
func WithSocketTimeout ¶
func WithSocketTimeout(socketTimeout int) Configurer
func WithSslVerify ¶
func WithSslVerify(sslVerify bool) Configurer
func WithSslVerifyAndPemCerts ¶
func WithSslVerifyAndPemCerts(sslVerify bool, pemCerts []byte) Configurer
type CopyObjectInput ¶
type CopyObjectInput struct { ObjectOperationInput CopySourceBucket string CopySourceKey string CopySourceVersionId string CopySourceIfMatch string CopySourceIfNoneMatch string CopySourceIfUnmodifiedSince time.Time CopySourceIfModifiedSince time.Time SourceSseHeader ISseHeader CacheControl string ContentDisposition string ContentEncoding string ContentLanguage string ContentType string Expires string MetadataDirective MetadataDirectiveType SuccessActionRedirect string }
type CopyObjectOutput ¶
type CopyPartInput ¶
type CopyPartOutput ¶
type CorsRule ¶
type CorsRule struct { XMLName xml.Name `xml:"CORSRule"` ID string `xml:"ID,omitempty"` AllowedOrigin []string `xml:"AllowedOrigin"` AllowedMethod []string `xml:"AllowedMethod"` AllowedHeader []string `xml:"AllowedHeader,omitempty"` MaxAgeSeconds int `xml:"MaxAgeSeconds"` ExposeHeader []string `xml:"ExposeHeader,omitempty"` }
type CreateBucketInput ¶
type CreateBucketInput struct { BucketLocation Bucket string `xml:"-"` ACL AclType `xml:"-"` StorageClass StorageClassType `xml:"-"` GrantReadId string `xml:"-"` GrantWriteId string `xml:"-"` GrantReadAcpId string `xml:"-"` GrantWriteAcpId string `xml:"-"` GrantFullControlId string `xml:"-"` GrantReadDeliveredId string `xml:"-"` GrantFullControlDeliveredId string `xml:"-"` Epid string `xml:"-"` }
type CreateSignedUrlInput ¶
type CreateSignedUrlInput struct { Method HttpMethodType Bucket string Key string SubResource SubResourceType Expires int Headers map[string]string QueryParams map[string]string }
type CreateSignedUrlOutput ¶
type DefaultSerializable ¶
type DefaultSerializable struct {
// contains filtered or unexported fields
}
type DeleteMarker ¶
type DeleteObjectInput ¶
type DeleteObjectOutput ¶
type DeleteObjectsInput ¶
type DeleteObjectsInput struct { Bucket string `xml:"-"` XMLName xml.Name `xml:"Delete"` Quiet bool `xml:"Quiet,omitempty"` Objects []ObjectToDelete `xml:"Object"` }
type DeleteObjectsOutput ¶
type ErrorDocument ¶
type ErrorDocument struct {
Key string `xml:"Key,omitempty"`
}
type EventType ¶
type EventType string
const ( ObjectCreatedAll EventType = "ObjectCreated:*" ObjectCreatedPut EventType = "ObjectCreated:Put" ObjectCreatedPost EventType = "ObjectCreated:Post" ObjectCreatedCopy EventType = "ObjectCreated:Copy" ObjectCreatedCompleteMultipartUpload EventType = "ObjectCreated:CompleteMultipartUpload" ObjectRemovedAll EventType = "ObjectRemoved:*" ObjectRemovedDelete EventType = "ObjectRemoved:Delete" ObjectRemovedDeleteMarkerCreated EventType = "ObjectRemoved:DeleteMarkerCreated" )
func ParseStringToEventType ¶
type Expiration ¶
type FilterRule ¶
type GetBucketAclOutput ¶
type GetBucketAclOutput struct { BaseModel AccessControlPolicy }
type GetBucketCorsOutput ¶
type GetBucketCorsOutput struct { BaseModel BucketCors }
type GetBucketLifecycleConfigurationOutput ¶
type GetBucketLifecycleConfigurationOutput struct { BaseModel BucketLifecyleConfiguration }
type GetBucketLocationOutput ¶
type GetBucketLoggingConfigurationOutput ¶
type GetBucketLoggingConfigurationOutput struct { BaseModel BucketLoggingStatus }
type GetBucketMetadataInput ¶
type GetBucketMetadataOutput ¶
type GetBucketNotificationOutput ¶
type GetBucketNotificationOutput struct { BaseModel BucketNotification }
type GetBucketPolicyOutput ¶
type GetBucketQuotaOutput ¶
type GetBucketQuotaOutput struct { BaseModel BucketQuota }
type GetBucketTaggingOutput ¶
type GetBucketTaggingOutput struct { BaseModel BucketTagging }
type GetBucketVersioningOutput ¶
type GetBucketVersioningOutput struct { BaseModel BucketVersioningConfiguration }
type GetBucketWebsiteConfigurationOutput ¶
type GetBucketWebsiteConfigurationOutput struct { BaseModel BucketWebsiteConfiguration }
type GetObjectAclInput ¶
type GetObjectAclOutput ¶
type GetObjectAclOutput struct { BaseModel VersionId string AccessControlPolicy }
type GetObjectInput ¶
type GetObjectInput struct { GetObjectMetadataInput IfMatch string IfNoneMatch string IfUnmodifiedSince time.Time IfModifiedSince time.Time RangeStart int64 RangeEnd int64 ImageProcess string ResponseCacheControl string ResponseContentDisposition string ResponseContentEncoding string ResponseContentLanguage string ResponseContentType string ResponseExpires string }
type GetObjectMetadataInput ¶
type GetObjectMetadataOutput ¶
type GetObjectMetadataOutput struct { BaseModel VersionId string WebsiteRedirectLocation string Expiration string Restore string ObjectType string NextAppendPosition string StorageClass StorageClassType ContentLength int64 ContentType string ETag string AllowOrigin string AllowHeader string AllowMethod string ExposeHeader string MaxAgeSeconds int LastModified time.Time SseHeader ISseHeader Metadata map[string]string }
type GetObjectOutput ¶
type GetObjectOutput struct { GetObjectMetadataOutput DeleteMarker bool CacheControl string ContentDisposition string ContentEncoding string ContentLanguage string Expires string Body io.ReadCloser }
type Grant ¶
type Grant struct { XMLName xml.Name `xml:"Grant"` Grantee Grantee `xml:"Grantee"` Permission PermissionType `xml:"Permission"` Delivered bool `xml:"Delivered"` }
type Grantee ¶
type Grantee struct { XMLName xml.Name `xml:"Grantee"` Type GranteeType `xml:"type,attr"` ID string `xml:"ID,omitempty"` DisplayName string `xml:"DisplayName,omitempty"` URI GroupUriType `xml:"URI,omitempty"` }
type GranteeType ¶
type GranteeType string
const ( GranteeGroup GranteeType = "Group" GranteeUser GranteeType = "CanonicalUser" )
type GroupUriType ¶
type GroupUriType string
const ( GroupAllUsers GroupUriType = "AllUsers" GroupAuthenticatedUsers GroupUriType = "AuthenticatedUsers" GroupLogDelivery GroupUriType = "LogDelivery" )
type HttpMethodType ¶
type HttpMethodType string
const ( HttpMethodGet HttpMethodType = HTTP_GET HttpMethodPut HttpMethodType = HTTP_PUT HttpMethodPost HttpMethodType = HTTP_POST HttpMethodDelete HttpMethodType = HTTP_DELETE HttpMethodHead HttpMethodType = HTTP_HEAD HttpMethodOptions HttpMethodType = HTTP_OPTIONS )
type IBaseModel ¶
type IBaseModel interface {
// contains filtered or unexported methods
}
type IReadCloser ¶
type IReadCloser interface {
// contains filtered or unexported methods
}
type ISerializable ¶
type ISerializable interface {
// contains filtered or unexported methods
}
type ISseHeader ¶
type IndexDocument ¶
type IndexDocument struct {
Suffix string `xml:"Suffix"`
}
type InitiateMultipartUploadInput ¶
type InitiateMultipartUploadInput struct { ObjectOperationInput ContentType string }
type LifecycleRule ¶
type LifecycleRule struct { ID string `xml:"ID,omitempty"` Prefix string `xml:"Prefix"` Status RuleStatusType `xml:"Status"` Transitions []Transition `xml:"Transition,omitempty"` Expiration Expiration `xml:"Expiration,omitempty"` NoncurrentVersionTransitions []NoncurrentVersionTransition `xml:"NoncurrentVersionTransition,omitempty"` NoncurrentVersionExpiration NoncurrentVersionExpiration `xml:"NoncurrentVersionExpiration,omitempty"` }
type ListBucketsInput ¶
type ListBucketsInput struct {
QueryLocation bool
}
type ListBucketsOutput ¶
type ListMultipartUploadsOutput ¶
type ListMultipartUploadsOutput struct { BaseModel XMLName xml.Name `xml:"ListMultipartUploadsResult"` Bucket string `xml:"Bucket"` KeyMarker string `xml:"KeyMarker"` NextKeyMarker string `xml:"NextKeyMarker"` UploadIdMarker string `xml:"UploadIdMarker"` NextUploadIdMarker string `xml:"NextUploadIdMarker"` Delimiter string `xml:"Delimiter"` IsTruncated bool `xml:"IsTruncated"` MaxUploads int `xml:"MaxUploads"` Prefix string `xml:"Prefix"` Uploads []Upload `xml:"Upload"` CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` }
type ListObjectsInput ¶
type ListObjectsInput struct { ListObjsInput Bucket string Marker string }
type ListObjectsOutput ¶
type ListObjectsOutput struct { BaseModel XMLName xml.Name `xml:"ListBucketResult"` Delimiter string `xml:"Delimiter"` IsTruncated bool `xml:"IsTruncated"` Marker string `xml:"Marker"` NextMarker string `xml:"NextMarker"` MaxKeys int `xml:"MaxKeys"` Name string `xml:"Name"` Prefix string `xml:"Prefix"` Contents []Content `xml:"Contents"` CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` Location string `xml:"-"` }
type ListObjsInput ¶
type ListPartsInput ¶
type ListPartsOutput ¶
type ListPartsOutput struct { BaseModel XMLName xml.Name `xml:"ListPartsResult"` Bucket string `xml:"Bucket"` Key string `xml:"Key"` UploadId string `xml:"UploadId"` PartNumberMarker int `xml:"PartNumberMarker"` NextPartNumberMarker int `xml:"NextPartNumberMarker"` MaxParts int `xml:"MaxParts"` IsTruncated bool `xml:"IsTruncated"` StorageClass StorageClassType `xml:"StorageClass"` Initiator Initiator `xml:"Initiator"` Owner Owner `xml:"Owner"` Parts []Part `xml:"Part"` }
type ListVersionsInput ¶
type ListVersionsInput struct { ListObjsInput Bucket string KeyMarker string VersionIdMarker string }
type ListVersionsOutput ¶
type ListVersionsOutput struct { BaseModel XMLName xml.Name `xml:"ListVersionsResult"` Delimiter string `xml:"Delimiter"` IsTruncated bool `xml:"IsTruncated"` KeyMarker string `xml:"KeyMarker"` NextKeyMarker string `xml:"NextKeyMarker"` VersionIdMarker string `xml:"VersionIdMarker"` NextVersionIdMarker string `xml:"NextVersionIdMarker"` MaxKeys int `xml:"MaxKeys"` Name string `xml:"Name"` Prefix string `xml:"Prefix"` Versions []Version `xml:"Version"` DeleteMarkers []DeleteMarker `xml:"DeleteMarker"` CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` Location string `xml:"-"` }
type MetadataDirectiveType ¶
type MetadataDirectiveType string
const ( CopyMetadata MetadataDirectiveType = "COPY" ReplaceNew MetadataDirectiveType = "REPLACE_NEW" ReplaceMetadata MetadataDirectiveType = "REPLACE" )
type NoncurrentVersionTransition ¶
type NoncurrentVersionTransition struct { XMLName xml.Name `xml:"NoncurrentVersionTransition"` NoncurrentDays int `xml:"NoncurrentDays"` StorageClass StorageClassType `xml:"StorageClass"` }
type ObjectOperationInput ¶
type ObjectToDelete ¶
type ObsClient ¶
type ObsClient struct {
// contains filtered or unexported fields
}
func (ObsClient) AbortMultipartUpload ¶
func (obsClient ObsClient) AbortMultipartUpload(input *AbortMultipartUploadInput) (output *BaseModel, err error)
func (ObsClient) AbortMultipartUploadWithSignedUrl ¶
func (ObsClient) CompleteMultipartUpload ¶
func (obsClient ObsClient) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (output *CompleteMultipartUploadOutput, err error)
func (ObsClient) CompleteMultipartUploadWithSignedUrl ¶
func (ObsClient) CopyObject ¶
func (obsClient ObsClient) CopyObject(input *CopyObjectInput) (output *CopyObjectOutput, err error)
func (ObsClient) CopyObjectWithSignedUrl ¶
func (ObsClient) CopyPart ¶
func (obsClient ObsClient) CopyPart(input *CopyPartInput) (output *CopyPartOutput, err error)
func (ObsClient) CopyPartWithSignedUrl ¶
func (ObsClient) CreateBrowserBasedSignature ¶
func (obsClient ObsClient) CreateBrowserBasedSignature(input *CreateBrowserBasedSignatureInput) (output *CreateBrowserBasedSignatureOutput, err error)
func (ObsClient) CreateBucket ¶
func (obsClient ObsClient) CreateBucket(input *CreateBucketInput) (output *BaseModel, err error)
func (ObsClient) CreateBucketWithSignedUrl ¶
func (ObsClient) CreateSignedUrl ¶
func (obsClient ObsClient) CreateSignedUrl(input *CreateSignedUrlInput) (output *CreateSignedUrlOutput, err error)
func (ObsClient) DeleteBucket ¶
func (ObsClient) DeleteBucketCors ¶
func (ObsClient) DeleteBucketCorsWithSignedUrl ¶
func (ObsClient) DeleteBucketLifecycleConfiguration ¶
func (ObsClient) DeleteBucketLifecycleConfigurationWithSignedUrl ¶
func (ObsClient) DeleteBucketPolicy ¶
func (ObsClient) DeleteBucketPolicyWithSignedUrl ¶
func (ObsClient) DeleteBucketTagging ¶
func (ObsClient) DeleteBucketTaggingWithSignedUrl ¶
func (ObsClient) DeleteBucketWebsiteConfiguration ¶
func (ObsClient) DeleteBucketWebsiteConfigurationWithSignedUrl ¶
func (ObsClient) DeleteBucketWithSignedUrl ¶
func (ObsClient) DeleteObject ¶
func (obsClient ObsClient) DeleteObject(input *DeleteObjectInput) (output *DeleteObjectOutput, err error)
func (ObsClient) DeleteObjectWithSignedUrl ¶
func (ObsClient) DeleteObjects ¶
func (obsClient ObsClient) DeleteObjects(input *DeleteObjectsInput) (output *DeleteObjectsOutput, err error)
func (ObsClient) DeleteObjectsWithSignedUrl ¶
func (ObsClient) GetBucketAcl ¶
func (obsClient ObsClient) GetBucketAcl(bucketName string) (output *GetBucketAclOutput, err error)
func (ObsClient) GetBucketAclWithSignedUrl ¶
func (ObsClient) GetBucketCors ¶
func (obsClient ObsClient) GetBucketCors(bucketName string) (output *GetBucketCorsOutput, err error)
func (ObsClient) GetBucketCorsWithSignedUrl ¶
func (ObsClient) GetBucketLifecycleConfiguration ¶
func (obsClient ObsClient) GetBucketLifecycleConfiguration(bucketName string) (output *GetBucketLifecycleConfigurationOutput, err error)
func (ObsClient) GetBucketLifecycleConfigurationWithSignedUrl ¶
func (ObsClient) GetBucketLocation ¶
func (obsClient ObsClient) GetBucketLocation(bucketName string) (output *GetBucketLocationOutput, err error)
func (ObsClient) GetBucketLocationWithSignedUrl ¶
func (ObsClient) GetBucketLoggingConfiguration ¶
func (obsClient ObsClient) GetBucketLoggingConfiguration(bucketName string) (output *GetBucketLoggingConfigurationOutput, err error)
func (ObsClient) GetBucketLoggingConfigurationWithSignedUrl ¶
func (ObsClient) GetBucketMetadata ¶
func (obsClient ObsClient) GetBucketMetadata(input *GetBucketMetadataInput) (output *GetBucketMetadataOutput, err error)
func (ObsClient) GetBucketMetadataWithSignedUrl ¶
func (ObsClient) GetBucketNotification ¶
func (obsClient ObsClient) GetBucketNotification(bucketName string) (output *GetBucketNotificationOutput, err error)
func (ObsClient) GetBucketNotificationWithSignedUrl ¶
func (ObsClient) GetBucketPolicy ¶
func (obsClient ObsClient) GetBucketPolicy(bucketName string) (output *GetBucketPolicyOutput, err error)
func (ObsClient) GetBucketPolicyWithSignedUrl ¶
func (ObsClient) GetBucketQuota ¶
func (obsClient ObsClient) GetBucketQuota(bucketName string) (output *GetBucketQuotaOutput, err error)
func (ObsClient) GetBucketQuotaWithSignedUrl ¶
func (ObsClient) GetBucketStorageInfo ¶
func (obsClient ObsClient) GetBucketStorageInfo(bucketName string) (output *GetBucketStorageInfoOutput, err error)
func (ObsClient) GetBucketStorageInfoWithSignedUrl ¶
func (ObsClient) GetBucketStoragePolicy ¶
func (obsClient ObsClient) GetBucketStoragePolicy(bucketName string) (output *GetBucketStoragePolicyOutput, err error)
func (ObsClient) GetBucketStoragePolicyWithSignedUrl ¶
func (ObsClient) GetBucketTagging ¶
func (obsClient ObsClient) GetBucketTagging(bucketName string) (output *GetBucketTaggingOutput, err error)
func (ObsClient) GetBucketTaggingWithSignedUrl ¶
func (ObsClient) GetBucketVersioning ¶
func (obsClient ObsClient) GetBucketVersioning(bucketName string) (output *GetBucketVersioningOutput, err error)
func (ObsClient) GetBucketVersioningWithSignedUrl ¶
func (ObsClient) GetBucketWebsiteConfiguration ¶
func (obsClient ObsClient) GetBucketWebsiteConfiguration(bucketName string) (output *GetBucketWebsiteConfigurationOutput, err error)
func (ObsClient) GetBucketWebsiteConfigurationWithSignedUrl ¶
func (ObsClient) GetObject ¶
func (obsClient ObsClient) GetObject(input *GetObjectInput) (output *GetObjectOutput, err error)
func (ObsClient) GetObjectAcl ¶
func (obsClient ObsClient) GetObjectAcl(input *GetObjectAclInput) (output *GetObjectAclOutput, err error)
func (ObsClient) GetObjectAclWithSignedUrl ¶
func (ObsClient) GetObjectMetadata ¶
func (obsClient ObsClient) GetObjectMetadata(input *GetObjectMetadataInput) (output *GetObjectMetadataOutput, err error)
func (ObsClient) GetObjectMetadataWithSignedUrl ¶
func (ObsClient) GetObjectWithSignedUrl ¶
func (ObsClient) HeadBucket ¶
func (ObsClient) HeadBucketWithSignedUrl ¶
func (ObsClient) InitiateMultipartUpload ¶
func (obsClient ObsClient) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (output *InitiateMultipartUploadOutput, err error)
func (ObsClient) InitiateMultipartUploadWithSignedUrl ¶
func (ObsClient) ListBuckets ¶
func (obsClient ObsClient) ListBuckets(input *ListBucketsInput) (output *ListBucketsOutput, err error)
func (ObsClient) ListBucketsWithSignedUrl ¶
func (ObsClient) ListMultipartUploads ¶
func (obsClient ObsClient) ListMultipartUploads(input *ListMultipartUploadsInput) (output *ListMultipartUploadsOutput, err error)
func (ObsClient) ListMultipartUploadsWithSignedUrl ¶
func (ObsClient) ListObjects ¶
func (obsClient ObsClient) ListObjects(input *ListObjectsInput) (output *ListObjectsOutput, err error)
func (ObsClient) ListObjectsWithSignedUrl ¶
func (ObsClient) ListParts ¶
func (obsClient ObsClient) ListParts(input *ListPartsInput) (output *ListPartsOutput, err error)
func (ObsClient) ListPartsWithSignedUrl ¶
func (ObsClient) ListVersions ¶
func (obsClient ObsClient) ListVersions(input *ListVersionsInput) (output *ListVersionsOutput, err error)
func (ObsClient) ListVersionsWithSignedUrl ¶
func (ObsClient) PutFile ¶
func (obsClient ObsClient) PutFile(input *PutFileInput) (output *PutObjectOutput, err error)
func (ObsClient) PutFileWithSignedUrl ¶
func (ObsClient) PutObject ¶
func (obsClient ObsClient) PutObject(input *PutObjectInput) (output *PutObjectOutput, err error)
func (ObsClient) PutObjectWithSignedUrl ¶
func (ObsClient) RestoreObject ¶
func (obsClient ObsClient) RestoreObject(input *RestoreObjectInput) (output *BaseModel, err error)
func (ObsClient) RestoreObjectWithSignedUrl ¶
func (ObsClient) SetBucketAcl ¶
func (obsClient ObsClient) SetBucketAcl(input *SetBucketAclInput) (output *BaseModel, err error)
func (ObsClient) SetBucketAclWithSignedUrl ¶
func (ObsClient) SetBucketCors ¶
func (obsClient ObsClient) SetBucketCors(input *SetBucketCorsInput) (output *BaseModel, err error)
func (ObsClient) SetBucketCorsWithSignedUrl ¶
func (ObsClient) SetBucketLifecycleConfiguration ¶
func (obsClient ObsClient) SetBucketLifecycleConfiguration(input *SetBucketLifecycleConfigurationInput) (output *BaseModel, err error)
func (ObsClient) SetBucketLifecycleConfigurationWithSignedUrl ¶
func (ObsClient) SetBucketLoggingConfiguration ¶
func (obsClient ObsClient) SetBucketLoggingConfiguration(input *SetBucketLoggingConfigurationInput) (output *BaseModel, err error)
func (ObsClient) SetBucketLoggingConfigurationWithSignedUrl ¶
func (ObsClient) SetBucketNotification ¶
func (obsClient ObsClient) SetBucketNotification(input *SetBucketNotificationInput) (output *BaseModel, err error)
func (ObsClient) SetBucketNotificationWithSignedUrl ¶
func (ObsClient) SetBucketPolicy ¶
func (obsClient ObsClient) SetBucketPolicy(input *SetBucketPolicyInput) (output *BaseModel, err error)
func (ObsClient) SetBucketPolicyWithSignedUrl ¶
func (ObsClient) SetBucketQuota ¶
func (obsClient ObsClient) SetBucketQuota(input *SetBucketQuotaInput) (output *BaseModel, err error)
func (ObsClient) SetBucketQuotaWithSignedUrl ¶
func (ObsClient) SetBucketStoragePolicy ¶
func (obsClient ObsClient) SetBucketStoragePolicy(input *SetBucketStoragePolicyInput) (output *BaseModel, err error)
func (ObsClient) SetBucketStoragePolicyWithSignedUrl ¶
func (ObsClient) SetBucketTagging ¶
func (obsClient ObsClient) SetBucketTagging(input *SetBucketTaggingInput) (output *BaseModel, err error)
func (ObsClient) SetBucketTaggingWithSignedUrl ¶
func (ObsClient) SetBucketVersioning ¶
func (obsClient ObsClient) SetBucketVersioning(input *SetBucketVersioningInput) (output *BaseModel, err error)
func (ObsClient) SetBucketVersioningWithSignedUrl ¶
func (ObsClient) SetBucketWebsiteConfiguration ¶
func (obsClient ObsClient) SetBucketWebsiteConfiguration(input *SetBucketWebsiteConfigurationInput) (output *BaseModel, err error)
func (ObsClient) SetBucketWebsiteConfigurationWithSignedUrl ¶
func (ObsClient) SetObjectAcl ¶
func (obsClient ObsClient) SetObjectAcl(input *SetObjectAclInput) (output *BaseModel, err error)
func (ObsClient) SetObjectAclWithSignedUrl ¶
func (ObsClient) SetObjectMetadata ¶
func (obsClient ObsClient) SetObjectMetadata(input *SetObjectMetadataInput) (output *SetObjectMetadataOutput, err error)
func (ObsClient) UploadPart ¶
func (obsClient ObsClient) UploadPart(_input *UploadPartInput) (output *UploadPartOutput, err error)
func (ObsClient) UploadPartWithSignedUrl ¶
type ObsError ¶
type PermissionType ¶
type PermissionType string
const ( PermissionRead PermissionType = "READ" PermissionWrite PermissionType = "WRITE" PermissionReadAcp PermissionType = "READ_ACP" PermissionWriteAcp PermissionType = "WRITE_ACP" PermissionFullControl PermissionType = "FULL_CONTROL" )
type ProtocolType ¶
type ProtocolType string
const ( ProtocolHttp ProtocolType = "http" ProtocolHttps ProtocolType = "https" )
type PutFileInput ¶
type PutFileInput struct { PutObjectBasicInput SourceFile string }
type PutObjectBasicInput ¶
type PutObjectBasicInput struct { ObjectOperationInput ContentType string ContentMD5 string ContentLength int64 }
type PutObjectInput ¶
type PutObjectInput struct { PutObjectBasicInput Body io.Reader }
type PutObjectOutput ¶
type PutObjectOutput struct { BaseModel VersionId string SseHeader ISseHeader StorageClass StorageClassType ETag string }
type Redirect ¶
type Redirect struct { XMLName xml.Name `xml:"Redirect"` Protocol ProtocolType `xml:"Protocol,omitempty"` HostName string `xml:"HostName,omitempty"` ReplaceKeyPrefixWith string `xml:"ReplaceKeyPrefixWith,omitempty"` ReplaceKeyWith string `xml:"ReplaceKeyWith,omitempty"` HttpRedirectCode string `xml:"HttpRedirectCode,omitempty"` }
type RedirectAllRequestsTo ¶
type RedirectAllRequestsTo struct { XMLName xml.Name `xml:"RedirectAllRequestsTo"` Protocol ProtocolType `xml:"Protocol,omitempty"` HostName string `xml:"HostName"` }
type RestoreObjectInput ¶
type RestoreTierType ¶
type RestoreTierType string
const ( RestoreTierExpedited RestoreTierType = "Expedited" RestoreTierStandard RestoreTierType = "Standard" RestoreTierBulk RestoreTierType = "Bulk" )
type RoutingRule ¶
type RuleStatusType ¶
type RuleStatusType string
const ( RuleStatusEnabled RuleStatusType = "Enabled" RuleStatusDisabled RuleStatusType = "Disabled" )
type SetBucketAclInput ¶
type SetBucketAclInput struct { Bucket string `xml:"-"` ACL AclType `xml:"-"` AccessControlPolicy }
type SetBucketCorsInput ¶
type SetBucketCorsInput struct { Bucket string `xml:"-"` BucketCors }
type SetBucketLifecycleConfigurationInput ¶
type SetBucketLifecycleConfigurationInput struct { Bucket string `xml:"-"` BucketLifecyleConfiguration }
type SetBucketLoggingConfigurationInput ¶
type SetBucketLoggingConfigurationInput struct { Bucket string `xml:"-"` BucketLoggingStatus }
type SetBucketNotificationInput ¶
type SetBucketNotificationInput struct { Bucket string `xml:"-"` BucketNotification }
type SetBucketPolicyInput ¶
type SetBucketQuotaInput ¶
type SetBucketQuotaInput struct { Bucket string `xml:"-"` BucketQuota }
type SetBucketStoragePolicyInput ¶
type SetBucketStoragePolicyInput struct { Bucket string `xml:"-"` BucketStoragePolicy }
type SetBucketTaggingInput ¶
type SetBucketTaggingInput struct { Bucket string `xml:"-"` BucketTagging }
type SetBucketVersioningInput ¶
type SetBucketVersioningInput struct { Bucket string `xml:"-"` BucketVersioningConfiguration }
type SetBucketWebsiteConfigurationInput ¶
type SetBucketWebsiteConfigurationInput struct { Bucket string `xml:"-"` BucketWebsiteConfiguration }
type SetObjectAclInput ¶
type SetObjectAclInput struct { Bucket string `xml:"-"` Key string `xml:"-"` VersionId string `xml:"-"` ACL AclType `xml:"-"` AccessControlPolicy }
type SetObjectMetadataInput ¶
type SetObjectMetadataInput struct { Bucket string Key string VersionId string MetadataDirective MetadataDirectiveType CacheControl string ContentDisposition string ContentEncoding string ContentLanguage string ContentType string Expires string WebsiteRedirectLocation string StorageClass StorageClassType Metadata map[string]string }
type SetObjectMetadataOutput ¶
type SetObjectMetadataOutput struct { BaseModel MetadataDirective MetadataDirectiveType CacheControl string ContentDisposition string ContentEncoding string ContentLanguage string ContentType string Expires string WebsiteRedirectLocation string StorageClass StorageClassType Metadata map[string]string }
type SignatureType ¶
type SignatureType string
const ( SignatureV2 SignatureType = "v2" SignatureV4 SignatureType = "v4" SignatureObs SignatureType = "OBS" )
type SseCHeader ¶
func (SseCHeader) GetEncryption ¶
func (header SseCHeader) GetEncryption() string
func (SseCHeader) GetKey ¶
func (header SseCHeader) GetKey() string
func (SseCHeader) GetKeyMD5 ¶
func (header SseCHeader) GetKeyMD5() string
type SseKmsHeader ¶
func (SseKmsHeader) GetEncryption ¶
func (header SseKmsHeader) GetEncryption() string
func (SseKmsHeader) GetKey ¶
func (header SseKmsHeader) GetKey() string
type StorageClassType ¶
type StorageClassType string
const ( StorageClassStandard StorageClassType = "STANDARD" StorageClassWarm StorageClassType = "WARM" StorageClassCold StorageClassType = "COLD" )
func ParseStringToStorageClassType ¶
func ParseStringToStorageClassType(value string) (ret StorageClassType)
type SubResourceType ¶
type SubResourceType string
const ( SubResourceStoragePolicy SubResourceType = "storagePolicy" SubResourceStorageClass SubResourceType = "storageClass" SubResourceQuota SubResourceType = "quota" SubResourceStorageInfo SubResourceType = "storageinfo" SubResourceLocation SubResourceType = "location" SubResourceAcl SubResourceType = "acl" SubResourcePolicy SubResourceType = "policy" SubResourceCors SubResourceType = "cors" SubResourceVersioning SubResourceType = "versioning" SubResourceWebsite SubResourceType = "website" SubResourceLogging SubResourceType = "logging" SubResourceLifecycle SubResourceType = "lifecycle" SubResourceNotification SubResourceType = "notification" SubResourceTagging SubResourceType = "tagging" SubResourceDelete SubResourceType = "delete" SubResourceVersions SubResourceType = "versions" SubResourceUploads SubResourceType = "uploads" SubResourceRestore SubResourceType = "restore" SubResourceMetadata SubResourceType = "metadata" )
type TopicConfiguration ¶
type Transition ¶
type UploadPartInput ¶
type UploadPartOutput ¶
type UploadPartOutput struct { BaseModel PartNumber int ETag string SseHeader ISseHeader }
type Version ¶
type Version struct { DeleteMarker XMLName xml.Name `xml:"Version"` ETag string `xml:"ETag"` Size int64 `xml:"Size"` }
type VersioningStatusType ¶
type VersioningStatusType string
const ( VersioningStatusEnabled VersioningStatusType = "Enabled" VersioningStatusSuspended VersioningStatusType = "Suspended" )
Click to show internal directories.
Click to hide internal directories.