Documentation ¶
Index ¶
- Constants
- func New(options ...drivercommon.Option) (drivercommon.DriverPlugin, error)
- type Param
- type YiKe
- func (b *YiKe) CheckUrl(ctx context.Context, metaurl string) bool
- func (y *YiKe) CreateAlbum(ctx context.Context, name string) (*YiKeAlbum, error)
- func (y *YiKe) Delete(ctx context.Context, fileID ...int64) error
- func (y *YiKe) DeleteAlbum(ctx context.Context, album *YiKeAlbum, deletesource bool) error
- func (b *YiKe) Download(ctx context.Context, metaurl string) (data []byte, err error)
- func (b *YiKe) DownloadUsable() bool
- func (y *YiKe) GetAlbum(ctx context.Context, names ...string) (albumout []YiKeAlbum, err error)
- func (b *YiKe) IsLogin() bool
- func (y *YiKe) MaxSize() int
- func (*YiKe) Name() string
- func (b *YiKe) QrcodeLogin(ctx context.Context, show func(ctx context.Context, image image.Image) error) (cookie string, err error)
- func (b *YiKe) SetAuthorization(cookie string) error
- func (b *YiKe) SetOption(options ...drivercommon.Option) error
- func (b *YiKe) SpaceSize() drivercommon.SpaceSize
- func (*YiKe) SuperEncoder() []string
- func (b *YiKe) Upload(ctx context.Context, block []byte) (metaurl string, err error)
- func (b *YiKe) UploadUsable() bool
- type YiKeAlbum
- type YiKeAlbumCreate
- type YiKeAlbumList
- type YiKeError
- type YiKeFileData
- type YiKePrecreateResp
Constants ¶
View Source
const NAME = "yike"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options ...drivercommon.Option) (drivercommon.DriverPlugin, error)
Types ¶
type YiKe ¶
type YiKe struct {
// contains filtered or unexported fields
}
func (*YiKe) CreateAlbum ¶
创建相册
func (*YiKe) DeleteAlbum ¶
删除相册
func (*YiKe) DownloadUsable ¶
func (*YiKe) QrcodeLogin ¶
func (*YiKe) SetAuthorization ¶
func (*YiKe) SpaceSize ¶
func (b *YiKe) SpaceSize() drivercommon.SpaceSize
func (*YiKe) SuperEncoder ¶
func (*YiKe) UploadUsable ¶
type YiKeAlbumCreate ¶
type YiKeAlbumList ¶
type YiKeFileData ¶
type YiKeFileData struct { FsID int64 `json:"fs_id"` Size int64 `json:"size"` Md5 string `json:"md5"` ServerName string `json:"server_filename"` Path string `json:"path"` Ctime int64 `json:"ctime"` Mtime int64 `json:"mtime"` IsDir int `json:"isdir"` Category int `json:"category"` ServerMd5 string `json:"server_md5"` ShootTime int64 `json:"shoot_time"` }
type YiKePrecreateResp ¶
Click to show internal directories.
Click to hide internal directories.