Documentation ¶
Index ¶
- type Client
- func (c *Client) Deletable() bool
- func (c *Client) Delete(ctx context.Context, p string) (err error)
- func (c *Client) Fetch(ctx context.Context, p, url string) (err error)
- func (c *Client) Fetchable() bool
- func (c *Client) InitPart(ctx context.Context, p string, size int64) (uploadID string, partSize int64, partNumbers int, err error)
- 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) Partable() bool
- 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)
- func (c *Client) UploadPart(ctx context.Context, o *model.PartialObject, r io.Reader) (err error)
- func (c *Client) Writable() bool
- func (c *Client) Write(ctx context.Context, p string, _ int64, r io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the struct for POSIX file system endpoint.
func (*Client) InitPart ¶
func (c *Client) InitPart(ctx context.Context, p string, size int64) (uploadID string, partSize int64, partNumbers int, err error)
InitPart implement destination.InitPart
func (*Client) List ¶
func (c *Client) List(ctx context.Context, j *model.DirectoryObject, fn func(o model.Object)) (err error)
List implement source.List
func (*Client) ReadRange ¶
func (c *Client) ReadRange( ctx context.Context, p string, offset, size int64, ) (r io.Reader, err error)
ReadRange implement source.ReadRange
func (*Client) UploadPart ¶
UploadPart implement destination.UploadPart
Click to show internal directories.
Click to hide internal directories.