Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) List(ctx context.Context, j *model.Job, 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.ReadCloser, err error)
- func (c *Client) ReadAt(ctx context.Context, p string, start, end int64) (b []byte, err error)
- func (c *Client) Stat(ctx context.Context, p string) (o *model.Object, err error)
Constants ¶
View Source
const MaxKeys = 1000
MaxKeys is the max limit for list objects.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string `yaml:"endpoint"` BucketName string `yaml:"bucket_name"` AccessKeyID string `yaml:"access_key_id"` AccessKeySecret string `yaml:"access_key_secret"` Path string // contains filtered or unexported fields }
Client is the client to visit aliyun oss service.
Click to show internal directories.
Click to hide internal directories.