Documentation
¶
Index ¶
- type Bucket
- type BucketItem
- 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 ListBucketsOutput
- type ListObjectsV2Output
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
Name string `json:"Name"`
CreationDate string `json:"CreationDate"`
Location string `json:"Location"`
ExtranetEndpoint string `json:"ExtranetEndpoint"`
IntranetEndpoint string `json:"IntranetEndpoint"`
ProjectName string `json:"ProjectName"`
BucketType string `json:"BucketType"`
}
type BucketItem ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListBuckets ¶
func (*Client) ListObjectsV2 ¶
type Driver ¶
type Driver struct {
Cred auth.Credential
Region string
Client *Client
// contains filtered or unexported fields
}
func (*Driver) GetBuckets ¶
func (*Driver) ListObjects ¶
func (*Driver) TotalObjects ¶
type ListBucketsOutput ¶
type ListObjectsV2Output ¶
type ListObjectsV2Output struct {
Name string `json:"Name"`
Prefix string `json:"Prefix"`
MaxKeys int `json:"MaxKeys"`
Delimiter string `json:"Delimiter"`
EncodingType string `json:"EncodingType"`
IsTruncated bool `json:"IsTruncated"`
ContinuationToken string `json:"ContinuationToken"`
NextContinuationToken string `json:"NextContinuationToken"`
Contents []BucketItem `json:"Contents"`
}
Click to show internal directories.
Click to hide internal directories.