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) Readable() bool
- func (c *Client) Stat(ctx context.Context, p string) (o *model.SingleObject, err error)
Constants ¶
View Source
const ErrorCodeNotFound = "NoSuchKey"
ErrorCodeNotFound is the error code for key not found.
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 { BucketName string `yaml:"bucket_name"` Endpoint string `yaml:"endpoint"` Region string `yaml:"region"` AccessKeyID string `yaml:"access_key_id"` SecretAccessKey string `yaml:"secret_access_key"` DisableSSL bool `yaml:"disable_ssl"` UseAccelerate bool `yaml:"use_accelerate"` PathStyle bool `yaml:"path_style"` EnableListObjectsV2 bool `yaml:"enable_list_objects_v2"` Path string // contains filtered or unexported fields }
Client is the client to visit 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.