Documentation
¶
Index ¶
- Constants
- func Login(ctx context.Context, host string, data LoginReq, opts ...LoginOpt) (string, error)
- type AlistResp
- type Client
- func (c *Client) FsGet(fSGetReq FsGetReq) (*fsGetResp, error)
- func (c *Client) FsList(fSListReq FsListReq) (*fsListResp, error)
- func (c *Client) FsMkdir(fSMkdirReq FsMkdirReq) error
- func (c *Client) FsOther(fSOtherReq FsOtherReq) (*fsOtherResp, error)
- func (c *Client) FsRemove(fSRemoveReq FsRemoveReq) error
- func (c *Client) FsRename(fSRenameReq FsRenameReq) error
- func (c *Client) Login(data LoginReq, opts ...LoginOpt) error
- func (c *Client) Me() (*meResp, error)
- func (c *Client) NewRequest(method, relative string, data any) (req *http.Request, err error)
- func (c *Client) SetToken(token string)
- type ClientConfig
- type FsGetReq
- type FsGetResp
- type FsListReq
- type FsListResp
- type FsMkdirReq
- type FsMkdirResp
- type FsOtherReq
- type FsOtherResp
- type FsRemoveReq
- type FsRemoveResp
- type FsRenameReq
- type FsRenameResp
- type LoginOpt
- type LoginOptions
- type LoginReq
- type LoginResp
- type MeResp
Constants ¶
View Source
const (
FsOtherReqMethodVideoPreview = "video_preview"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FsMkdir ¶
func (c *Client) FsMkdir(fSMkdirReq FsMkdirReq) error
func (*Client) FsOther ¶
func (c *Client) FsOther(fSOtherReq FsOtherReq) (*fsOtherResp, error)
func (*Client) FsRemove ¶
func (c *Client) FsRemove(fSRemoveReq FsRemoveReq) error
func (*Client) FsRename ¶
func (c *Client) FsRename(fSRenameReq FsRenameReq) error
func (*Client) NewRequest ¶
type ClientConfig ¶
type ClientConfig func(*Client)
func WithContext ¶
func WithContext(ctx context.Context) ClientConfig
func WithHttpClient ¶
func WithHttpClient(httpClient *http.Client) ClientConfig
type FsListResp ¶
type FsListResp = AlistResp[fsListResp]
type FsMkdirReq ¶
type FsMkdirReq struct {
Path string `json:"path"`
}
type FsMkdirResp ¶
type FsOtherReq ¶
type FsOtherResp ¶
type FsOtherResp = AlistResp[fsOtherResp]
type FsRemoveReq ¶
type FsRemoveResp ¶
type FsRenameReq ¶
type FsRenameResp ¶
type LoginOptions ¶
type LoginOptions struct {
Hashed bool
}
Click to show internal directories.
Click to hide internal directories.