Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) List(ctx context.Context, j *model.DirectoryObject, fn func(o model.Object)) (err error)
- func (c *Client) Name(ctx context.Context) (name string)
- func (c *Client) Reach(ctx context.Context, p string) (url string, err error)
- func (c *Client) Reachable() bool
- func (c *Client) Read(ctx context.Context, p string) (r io.Reader, err error)
- func (c *Client) ReadRange(ctx context.Context, p string, offset, size int64) (r io.Reader, err error)
- func (c *Client) Stat(ctx context.Context, p string) (o *model.SingleObject, err error)
Constants ¶
View Source
const ErrorCodeInvalidMarker = 640
ErrorCodeInvalidMarker is the error code returned when input marker is invalid. ref: https://developer.qiniu.com/kodo/api/3928/error-responses
View Source
const ErrorCodeNotFound = 612
ErrorCodeNotFound is the status code qiniu returned when object not found. ref: https://developer.qiniu.com/kodo/api/1308/stat
View Source
const MaxListFileLimit = 1000
MaxListFileLimit is the max limit for list objects.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BucketName string `yaml:"bucket_name"` AccessKey string `yaml:"access_key"` SecretKey string `yaml:"secret_key"` Domain string `yaml:"domain"` UseHTTPS bool `yaml:"use_https"` UseCdnDomains bool `yaml:"use_cdn_domains"` Path string // contains filtered or unexported fields }
Client is the client to visit aliyun oss service.
func (*Client) List ¶
func (c *Client) List(ctx context.Context, j *model.DirectoryObject, fn func(o model.Object)) (err error)
List implement source.List
Click to show internal directories.
Click to hide internal directories.