Documentation
¶
Index ¶
- type AuthResponse
- type Client
- func (c *Client) CheckAuth(token string) (*AuthResponse, error)
- func (c *Client) FetchInfo() (*InfoResponse, error)
- func (c *Client) FetchUserAuth(username string, password string) (*UserAuthResponse, error)
- func (c *Client) GetInfo() (*GetInfoResponseBody, error)
- func (c *Client) GetRealPath(target string, token string) (string, error)
- func (c *Client) GetUrl(path string) string
- func (c *Client) Init(baseUrl string)
- func (c *Client) ReadDir(target string, token string) ([]ReadDirItem, error)
- type GetInfoResponseBody
- type GetRealPathResponseBody
- type InfoResponse
- type ReadDirItem
- type UserAuthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckAuth ¶
func (c *Client) CheckAuth(token string) (*AuthResponse, error)
CheckAuth get user info by token
func (*Client) FetchInfo ¶
func (c *Client) FetchInfo() (*InfoResponse, error)
FetchInfo get service info
func (*Client) FetchUserAuth ¶
func (c *Client) FetchUserAuth(username string, password string) (*UserAuthResponse, error)
FetchUserAuth fetch token with username and password
func (*Client) GetInfo ¶
func (c *Client) GetInfo() (*GetInfoResponseBody, error)
func (*Client) GetRealPath ¶
GetRealPath get realpath by youplus path
type GetInfoResponseBody ¶
type GetRealPathResponseBody ¶
type GetRealPathResponseBody struct {
Path string `json:"path"`
}
type InfoResponse ¶
type InfoResponse struct {
Success bool `json:"success"`
}
type ReadDirItem ¶
type UserAuthResponse ¶
Click to show internal directories.
Click to hide internal directories.