Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, id string) error
- func (c *Client) Download(ctx context.Context, id string, filePath string) error
- func (c *Client) GetFile(ctx context.Context, id string) (resp *http.Response, err error)
- func (c *Client) GetUrl(id string) string
- func (c *Client) List(ctx context.Context) ([]string, error)
- func (c *Client) Upload(ctx context.Context, filePath string, metadata *map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Download ¶
Download fetches the file identified by ID to the local file path. filePath must not exist.
func (*Client) GetFile ¶ added in v1.18.0
Download fetches the file identified by ID to the local file path. filePath must not exist.
Click to show internal directories.
Click to hide internal directories.