Documentation
¶
Overview ¶
Package aliyun OSS API.
Index ¶
Constants ¶
View Source
const ( REGION_QINGDAO BucketRegion = "oss-cn-qingdao.aliyuncs.com" REGION_QINGDAO_INTERNAL = "oss-cn-qingdao-internal.aliyuncs.com" REGION_HANGZHOU = "oss-cn-hangzhou.aliyuncs.com" REGION_HANGZHOU_INTERNAL = "oss-cn-hangzhou-internal.aliyuncs.com" REGION_BEIJING = "oss-cn-beijing.aliyuncs.com" REGION_BEIJING_INTERNAL = "oss-cn-beijing-internal.aliyuncs.com" )
View Source
const ( ACL_PRIVATE ACL = "private" ACL_PUBLIC_R = "public-read" ACL_PUBLIC_RW = "public-read-write" )
View Source
const Version = "developing"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
*Client
// contains filtered or unexported fields
}
Holds OSS bucket informations
func NewBucket ¶
func NewBucket(name string, region BucketRegion, client *Client) *Bucket
Initialize a new OSS bucket with the given `name`, `region` and `*Client`.
Click to show internal directories.
Click to hide internal directories.