Documentation ¶
Index ¶
- func New() driver.Driver
- type Addition
- type File
- type Files
- type Media
- type PikPak
- func (d *PikPak) Config() driver.Config
- func (d *PikPak) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *PikPak) Drop(ctx context.Context) error
- func (d *PikPak) GetAddition() driver.Additional
- func (d *PikPak) Init(ctx context.Context, storage model.Storage) error
- func (d *PikPak) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *PikPak) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *PikPak) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *PikPak) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *PikPak) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *PikPak) Remove(ctx context.Context, obj model.Obj) error
- func (d *PikPak) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type RespErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Media ¶
type Media struct { MediaId string `json:"media_id"` MediaName string `json:"media_name"` Video struct { Height int `json:"height"` Width int `json:"width"` Duration int `json:"duration"` BitRate int `json:"bit_rate"` FrameRate int `json:"frame_rate"` VideoCodec string `json:"video_codec"` AudioCodec string `json:"audio_codec"` VideoType string `json:"video_type"` } `json:"video"` Link struct { Url string `json:"url"` Token string `json:"token"` Expire time.Time `json:"expire"` } `json:"link"` NeedMoreQuota bool `json:"need_more_quota"` VipTypes []interface{} `json:"vip_types"` RedirectLink string `json:"redirect_link"` IconLink string `json:"icon_link"` IsDefault bool `json:"is_default"` Priority int `json:"priority"` IsOrigin bool `json:"is_origin"` ResolutionName string `json:"resolution_name"` IsVisible bool `json:"is_visible"` Category string `json:"category"` }
type PikPak ¶
func (*PikPak) GetAddition ¶
func (d *PikPak) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.