Documentation ¶
Index ¶
- type Aliyun
- func (ali *Aliyun) AnonymousShare(shareID string) (*ShareInfoResp, error)
- func (ali *Aliyun) DownloadFile(downloadURL string) (io.ReadCloser, error)
- func (ali *Aliyun) DownloadURL(shareToken, shareID, fileID string) (string, error)
- func (ali *Aliyun) RefreshToken() string
- func (ali *Aliyun) Share(shareID, shareToken string) ([]ShareFile, error)
- func (ali *Aliyun) ShareToken(shareID, sharePwd string) (*ShareTokenResp, error)
- type ConfirmLoginResp
- type ErrorResp
- type QRCodeResp
- type QueryQRCodeResp
- type ShareFile
- type ShareFileListReq
- type ShareFileListResp
- type ShareInfoReq
- type ShareInfoResp
- type ShareItemInfo
- type ShareLinkDownloadURLReq
- type ShareLinkDownloadURLResp
- type ShareTokenReq
- type ShareTokenResp
- type TokenReq
- type TokenResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aliyun ¶
func (*Aliyun) AnonymousShare ¶
func (ali *Aliyun) AnonymousShare(shareID string) (*ShareInfoResp, error)
AnonymousShare will try to access the share without the user information.
func (*Aliyun) DownloadFile ¶
func (ali *Aliyun) DownloadFile(downloadURL string) (io.ReadCloser, error)
func (*Aliyun) DownloadURL ¶
func (*Aliyun) RefreshToken ¶ added in v0.9.3
RefreshToken can only be called after the New method.
func (*Aliyun) ShareToken ¶
func (ali *Aliyun) ShareToken(shareID, sharePwd string) (*ShareTokenResp, error)
type ConfirmLoginResp ¶ added in v0.9.3
type ConfirmLoginResp struct {
Goto string `json:"goto"`
}
type QRCodeResp ¶ added in v0.9.3
type QueryQRCodeResp ¶ added in v0.9.3
type QueryQRCodeResp struct { Content struct { Data struct { QrCodeStatus string `json:"qrCodeStatus"` ResultCode int `json:"resultCode"` LoginResult string `json:"loginResult"` LoginSucResultAction string `json:"loginSucResultAction"` BizAction struct { PdsLoginResult struct { Role string `json:"role"` IsFirstLogin bool `json:"isFirstLogin"` NeedLink bool `json:"needLink"` LoginType string `json:"loginType"` NickName string `json:"nickName"` NeedRpVerify bool `json:"needRpVerify"` Avatar string `json:"avatar"` AccessToken string `json:"accessToken"` UserName string `json:"userName"` UserID string `json:"userId"` DefaultDriveID string `json:"defaultDriveId"` ExistLink []interface{} `json:"existLink"` ExpiresIn int `json:"expiresIn"` ExpireTime time.Time `json:"expireTime"` RequestID string `json:"requestId"` DataPinSetup bool `json:"dataPinSetup"` State string `json:"state"` TokenType string `json:"tokenType"` DataPinSaved bool `json:"dataPinSaved"` RefreshToken string `json:"refreshToken"` Status string `json:"status"` } `json:"pds_login_result"` } `json:"-"` St string `json:"st"` LoginType string `json:"loginType"` BizExt string `json:"bizExt"` LoginScene string `json:"loginScene"` AppEntrance string `json:"appEntrance"` Smartlock bool `json:"smartlock"` } `json:"data"` } `json:"content"` }
type ShareFileListReq ¶
type ShareFileListReq struct {}
type ShareFileListResp ¶
type ShareFileListResp struct {}
type ShareInfoReq ¶
type ShareInfoReq struct {
}type ShareInfoResp ¶
type ShareInfoResp struct {}
type ShareItemInfo ¶
type ShareItemInfo struct {}
type ShareLinkDownloadURLReq ¶
type ShareLinkDownloadURLReq struct {}
type ShareLinkDownloadURLResp ¶
type ShareLinkDownloadURLResp struct {}
type ShareTokenReq ¶
type ShareTokenReq struct {}
type ShareTokenResp ¶
type ShareTokenResp struct {}
type TokenResp ¶
type TokenResp struct { DefaultSboxDriveID string `json:"default_sbox_drive_id"` Role string `json:"role"` DeviceID string `json:"device_id"` UserName string `json:"user_name"` NeedLink bool `json:"need_link"` ExpireTime time.Time `json:"expire_time"` PinSetup bool `json:"pin_setup"` NeedRpVerify bool `json:"need_rp_verify"` Avatar string `json:"avatar"` TokenType string `json:"token_type"` AccessToken string `json:"access_token"` DefaultDriveID string `json:"default_drive_id"` DomainID string `json:"domain_id"` RefreshToken string `json:"refresh_token"` IsFirstLogin bool `json:"is_first_login"` UserID string `json:"user_id"` NickName string `json:"nick_name"` State string `json:"state"` ExpiresIn int `json:"expires_in"` Status string `json:"status"` }
Click to show internal directories.
Click to hide internal directories.