aliyun

package module
v0.0.0-...-d97d9df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2015 License: MIT Imports: 11 Imported by: 0

README

aliyun

aliyun api

Documentation

Index

Constants

View Source
const (
	L_QingDao          = "oss-cn-qingdao.aliyuncs.com"
	L_QingDaoInternal  = "oss-cn-qingdao-internal.aliyuncs.com"
	L_HangZhou         = "oss-cn-hangzhou.aliyuncs.com"
	L_HangZhouInternal = "oss-cn-hangzhou-internal.aliyuncs.com"
	L_Beijing          = "oss-cn-beijing.aliyuncs.com"
	L_BeijingInternal  = "oss-cn-beijing-internal.aliyuncs.com"
	ACL_Private        = "private"
	ACL_Public_RDONLY  = "public-read"
	ACL_Public_RDRW    = "public-read-write"
)
View Source
const Version = "developing..."

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name     string
	Location string
	*Client
}

func (*Bucket) DeleteObject

func (bucket *Bucket) DeleteObject(objectName string) error

func (*Bucket) PutObject

func (bucket *Bucket) PutObject(objectName, contentType string, content io.ReadSeeker, headers map[string]string) (err error)

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

func New

func New(accessID, accessSecret string) *Client

func (*Client) DeleteBucket

func (client *Client) DeleteBucket(bucketName, location string) (err error)

func (*Client) PutBucket

func (client *Client) PutBucket(bucketName, location, acl string) (bucket *Bucket, err error)

type ErrorXML

type ErrorXML struct {
	XMLName xml.Name `xml:"Error"`
	Code    string   `xml:"Code"`
	Message string   `xml:"Message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL