Documentation ¶
Index ¶
- type Bucket
- func (b *Bucket) DeleteObject(filenames []string) ([]string, error)
- func (b *Bucket) GetObjectACL(objectKey string) ([]obs.Grant, error)
- func (b *Bucket) GetObjectMeta(objectName string) (map[string][]string, error)
- func (b *Bucket) GetObjectToFile(objectKey string, filePath string) error
- func (b *Bucket) IsObjectExist(filename string) (bool, error)
- func (b *Bucket) PutObjectFromBytes(from []byte, to string) error
- func (b *Bucket) PutObjectFromFile(from string, to string) error
- func (b *Bucket) PutObjectFromFileName(from string, to string) error
- func (b *Bucket) SetObjectACL(objectKey string, _type []obs.Grant) error
- type BucketInfo
- type ObsProgressListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket 存储桶
func CreateOSSBucket ¶
CreateOSSBucket 获取OSS对象存储桶
func (*Bucket) DeleteObject ¶
DeleteObject 删除文件
func (*Bucket) GetObjectACL ¶
GetObjectACL 获取文件的访问权限
func (*Bucket) GetObjectMeta ¶
GetObjectMeta 获取文件元信息
func (*Bucket) GetObjectToFile ¶
GetObjectToFile 下载到本地文件
func (*Bucket) IsObjectExist ¶
IsObjectExist 判断文件是否存在
func (*Bucket) PutObjectFromBytes ¶
PutObjectFromReader 上传文件流
func (*Bucket) PutObjectFromFile ¶
PutObjectFromFile 上传文件流
func (*Bucket) PutObjectFromFileName ¶
PutObjectFromFileName 上传本地文件
type BucketInfo ¶
type BucketInfo struct { Name string `xml:"Name"` // 桶名 Location string `xml:"Location"` // Bucket所在的地域 CreationDate time.Time `xml:"CreationDate"` // Bucket的创建时间,格式为UTC时间 ExtranetEndpoint string `xml:"ExtranetEndpoint"` // Bucket的外网域名 IntranetEndpoint string `xml:"IntranetEndpoint"` // 同地域ECS访问Bucket的内网域名 ACL string `xml:"AccessControlList>Grant"` // Bucket读写权限(ACL)信息的容器 RedundancyType string `xml:"DataRedundancyType"` // Bucket的数据容灾类型 StorageClass string `xml:"StorageClass"` // Bucket的存储类型 Versioning string `xml:"Versioning"` // Bucket的版本控制状态。有效值:Enabled、Suspended TransferAcceleration string `xml:"TransferAcceleration"` // 显示Bucket的传输加速状态。有效值:Enabled、Disabled CrossRegionReplication string `xml:"CrossRegionReplication"` // 显示Bucket的跨区域复制状态。有效值:Enabled、Disabled }
BucketInfo 存储桶的信息
type ObsProgressListener ¶
type ObsProgressListener struct { }
定义进度条监听器。
func (*ObsProgressListener) ProgressChanged ¶
func (listener *ObsProgressListener) ProgressChanged(event *obs.ProgressEvent)
定义进度变更事件处理函数。
Click to show internal directories.
Click to hide internal directories.