Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + const CANNED_ACL_PRIVATE + const CANNED_ACL_PUBLIC_READ + const CANNED_ACL_PUBLIC_READ_WRITE + const ENCRYPTION_AES256 + const FETCH_MODE_ASYNC + const FETCH_MODE_SYNC + const METADATA_DIRECTIVE_COPY + const METADATA_DIRECTIVE_REPLACE + const RAW_CONTENT_TYPE + const RESTORE_TIER_EXPEDITED + const RESTORE_TIER_STANDARD + const STATUS_DISABLED + const STATUS_ENABLED + const STORAGE_CLASS_ARCHIVE + const STORAGE_CLASS_COLD + const STORAGE_CLASS_STANDARD + const STORAGE_CLASS_STANDARD_IA + const THRESHOLD_100_CONTINUE + var GET_OBJECT_ALLOWED_RESPONSE_HEADERS = map[string]struct + var VALID_RESTORE_TIER = map[string]int + var VALID_STORAGE_CLASS_TYPE = map[string]int + func AbortMultipartUpload(cli bce.Client, bucket, object, uploadId string) error + func DeleteBucket(cli bce.Client, bucket string) error + func DeleteBucketCopyrightProtection(cli bce.Client, bucket string) error + func DeleteBucketCors(cli bce.Client, bucket string) error + func DeleteBucketEncryption(cli bce.Client, bucket string) error + func DeleteBucketLifecycle(cli bce.Client, bucket string) error + func DeleteBucketLogging(cli bce.Client, bucket string) error + func DeleteBucketNotification(cli bce.Client, bucket string) error + func DeleteBucketReplication(cli bce.Client, bucket string) error + func DeleteBucketStaticWebsite(cli bce.Client, bucket string) error + func DeleteBucketTrash(cli bce.Client, bucket string) error + func DeleteObject(cli bce.Client, bucket, object string) error + func DeleteObjectAcl(cli bce.Client, bucket, object string) error + func GeneratePresignedUrl(conf *bce.BceClientConfiguration, signer auth.Signer, bucket, object string, ...) string + func GetBucketCopyrightProtection(cli bce.Client, bucket string) ([]string, error) + func GetBucketEncryption(cli bce.Client, bucket string) (string, error) + func GetBucketLocation(cli bce.Client, bucket string) (string, error) + func GetBucketStorageclass(cli bce.Client, bucket string) (string, error) + func HeadBucket(cli bce.Client, bucket string) error + func PutBucket(cli bce.Client, bucket string) (string, error) + func PutBucketAcl(cli bce.Client, bucket, cannedAcl string, aclBody *bce.Body) error + func PutBucketCopyrightProtection(cli bce.Client, bucket string, resources ...string) error + func PutBucketCors(cli bce.Client, bucket string, confBody *bce.Body) error + func PutBucketEncryption(cli bce.Client, bucket, algorithm string) error + func PutBucketLifecycle(cli bce.Client, bucket string, lifecycle *bce.Body) error + func PutBucketLogging(cli bce.Client, bucket string, logging *bce.Body) error + func PutBucketNotification(cli bce.Client, bucket string, ...) error + func PutBucketReplication(cli bce.Client, bucket string, replicationConf *bce.Body) error + func PutBucketStaticWebsite(cli bce.Client, bucket string, confBody *bce.Body) error + func PutBucketStorageclass(cli bce.Client, bucket, storageClass string) error + func PutBucketTrash(cli bce.Client, bucket string, trashReq PutBucketTrashReq) error + func PutObject(cli bce.Client, bucket, object string, body *bce.Body, args *PutObjectArgs) (string, error) + func PutObjectAcl(cli bce.Client, bucket, object, cannedAcl string, ...) error + func RestoreObject(cli bce.Client, bucket string, object string, args ArchiveRestoreArgs) error + func UploadPart(cli bce.Client, bucket, object, uploadId string, partNumber int, ...) (string, error) + type AclCondType struct + IpAddress []string + Referer AclRefererType + type AclOwnerType struct + Id string + type AclRefererType struct + StringEquals []string + StringLike []string + type AppendObjectArgs struct + CacheControl string + ContentCrc32 string + ContentDisposition string + ContentMD5 string + ContentSha256 string + ContentType string + Expires string + Offset int64 + StorageClass string + UserMeta map[string]string + type AppendObjectResult struct + ContentCrc32 string + ContentMD5 string + ETag string + NextAppendOffset int64 + func AppendObject(cli bce.Client, bucket, object string, content *bce.Body, ...) (*AppendObjectResult, error) + type ArchiveRestoreArgs struct + RestoreDays int + RestoreTier string + type BucketCORSType struct + AllowedExposeHeaders []string + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + MaxAgeSeconds int64 + type BucketEncryptionType struct + EncryptionAlgorithm string + type BucketReplicationDescriptor struct + Bucket string + StorageClass string + type BucketReplicationType struct + Destination *BucketReplicationDescriptor + Id string + ReplicateDeletes string + ReplicateHistory *BucketReplicationDescriptor + Resource []string + Status string + type BucketStaticWebsiteType struct + Index string + NotFound string + type BucketSummaryType struct + CreationDate string + Location string + Name string + type CommonMessage struct + Crc32 uint32 + Headers map[string]string + type CompleteMultipartUploadArgs struct + ContentCrc32 string + Parts []UploadInfoType + Process string + UserMeta map[string]string + type CompleteMultipartUploadResult struct + Bucket string + ContentCrc32 string + ETag string + Key string + Location string + func CompleteMultipartUpload(cli bce.Client, bucket, object, uploadId string, body *bce.Body, ...) (*CompleteMultipartUploadResult, error) + type ContinuationMessage struct + BytesReturned uint64 + BytesScanned uint64 + type CopyObjectArgs struct + IfMatch string + IfModifiedSince string + IfNoneMatch string + IfUnmodifiedSince string + MetadataDirective string + type CopyObjectResult struct + ETag string + LastModified string + func CopyObject(cli bce.Client, bucket, object, source string, args *CopyObjectArgs) (*CopyObjectResult, error) + func UploadPartCopy(cli bce.Client, bucket, object, source, uploadId string, partNumber int, ...) (*CopyObjectResult, error) + type CopyrightProtectionType struct + Resource []string + type DeleteMultipleObjectsArgs struct + Objects []DeleteObjectArgs + type DeleteMultipleObjectsResult struct + Errors []DeleteObjectResult + func DeleteMultipleObjects(cli bce.Client, bucket string, objectListStream *bce.Body) (*DeleteMultipleObjectsResult, error) + type DeleteObjectArgs struct + Key string + type DeleteObjectResult struct + Code string + Key string + Message string + type EndMessage struct + type FetchObjectArgs struct + FetchMode string + StorageClass string + type FetchObjectResult struct + Code string + JobId string + Message string + RequestId string + func FetchObject(cli bce.Client, bucket, object, source string, args *FetchObjectArgs) (*FetchObjectResult, error) + type GetBucketAclResult struct + AccessControlList []GrantType + Owner AclOwnerType + func GetBucketAcl(cli bce.Client, bucket string) (*GetBucketAclResult, error) + type GetBucketCorsResult struct + CorsConfiguration []BucketCORSType + func GetBucketCors(cli bce.Client, bucket string) (*GetBucketCorsResult, error) + type GetBucketLifecycleResult struct + Rule []LifecycleRuleType + func GetBucketLifecycle(cli bce.Client, bucket string) (*GetBucketLifecycleResult, error) + type GetBucketLoggingResult struct + Status string + TargetBucket string + TargetPrefix string + func GetBucketLogging(cli bce.Client, bucket string) (*GetBucketLoggingResult, error) + type GetBucketReplicationProgressResult struct + HistoryReplicationPercent float64 + LatestReplicationTime string + Status string + func GetBucketReplicationProgress(cli bce.Client, bucket string) (*GetBucketReplicationProgressResult, error) + type GetBucketReplicationResult BucketReplicationType + func GetBucketReplication(cli bce.Client, bucket string) (*GetBucketReplicationResult, error) + type GetBucketStaticWebsiteResult BucketStaticWebsiteType + func GetBucketStaticWebsite(cli bce.Client, bucket string) (*GetBucketStaticWebsiteResult, error) + type GetBucketTrashResult struct + TrashDir string + func GetBucketTrash(cli bce.Client, bucket string) (*GetBucketTrashResult, error) + type GetObjectAclResult ObjectAclType + func GetObjectAcl(cli bce.Client, bucket, object string) (*GetObjectAclResult, error) + type GetObjectMetaResult struct + func GetObjectMeta(cli bce.Client, bucket, object string) (*GetObjectMetaResult, error) + type GetObjectResult struct + Body io.ReadCloser + ContentLanguage string + func GetObject(cli bce.Client, bucket, object string, responseHeaders map[string]string, ...) (*GetObjectResult, error) + type GrantType struct + Condition AclCondType + Grantee []GranteeType + NotResource []string + Permission []string + Resource []string + type GranteeType struct + Id string + type InitiateMultipartUploadArgs struct + CacheControl string + ContentDisposition string + Expires string + StorageClass string + type InitiateMultipartUploadResult struct + Bucket string + Key string + UploadId string + func InitiateMultipartUpload(cli bce.Client, bucket, object, contentType string, ...) (*InitiateMultipartUploadResult, error) + type LifecycleActionType struct + Name string + StorageClass string + type LifecycleConditionTimeType struct + DateGreaterThan string + type LifecycleConditionType struct + Time LifecycleConditionTimeType + type LifecycleRuleType struct + Action LifecycleActionType + Condition LifecycleConditionType + Id string + Resource []string + Status string + type ListBucketsResult struct + Buckets []BucketSummaryType + Owner OwnerType + func ListBuckets(cli bce.Client) (*ListBucketsResult, error) + type ListMultipartUploadsArgs struct + Delimiter string + KeyMarker string + MaxUploads int + Prefix string + type ListMultipartUploadsResult struct + Bucket string + CommonPrefixes []PrefixType + Delimiter string + IsTruncated bool + KeyMarker string + MaxUploads int + NextKeyMarker string + Prefix string + Uploads []ListMultipartUploadsType + func ListMultipartUploads(cli bce.Client, bucket string, args *ListMultipartUploadsArgs) (*ListMultipartUploadsResult, error) + type ListMultipartUploadsType struct + Initiated string + Key string + Owner OwnerType + StorageClass string + UploadId string + type ListObjectsArgs struct + Delimiter string + Marker string + MaxKeys int + Prefix string + type ListObjectsResult struct + CommonPrefixes []PrefixType + Contents []ObjectSummaryType + Delimiter string + IsTruncated bool + Marker string + MaxKeys int + Name string + NextMarker string + Prefix string + func ListObjects(cli bce.Client, bucket string, args *ListObjectsArgs) (*ListObjectsResult, error) + type ListPartType struct + ETag string + LastModified string + PartNumber int + Size int + type ListPartsArgs struct + MaxParts int + PartNumberMarker string + type ListPartsResult struct + Bucket string + Initiated string + IsTruncated bool + Key string + MaxParts int + NextPartNumberMarker int + Owner OwnerType + PartNumberMarker int + Parts []ListPartType + StorageClass string + UploadId string + func ListParts(cli bce.Client, bucket, object, uploadId string, args *ListPartsArgs) (*ListPartsResult, error) + type LocationType struct + LocationConstraint string + type MultiCopyObjectArgs struct + StorageClass string + type ObjectAclType struct + AccessControlList []GrantType + type ObjectMeta struct + CacheControl string + ContentCrc32 string + ContentDisposition string + ContentEncoding string + ContentLength int64 + ContentMD5 string + ContentRange string + ContentSha256 string + ContentType string + ETag string + Expires string + LastModified string + NextAppendOffset string + ObjectType string + StorageClass string + UserMeta map[string]string + type ObjectSummaryType struct + ETag string + Key string + LastModified string + Owner OwnerType + Size int + StorageClass string + type OwnerType struct + DisplayName string + Id string + type PrefixType struct + Prefix string + type Prelude struct + HeadersLen uint32 + TotalLen uint32 + type PutBucketAclArgs struct + AccessControlList []GrantType + type PutBucketCorsArgs struct + CorsConfiguration []BucketCORSType + type PutBucketLifecycleArgs struct + Rule []LifecycleRuleType + type PutBucketLoggingArgs struct + TargetBucket string + TargetPrefix string + type PutBucketNotificationAppsSt struct + EventUrl string + Id string + XVars string + type PutBucketNotificationReq struct + Notifications []PutBucketNotificationSt + func GetBucketNotification(cli bce.Client, bucket string) (*PutBucketNotificationReq, error) + type PutBucketNotificationSt struct + AppId string + Apps []PutBucketNotificationAppsSt + Events []string + Id string + Name string + Resources []string + Status string + type PutBucketReplicationArgs BucketReplicationType + type PutBucketStaticWebsiteArgs BucketStaticWebsiteType + type PutBucketTrashReq struct + TrashDir string + type PutObjectAclArgs ObjectAclType + type PutObjectArgs struct + CacheControl string + ContentCrc32 string + ContentDisposition string + ContentLength int64 + ContentMD5 string + ContentSha256 string + ContentType string + Expires string + Process string + StorageClass string + UserMeta map[string]string + type RecordsMessage struct + Records []string + type SelectObjectArgs struct + SelectRequest *SelectObjectRequest + SelectType string + type SelectObjectInput struct + CompressionType string + CsvParams map[string]string + JsonParams map[string]string + type SelectObjectOutput struct + CsvParams map[string]string + JsonParams map[string]string + OutputHeader bool + type SelectObjectProgress struct + Enabled bool + type SelectObjectRequest struct + Expression string + ExpressionType string + InputSerialization *SelectObjectInput + OutputSerialization *SelectObjectOutput + RequestProgress *SelectObjectProgress + type SelectObjectResult struct + Body io.ReadCloser + func SelectObject(cli bce.Client, bucket, object string, args *SelectObjectArgs) (*SelectObjectResult, error) + type StorageClassType struct + StorageClass string + type UploadInfoType struct + ETag string + PartNumber int + type UploadPartArgs struct + ContentCrc32 string + ContentMD5 string + ContentSha256 string + type UploadPartCopyArgs struct + IfMatch string + IfModifiedSince string + IfNoneMatch string + IfUnmodifiedSince string + SourceRange string