Documentation ¶
Index ¶
- type Client
- func (client *Client) DownloadFile(ctx context.Context, path string) (io.ReadCloser, error)
- func (client *Client) MaxSize() int64
- func (client *Client) RemoveFile(name string) error
- func (client *Client) URLFromPath(path string) string
- func (client *Client) UploadFile(ctx context.Context, name string, mimeType string, reader io.Reader, ...) 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) DownloadFile ¶
DownloadFile opens a file for download, using the same path format as the UploadFile function. Remember to Close it! The returned stream also has `ReaderAt` and `Seeker`, but those are impl. details.
func (*Client) RemoveFile ¶
RemoveFile removes a file from the space
func (*Client) URLFromPath ¶
URLFromPath gets the URL from the path returned by UploadFile
Click to show internal directories.
Click to hide internal directories.