Documentation ¶
Overview ¶
Copyright 2019 Huawei Technologies Co.,Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Base64Decode(value string) ([]byte, error)
- func Base64Encode(value []byte) string
- func Base64Md5(value []byte) string
- func BytesToString(b []byte) string
- func CloseLog()
- func ConvertAclToXml(input AccessControlPolicy, returnMd5 bool) (data string, md5 string)
- func ConvertCompleteMultipartUploadInputToXml(input CompleteMultipartUploadInput, returnMd5 bool) (data string, md5 string)
- func ConvertLifecyleConfigurationToXml(input BucketLifecyleConfiguration, returnMd5 bool) (data string, md5 string)
- func ConvertLoggingStatusToXml(input BucketLoggingStatus, returnMd5 bool) (data string, md5 string)
- func ConvertNotificationToXml(input BucketNotification, returnMd5 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 GetContentType(key string) (string, bool)
- func GetCurrentTimestamp() int64
- 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 ParseDropFileOutput(output *DropFileOutput)
- func ParseGetAttributeOutput(output *GetAttributeOutput)
- func ParseGetBucketFSStatusOutput(output *GetBucketFSStatusOutput)
- func ParseGetBucketMetadataOutput(output *GetBucketMetadataOutput)
- func ParseGetObjectMetadataOutput(output *GetObjectMetadataOutput)
- func ParseGetObjectOutput(output *GetObjectOutput)
- func ParseInitiateMultipartUploadOutput(output *InitiateMultipartUploadOutput)
- func ParseNewFileOutput(output *NewFileOutput)
- func ParseNewFolderOutput(output *NewFolderOutput)
- func ParsePutObjectOutput(output *PutObjectOutput)
- func ParseResponseToBaseModel(resp *http.Response, baseModel IBaseModel, xmlResult bool) (err error)
- func ParseResponseToObsError(resp *http.Response) 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 StringToBytes(s string) []byte
- 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
- func UrlEncode(value string, chineseOnly bool) string
- func V4Auth(ak, sk, region, method, canonicalizedUrl, queryUrl string, ...) map[string]string
- func WithConnectTimeout(connectTimeout int) configurer
- func WithDisableCompression(disableCompression bool) configurer
- func WithHeaderTimeout(headerTimeout int) configurer
- func WithIdleConnTimeout(idleConnTimeout int) configurer
- func WithMaxConnections(maxConnsPerHost int) configurer
- func WithMaxRetryCount(maxRetryCount int) configurer
- func WithPathStyle(pathStyle bool) configurer
- func WithProxyUrl(proxyUrl string) configurer
- func WithRegion(region string) configurer
- func WithReqPaymentHeader(requester string) extensionOptions
- func WithSecurityProviders(sps ...SecurityProvider) 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
- func WithUserAgent(userAgent string) configurer
- func XmlTranscoding(src string) string
- type AbortMultipartUploadInput
- type AccessControlPolicy
- type AclType
- type AvailableZoneType
- type BaseModel
- type BasicSecurityProvider
- 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 Content
- type ContextWrapper
- 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 DropFileInput
- type DropFileOutput
- type EcsSecurityProvider
- type EnvSecurityProvider
- type Error
- type ErrorDocument
- type Expiration
- type FSStatusType
- type FilterRule
- type GetAttributeInput
- type GetAttributeOutput
- type GetBucketAclOutput
- type GetBucketCorsOutput
- type GetBucketFSStatusInput
- type GetBucketFSStatusOutput
- 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 IFSClient
- type IReadCloser
- type IRepeatable
- 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 NewBucketInput
- type NewFileInput
- type NewFileOutput
- type NewFolderInput
- type NewFolderOutput
- 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, extensions ...extensionOptions) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketCors(bucketName string, extensions ...extensionOptions) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketCorsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketLifecycleConfiguration(bucketName string, extensions ...extensionOptions) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketLifecycleConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketPolicy(bucketName string, extensions ...extensionOptions) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketPolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketTagging(bucketName string, extensions ...extensionOptions) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
- func (obsClient ObsClient) DeleteBucketWebsiteConfiguration(bucketName string, extensions ...extensionOptions) (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) DropFile(input *DropFileInput) (output *DropFileOutput, err error)
- func (obsClient ObsClient) GetAttribute(input *GetAttributeInput) (output *GetAttributeOutput, err error)
- func (obsClient ObsClient) GetBucketAcl(bucketName string, extensions ...extensionOptions) (output *GetBucketAclOutput, err error)
- func (obsClient ObsClient) GetBucketAclWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketAclOutput, err error)
- func (obsClient ObsClient) GetBucketCors(bucketName string, extensions ...extensionOptions) (output *GetBucketCorsOutput, err error)
- func (obsClient ObsClient) GetBucketCorsWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketCorsOutput, err error)
- func (obsClient ObsClient) GetBucketFSStatus(input *GetBucketFSStatusInput) (output *GetBucketFSStatusOutput, err error)
- func (obsClient ObsClient) GetBucketLifecycleConfiguration(bucketName string, extensions ...extensionOptions) (output *GetBucketLifecycleConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketLifecycleConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketLifecycleConfigurationOutput, err error)
- func (obsClient ObsClient) GetBucketLocation(bucketName string, extensions ...extensionOptions) (output *GetBucketLocationOutput, err error)
- func (obsClient ObsClient) GetBucketLocationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketLocationOutput, err error)
- func (obsClient ObsClient) GetBucketLoggingConfiguration(bucketName string, extensions ...extensionOptions) (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, extensions ...extensionOptions) (output *GetBucketNotificationOutput, err error)
- func (obsClient ObsClient) GetBucketNotificationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketNotificationOutput, err error)
- func (obsClient ObsClient) GetBucketPolicy(bucketName string, extensions ...extensionOptions) (output *GetBucketPolicyOutput, err error)
- func (obsClient ObsClient) GetBucketPolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketPolicyOutput, err error)
- func (obsClient ObsClient) GetBucketQuota(bucketName string, extensions ...extensionOptions) (output *GetBucketQuotaOutput, err error)
- func (obsClient ObsClient) GetBucketQuotaWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketQuotaOutput, err error)
- func (obsClient ObsClient) GetBucketStorageInfo(bucketName string, extensions ...extensionOptions) (output *GetBucketStorageInfoOutput, err error)
- func (obsClient ObsClient) GetBucketStorageInfoWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketStorageInfoOutput, err error)
- func (obsClient ObsClient) GetBucketStoragePolicy(bucketName string, extensions ...extensionOptions) (output *GetBucketStoragePolicyOutput, err error)
- func (obsClient ObsClient) GetBucketStoragePolicyWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketStoragePolicyOutput, err error)
- func (obsClient ObsClient) GetBucketTagging(bucketName string, extensions ...extensionOptions) (output *GetBucketTaggingOutput, err error)
- func (obsClient ObsClient) GetBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketTaggingOutput, err error)
- func (obsClient ObsClient) GetBucketVersioning(bucketName string, extensions ...extensionOptions) (output *GetBucketVersioningOutput, err error)
- func (obsClient ObsClient) GetBucketVersioningWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *GetBucketVersioningOutput, err error)
- func (obsClient ObsClient) GetBucketWebsiteConfiguration(bucketName string, extensions ...extensionOptions) (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) GetSecurity() SecurityHolder
- 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) NewBucket(input *NewBucketInput) (output *BaseModel, err error)
- func (obsClient ObsClient) NewFile(input *NewFileInput) (output *NewFileOutput, err error)
- func (obsClient ObsClient) NewFolder(input *NewFolderInput) (output *NewFolderOutput, 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) RenameFile(input *RenameFileInput) (output *RenameFileOutput, err error)
- func (obsClient ObsClient) RenameFolder(input *RenameFolderInput) (output *RenameFolderOutput, err error)
- 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 RenameFileInput
- type RenameFileOutput
- type RenameFolderInput
- type RenameFolderOutput
- type RestoreObjectInput
- type RestoreTierType
- type RoutingRule
- type RuleStatusType
- type SecurityHolder
- type SecurityProvider
- 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 TemporarySecurityHolder
- type TopicConfiguration
- type Transition
- type Upload
- type UploadPartInput
- type UploadPartOutput
- type Version
- type VersioningStatusType
Constants ¶
View Source
const ( OBS_SDK_VERSION = "2.2.12" USER_AGENT = "obs-sdk-go/" + OBS_SDK_VERSION HEADER_PREFIX = "x-amz-" HEADER_PREFIX_OBS = "x-obs-" HEADER_PREFIX_META = "x-amz-meta-" HEADER_DATE_AMZ = "x-amz-date" HEADER_STS_TOKEN_AMZ = "x-amz-security-token" PREFIX_META = "meta-" HEADER_CONTENT_SHA256_AMZ = "x-amz-content-sha256" HEADER_ACL_AMZ = "x-amz-acl" HEADER_LOCATION_AMZ = "x-amz-location" HEADER_COPY_SOURCE_AMZ = "x-amz-copy-source" HEADER_COPY_SOURCE_RANGE_AMZ = "x-amz-copy-source-range" HEADER_VERSION_OBS = "x-obs-version" HEADER_REQUEST_PAYER = "x-amz-request-payer" HEADER_RANGE = "Range" HEADER_STORAGE_CLASS = "x-default-storage-class" HEADER_AZ_REDUNDANCY_OBS = "x-obs-az-redundancy" HEADER_FS_FILE_INTERFACE_OBS = "x-obs-fs-file-interface" HEADER_MODE = "mode" HEADER_REQUEST_ID = "request-id" HEADER_REQUEST_ID2 = "id-2" 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_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_WEBSITE_REDIRECT_LOCATION_AMZ = "x-amz-website-redirect-location" HEADER_METADATA_DIRECTIVE = "metadata-directive" HEADER_METADATA_DIRECTIVE_AMZ = "x-amz-metadata-directive" HEADER_EXPIRATION = "expiration" HEADER_RESTORE = "restore" HEADER_STORAGE_CLASS2 = "storage-class" HEADER_STORAGE_CLASS2_AMZ = "x-amz-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_AMZ = "x-amz-copy-source-if-match" HEADER_COPY_SOURCE_IF_NONE_MATCH_AMZ = "x-amz-copy-source-if-none-match" HEADER_COPY_SOURCE_IF_MODIFIED_SINCE_AMZ = "x-amz-copy-source-if-modified-since" HEADER_COPY_SOURCE_IF_UNMODIFIED_SINCE_AMZ = "x-amz-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_SSEC_ENCRYPTION_AMZ = "x-amz-server-side-encryption-customer-algorithm" HEADER_SSEC_KEY_AMZ = "x-amz-server-side-encryption-customer-key" HEADER_SSEC_KEY_MD5_AMZ = "x-amz-server-side-encryption-customer-key-MD5" HEADER_SSEC_COPY_SOURCE_ENCRYPTION_AMZ = "x-amz-copy-source-server-side-encryption-customer-algorithm" HEADER_SSEC_COPY_SOURCE_KEY_AMZ = "x-amz-copy-source-server-side-encryption-customer-key" HEADER_SSEC_COPY_SOURCE_KEY_MD5_AMZ = "x-amz-copy-source-server-side-encryption-customer-key-MD5" HEADER_SSEKMS_ENCRYPTION_AMZ = "x-amz-server-side-encryption" HEADER_SSEKMS_KEY_AMZ = "x-amz-server-side-encryption-aws-kms-key-id" 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_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_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" V4_HASH_PREFIX = "AWS4-HMAC-SHA256" V4_HASH_PRE = "AWS4" DEFAULT_SSE_KMS_ENCRYPTION = "aws:kms" DEFAULT_SSE_C_ENCRYPTION = "AES256" HTTP_GET = "GET" HTTP_POST = "POST" HTTP_PUT = "PUT" HTTP_DELETE = "DELETE" HTTP_HEAD = "HEAD" HTTP_OPTIONS = "OPTIONS" REQUEST_PAYER = "request-payer" )
View Source
const ( BucketOwnerPayer string = "BucketOwner" RequesterPayer string = "Requester" Requester string = "requester" )
View Source
const ( ACCESS_KEY_ENV = "OBS_ACCESS_KEY_ID" SECURITY_KEY_ENV = "OBS_SECRET_ACCESS_KEY" SECURITY_TOKEN_ENV = "OBS_SECURITY_TOKEN" ECS_REQUEST_URL = "http://169.254.169.254/openstack/latest/securitykey" )
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func BytesToString ¶
func ConvertAclToXml ¶
func ConvertAclToXml(input AccessControlPolicy, returnMd5 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) (data string, md5 string)
func ConvertLoggingStatusToXml ¶
func ConvertLoggingStatusToXml(input BucketLoggingStatus, returnMd5 bool) (data string, md5 string)
func ConvertNotificationToXml ¶
func ConvertNotificationToXml(input BucketNotification, returnMd5 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 GetContentType ¶
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() int64
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 ParseDropFileOutput ¶
func ParseDropFileOutput(output *DropFileOutput)
func ParseGetAttributeOutput ¶
func ParseGetAttributeOutput(output *GetAttributeOutput)
func ParseGetBucketFSStatusOutput ¶
func ParseGetBucketFSStatusOutput(output *GetBucketFSStatusOutput)
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 ParseNewFileOutput ¶
func ParseNewFileOutput(output *NewFileOutput)
func ParseNewFolderOutput ¶
func ParseNewFolderOutput(output *NewFolderOutput)
func ParsePutObjectOutput ¶
func ParsePutObjectOutput(output *PutObjectOutput)
func ParseResponseToBaseModel ¶
func ParseResponseToBaseModel(resp *http.Response, baseModel IBaseModel, xmlResult bool) (err error)
func ParseResponseToObsError ¶
func ParseSetObjectMetadataOutput ¶
func ParseSetObjectMetadataOutput(output *SetObjectMetadataOutput)
func ParseUploadPartOutput ¶
func ParseUploadPartOutput(output *UploadPartOutput)
func Sha256Hash ¶
func StringToBytes ¶
func StringToInt ¶
func StringToInt64 ¶
func TransToXml ¶
func WithConnectTimeout ¶
func WithConnectTimeout(connectTimeout int) configurer
func WithDisableCompression ¶
func WithDisableCompression(disableCompression bool) configurer
func WithHeaderTimeout ¶
func WithHeaderTimeout(headerTimeout int) configurer
func WithIdleConnTimeout ¶
func WithIdleConnTimeout(idleConnTimeout int) configurer
func WithMaxConnections ¶
func WithMaxConnections(maxConnsPerHost 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 WithReqPaymentHeader ¶
func WithReqPaymentHeader(requester string) extensionOptions
func WithSecurityProviders ¶
func WithSecurityProviders(sps ...SecurityProvider) 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 WithUserAgent ¶
func WithUserAgent(userAgent string) configurer
func XmlTranscoding ¶
Types ¶
type AbortMultipartUploadInput ¶
type AbortMultipartUploadInput struct { ContextWrapper Bucket string Key string UploadId string RequestPayer string }
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" )
type AvailableZoneType ¶
type AvailableZoneType string
const (
AvailableZoneMultiAz AvailableZoneType = "3az"
)
func ParseStringToAvailableZoneType ¶
func ParseStringToAvailableZoneType(value string) (ret AvailableZoneType)
type BasicSecurityProvider ¶
type BasicSecurityProvider struct {
// contains filtered or unexported fields
}
func NewBasicSecurityProvider ¶
func NewBasicSecurityProvider(ak, sk, securityToken string) *BasicSecurityProvider
func (*BasicSecurityProvider) GetSecurity ¶
func (bsp *BasicSecurityProvider) GetSecurity() SecurityHolder
func (*BasicSecurityProvider) Refresh ¶
func (bsp *BasicSecurityProvider) Refresh(ak, sk, securityToken string)
type BucketCors ¶
type BucketLifecyleConfiguration ¶
type BucketLifecyleConfiguration struct { XMLName xml.Name `xml:"LifecycleConfiguration"` LifecycleRules []LifecycleRule `xml:"Rule"` }
type BucketLocation ¶
type BucketLoggingStatus ¶
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 ContextWrapper ¶
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 RequestPayer string }
type CopyObjectOutput ¶
type CopyPartInput ¶
type CopyPartInput struct { ContextWrapper Bucket string Key string UploadId string PartNumber int CopySourceBucket string CopySourceKey string CopySourceVersionId string CopySourceRangeStart int64 CopySourceRangeEnd int64 SseHeader ISseHeader SourceSseHeader ISseHeader RequestPayer string }
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:"-"` AvailableZone AvailableZoneType `xml:"-"` }
type CreateSignedUrlInput ¶
type CreateSignedUrlOutput ¶
type DefaultSerializable ¶
type DefaultSerializable struct {
// contains filtered or unexported fields
}
type DeleteMarker ¶
type DeleteObjectInput ¶
type DeleteObjectInput struct { ContextWrapper Bucket string Key string VersionId string RequestPayer string }
type DeleteObjectOutput ¶
type DeleteObjectsInput ¶
type DeleteObjectsInput struct { ContextWrapper Bucket string `xml:"-"` XMLName xml.Name `xml:"Delete"` Quiet bool `xml:"Quiet,omitempty"` Objects []ObjectToDelete `xml:"Object"` RequestPayer string }
type DeleteObjectsOutput ¶
type DropFileInput ¶
type DropFileInput struct { DeleteObjectInput RequestPayer string }
type DropFileOutput ¶
type DropFileOutput struct {
DeleteObjectOutput
}
type EcsSecurityProvider ¶
type EcsSecurityProvider struct {
// contains filtered or unexported fields
}
func NewEcsSecurityProvider ¶
func NewEcsSecurityProvider(retryCount int) *EcsSecurityProvider
func (*EcsSecurityProvider) GetSecurity ¶
func (ecsSp *EcsSecurityProvider) GetSecurity() SecurityHolder
type EnvSecurityProvider ¶
type EnvSecurityProvider struct {
// contains filtered or unexported fields
}
func NewEnvSecurityProvider ¶
func NewEnvSecurityProvider(suffix string) *EnvSecurityProvider
func (*EnvSecurityProvider) GetSecurity ¶
func (esp *EnvSecurityProvider) GetSecurity() SecurityHolder
type ErrorDocument ¶
type ErrorDocument struct {
Key string `xml:"Key,omitempty"`
}
type Expiration ¶
type FSStatusType ¶
type FSStatusType string
const ( FSStatusEnabled FSStatusType = "Enabled" FSStatusDisabled FSStatusType = "Disabled" )
func ParseStringToFSStatusType ¶
func ParseStringToFSStatusType(value string) (ret FSStatusType)
type FilterRule ¶
type GetAttributeInput ¶
type GetAttributeInput struct { GetObjectMetadataInput RequestPayer string }
type GetAttributeOutput ¶
type GetAttributeOutput struct { GetObjectMetadataOutput Mode int }
type GetBucketAclOutput ¶
type GetBucketAclOutput struct { BaseModel AccessControlPolicy }
type GetBucketCorsOutput ¶
type GetBucketCorsOutput struct { BaseModel BucketCors }
type GetBucketFSStatusInput ¶
type GetBucketFSStatusInput struct {
GetBucketMetadataInput
}
type GetBucketFSStatusOutput ¶
type GetBucketFSStatusOutput struct { GetBucketMetadataOutput FSStatus FSStatusType }
type GetBucketLifecycleConfigurationOutput ¶
type GetBucketLifecycleConfigurationOutput struct { BaseModel BucketLifecyleConfiguration }
type GetBucketLocationOutput ¶
type GetBucketLocationOutput struct { BaseModel BucketLocation }
type GetBucketLoggingConfigurationOutput ¶
type GetBucketLoggingConfigurationOutput struct { BaseModel BucketLoggingStatus }
type GetBucketMetadataInput ¶
type GetBucketMetadataOutput ¶
type GetBucketMetadataOutput struct { BaseModel StorageClass StorageClassType Location string ObsVersion string AllowOrigin string AllowMethod string AllowHeader string MaxAgeSeconds int ExposeHeader string AvailableZone AvailableZoneType }
type GetBucketNotificationOutput ¶
type GetBucketNotificationOutput struct { BaseModel BucketNotification }
type GetBucketPolicyOutput ¶
type GetBucketQuotaOutput ¶
type GetBucketQuotaOutput struct { BaseModel BucketQuota }
type GetBucketStoragePolicyOutput ¶
type GetBucketStoragePolicyOutput struct { BaseModel BucketStoragePolicy }
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 RequestPayer string }
type GetObjectMetadataInput ¶
type GetObjectMetadataInput struct { ContextWrapper Bucket string Key string VersionId string Origin string RequestHeader string SseHeader ISseHeader RequestPayer string }
type GetObjectMetadataOutput ¶
type GetObjectMetadataOutput struct { BaseModel VersionId string WebsiteRedirectLocation string Expiration string Restore 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"` }
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 = "http://acs.amazonaws.com/groups/global/AllUsers" GroupAuthenticatedUsers GroupUriType = "http://acs.amazonaws.com/groups/global/AuthenticatedUsers" GroupLogDelivery GroupUriType = "http://acs.amazonaws.com/groups/s3/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 IFSClient ¶
type IFSClient interface { NewBucket(input *NewBucketInput) (output *BaseModel, err error) GetBucketFSStatus(input *GetBucketFSStatusInput) (output *GetBucketFSStatusOutput, err error) GetAttribute(input *GetAttributeInput) (output *GetAttributeOutput, err error) DropFile(input *DropFileInput) (output *DropFileOutput, err error) NewFolder(input *NewFolderInput) (output *NewFolderOutput, err error) NewFile(input *NewFileInput) (output *NewFileOutput, err error) RenameFile(input *RenameFileInput) (output *RenameFileOutput, err error) RenameFolder(input *RenameFolderInput) (output *RenameFolderOutput, err error) Close() }
type IReadCloser ¶
type IReadCloser interface {
// contains filtered or unexported methods
}
type IRepeatable ¶
type IRepeatable interface {
Reset() error
}
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 RequestPayer 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 RequestPayer 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 RequestPayer 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 ( ReplaceMetadataNew MetadataDirectiveType = "REPLACE_NEW" CopyMetadata MetadataDirectiveType = "COPY" ReplaceMetadata MetadataDirectiveType = "REPLACE" )
type NewBucketInput ¶
type NewBucketInput struct {
CreateBucketInput
}
type NewFileInput ¶
type NewFileInput struct { PutObjectInput RequestPayer string }
type NewFileOutput ¶
type NewFileOutput struct {
PutObjectOutput
}
type NewFolderInput ¶
type NewFolderInput struct { ObjectOperationInput RequestPayer string }
type NewFolderOutput ¶
type NewFolderOutput struct {
PutObjectOutput
}
type NoncurrentVersionTransition ¶
type NoncurrentVersionTransition struct { XMLName xml.Name `xml:"NoncurrentVersionTransition"` NoncurrentDays int `xml:"NoncurrentDays"` StorageClass StorageClassType `xml:"StorageClass"` }
type ObjectOperationInput ¶
type ObjectOperationInput struct { ContextWrapper Bucket string Key string ACL AclType StorageClass StorageClassType WebsiteRedirectLocation string SseHeader ISseHeader Metadata map[string]string RequestPayer string }
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) DropFile ¶
func (obsClient ObsClient) DropFile(input *DropFileInput) (output *DropFileOutput, err error)
func (ObsClient) GetAttribute ¶
func (obsClient ObsClient) GetAttribute(input *GetAttributeInput) (output *GetAttributeOutput, err error)
func (ObsClient) GetBucketAcl ¶
func (obsClient ObsClient) GetBucketAcl(bucketName string, extensions ...extensionOptions) (output *GetBucketAclOutput, err error)
func (ObsClient) GetBucketAclWithSignedUrl ¶
func (ObsClient) GetBucketCors ¶
func (obsClient ObsClient) GetBucketCors(bucketName string, extensions ...extensionOptions) (output *GetBucketCorsOutput, err error)
func (ObsClient) GetBucketCorsWithSignedUrl ¶
func (ObsClient) GetBucketFSStatus ¶
func (obsClient ObsClient) GetBucketFSStatus(input *GetBucketFSStatusInput) (output *GetBucketFSStatusOutput, err error)
func (ObsClient) GetBucketLifecycleConfiguration ¶
func (obsClient ObsClient) GetBucketLifecycleConfiguration(bucketName string, extensions ...extensionOptions) (output *GetBucketLifecycleConfigurationOutput, err error)
func (ObsClient) GetBucketLifecycleConfigurationWithSignedUrl ¶
func (ObsClient) GetBucketLocation ¶
func (obsClient ObsClient) GetBucketLocation(bucketName string, extensions ...extensionOptions) (output *GetBucketLocationOutput, err error)
func (ObsClient) GetBucketLocationWithSignedUrl ¶
func (ObsClient) GetBucketLoggingConfiguration ¶
func (obsClient ObsClient) GetBucketLoggingConfiguration(bucketName string, extensions ...extensionOptions) (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, extensions ...extensionOptions) (output *GetBucketNotificationOutput, err error)
func (ObsClient) GetBucketNotificationWithSignedUrl ¶
func (ObsClient) GetBucketPolicy ¶
func (obsClient ObsClient) GetBucketPolicy(bucketName string, extensions ...extensionOptions) (output *GetBucketPolicyOutput, err error)
func (ObsClient) GetBucketPolicyWithSignedUrl ¶
func (ObsClient) GetBucketQuota ¶
func (obsClient ObsClient) GetBucketQuota(bucketName string, extensions ...extensionOptions) (output *GetBucketQuotaOutput, err error)
func (ObsClient) GetBucketQuotaWithSignedUrl ¶
func (ObsClient) GetBucketStorageInfo ¶
func (obsClient ObsClient) GetBucketStorageInfo(bucketName string, extensions ...extensionOptions) (output *GetBucketStorageInfoOutput, err error)
func (ObsClient) GetBucketStorageInfoWithSignedUrl ¶
func (ObsClient) GetBucketStoragePolicy ¶
func (obsClient ObsClient) GetBucketStoragePolicy(bucketName string, extensions ...extensionOptions) (output *GetBucketStoragePolicyOutput, err error)
func (ObsClient) GetBucketStoragePolicyWithSignedUrl ¶
func (ObsClient) GetBucketTagging ¶
func (obsClient ObsClient) GetBucketTagging(bucketName string, extensions ...extensionOptions) (output *GetBucketTaggingOutput, err error)
func (ObsClient) GetBucketTaggingWithSignedUrl ¶
func (ObsClient) GetBucketVersioning ¶
func (obsClient ObsClient) GetBucketVersioning(bucketName string, extensions ...extensionOptions) (output *GetBucketVersioningOutput, err error)
func (ObsClient) GetBucketVersioningWithSignedUrl ¶
func (ObsClient) GetBucketWebsiteConfiguration ¶
func (obsClient ObsClient) GetBucketWebsiteConfiguration(bucketName string, extensions ...extensionOptions) (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) GetSecurity ¶
func (obsClient ObsClient) GetSecurity() SecurityHolder
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) NewBucket ¶
func (obsClient ObsClient) NewBucket(input *NewBucketInput) (output *BaseModel, err error)
func (ObsClient) NewFile ¶
func (obsClient ObsClient) NewFile(input *NewFileInput) (output *NewFileOutput, err error)
func (ObsClient) NewFolder ¶
func (obsClient ObsClient) NewFolder(input *NewFolderInput) (output *NewFolderOutput, err error)
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) RenameFile ¶
func (obsClient ObsClient) RenameFile(input *RenameFileInput) (output *RenameFileOutput, err error)
func (ObsClient) RenameFolder ¶
func (obsClient ObsClient) RenameFolder(input *RenameFolderInput) (output *RenameFolderOutput, err error)
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 RequestPayer string }
type PutObjectBasicInput ¶
type PutObjectBasicInput struct { ObjectOperationInput ContentType string ContentMD5 string ContentLength int64 RequestPayer string }
type PutObjectInput ¶
type PutObjectInput struct { PutObjectBasicInput Body io.Reader RequestPayer string }
type PutObjectOutput ¶
type PutObjectOutput struct { BaseModel VersionId string SseHeader ISseHeader StorageClass StorageClassType ETag string ObjectUrl 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 RenameFileInput ¶
type RenameFileInput struct { ContextWrapper Bucket string Key string NewObjectKey string RequestPayer string }
type RenameFileOutput ¶
type RenameFileOutput struct {
BaseModel
}
type RenameFolderInput ¶
type RenameFolderInput struct { ContextWrapper Bucket string Key string NewObjectKey string RequestPayer string }
type RenameFolderOutput ¶
type RenameFolderOutput struct {
BaseModel
}
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 SecurityHolder ¶
type SecurityProvider ¶
type SecurityProvider interface {
GetSecurity() SecurityHolder
}
type SetBucketAclInput ¶
type SetBucketAclInput struct { Bucket string `xml:"-"` ACL AclType `xml:"-"` AccessControlPolicy RequestPayer string }
type SetBucketCorsInput ¶
type SetBucketCorsInput struct { Bucket string `xml:"-"` BucketCors RequestPayer string }
type SetBucketLifecycleConfigurationInput ¶
type SetBucketLifecycleConfigurationInput struct { Bucket string `xml:"-"` BucketLifecyleConfiguration RequestPayer string }
type SetBucketLoggingConfigurationInput ¶
type SetBucketLoggingConfigurationInput struct { Bucket string `xml:"-"` BucketLoggingStatus RequestPayer string }
type SetBucketNotificationInput ¶
type SetBucketNotificationInput struct { Bucket string `xml:"-"` BucketNotification RequestPayer string }
type SetBucketPolicyInput ¶
type SetBucketQuotaInput ¶
type SetBucketQuotaInput struct { Bucket string `xml:"-"` BucketQuota RequestPayer string `xml:"-"` }
type SetBucketStoragePolicyInput ¶
type SetBucketStoragePolicyInput struct { Bucket string `xml:"-"` BucketStoragePolicy RequestPayer string `xml:"-"` }
type SetBucketTaggingInput ¶
type SetBucketTaggingInput struct { Bucket string `xml:"-"` BucketTagging RequestPayer string }
type SetBucketVersioningInput ¶
type SetBucketVersioningInput struct { Bucket string `xml:"-"` BucketVersioningConfiguration RequestPayer string `xml:"-"` }
type SetBucketWebsiteConfigurationInput ¶
type SetBucketWebsiteConfigurationInput struct { Bucket string `xml:"-"` BucketWebsiteConfiguration RequestPayer string }
type SetObjectAclInput ¶
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 RequestPayer 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" )
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 = "STANDARD_IA" StorageClassCold StorageClassType = "GLACIER" )
func ParseStringToStorageClassType ¶
func ParseStringToStorageClassType(value string) (ret StorageClassType)
type SubResourceType ¶
type SubResourceType string
const ( SubResourceStoragePolicy SubResourceType = "storagePolicy" 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" SubResourceRename SubResourceType = "rename" )
type TemporarySecurityHolder ¶
type TemporarySecurityHolder struct { SecurityHolder ExpireDate time.Time }
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.