service

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name         string
	CreationDate string
	Location     string
}

Bucket is a Bucket object

type Buckets

type Buckets struct {
	Bucket []Bucket
}

Buckets is a Bucket list for xml

type BucketsInfo

type BucketsInfo struct {
	XMLName     xml.Name `xml:"ListAllMyBucketsResult"`
	Prefix      string   `xml:"Prefix"`
	Marker      string   `xml:"Marker"`
	MaxKeys     int      `xml:"MaxKeys"`
	IsTruncated bool     `xml:"IsTruncated"`
	NextMarker  string   `xml:"NextMarker"`
	Owner       Owner    `xml:"Owner"`
	Buckets     Buckets  `xml:"Buckets"`
}

BucketsInfo descripton all buckets' information

func QueryBuckets

func QueryBuckets(prefix, marker string, maxKeys int) (bucketsInfo *BucketsInfo, ossapiError *ossapi.Error)

QueryBuckets will list bucket of a account buckets with prefix will be return if prefix is not "" marker mark the split for return at moste maxKeys will return ,default is 100 @param prefix: bucket's prefix @param marker : marker after it will be return @param maxKeys : at most maxKeys will be return @return bucketsInfo : buckets' info @return ossapiError : nil on success

func QueryBucketsDefault

func QueryBucketsDefault() (bucketsInfo *BucketsInfo, err *ossapi.Error)

QueryBucketsDefault list all buckets with no prefix ,no marker and maxkeys to 100

type Owner

type Owner struct {
	ID          string
	DisplayName string
}

Owner descript Owner information

Jump to

Keyboard shortcuts

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