Documentation
¶
Index ¶
- func Sign(req *http.Request, cred aliauth.Credential, bucket string, now time.Time) error
- type APIError
- type Client
- type Driver
- func (d *Driver) GetBuckets(ctx context.Context) ([]schema.Storage, error)
- func (d *Driver) ListObjects(ctx context.Context, buckets map[string]string) ([]schema.BucketResult, error)
- func (d *Driver) NewClient() (*Client, error)
- func (d *Driver) TotalObjects(ctx context.Context, buckets map[string]string) ([]schema.BucketResult, error)
- type ListBucketsResponse
- type ListObjectsResponse
- type OSSBucket
- type OSSObject
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.2.2
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListBuckets ¶ added in v0.2.2
func (*Client) ListObjectsV2 ¶ added in v0.2.2
type Driver ¶ added in v0.0.9
type Driver struct {
Cred aliauth.Credential
Region string
Client *Client
// contains filtered or unexported fields
}
func (*Driver) GetBuckets ¶ added in v0.0.9
func (*Driver) ListObjects ¶ added in v0.1.0
func (*Driver) TotalObjects ¶ added in v0.1.0
func (d *Driver) TotalObjects(ctx context.Context, buckets map[string]string) ([]schema.BucketResult, error)
Recommended:
./ossutil64 du oss://examplebucket/dir/ --block-size GB
Links:
https://help.aliyun.com/document_detail/129732.html https://github.com/aliyun/ossutil
type ListBucketsResponse ¶ added in v0.2.2
type ListObjectsResponse ¶ added in v0.2.2
type ListObjectsResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
Prefix string `xml:"Prefix"`
StartAfter string `xml:"StartAfter"`
ContinuationToken string `xml:"ContinuationToken"`
MaxKeys int `xml:"MaxKeys"`
Delimiter string `xml:"Delimiter"`
IsTruncated bool `xml:"IsTruncated"`
NextContinuationToken string `xml:"NextContinuationToken"`
Objects []OSSObject `xml:"Contents"`
}
type Option ¶ added in v0.2.2
type Option func(*Client)
func WithHTTPClient ¶ added in v0.2.2
func WithRetryPolicy ¶ added in v0.2.2
func WithRetryPolicy(policy api.RetryPolicy) Option
func WithServiceEndpoint ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.