Documentation
¶
Index ¶
- type Client
- func (s *Client) DeleteFile(name string) error
- func (s *Client) FetchToken(username, password string) error
- func (s *Client) FileDetail(name string) (*FileDetail, error)
- func (s *Client) ListDirectoryEntries() ([]*ListDirectoryResponseItem, error)
- func (s *Client) Request(meth, url string, body io.Reader) (*http.Request, error)
- func (s *Client) ShareFile(filename string) (*ShareFileResponse, error)
- func (s *Client) UploadFile(file string) ([]*UploadResponseItem, error)
- type FileDetail
- type ListDirectoryResponseItem
- type ShareFileResponse
- type TokenResponse
- type UploadResponseItem
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) DeleteFile ¶
func (*Client) FetchToken ¶
func (*Client) FileDetail ¶
func (s *Client) FileDetail(name string) (*FileDetail, error)
func (*Client) ListDirectoryEntries ¶
func (s *Client) ListDirectoryEntries() ([]*ListDirectoryResponseItem, error)
func (*Client) UploadFile ¶
func (s *Client) UploadFile(file string) ([]*UploadResponseItem, error)
UploadFile creates an upload link first and then posts a file to it.
type FileDetail ¶
type ShareFileResponse ¶
type ShareFileResponse struct {}
type TokenResponse ¶
type TokenResponse struct{ Token string }
type UploadResponseItem ¶
Click to show internal directories.
Click to hide internal directories.