Documentation ¶
Index ¶
- type Addition
- type BaseResp
- type ChildrenResp
- type File
- type MediaTrack
- func (d *MediaTrack) Config() driver.Config
- func (d *MediaTrack) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *MediaTrack) Drop(ctx context.Context) error
- func (d *MediaTrack) GetAddition() driver.Additional
- func (d *MediaTrack) Init(ctx context.Context) error
- func (d *MediaTrack) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *MediaTrack) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *MediaTrack) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *MediaTrack) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *MediaTrack) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *MediaTrack) Remove(ctx context.Context, obj model.Obj) error
- func (d *MediaTrack) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type Object
- type UploadResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildrenResp ¶
type File ¶
type File struct { Category int `json:"category"` ChildAssets []interface{} `json:"childAssets"` CommentCount int `json:"comment_count"` CoverAsset interface{} `json:"cover_asset"` CoverAssetID string `json:"cover_asset_id"` CreatedAt time.Time `json:"created_at"` DeletedAt string `json:"deleted_at"` Description string `json:"description"` File *struct { Cover string `json:"cover"` Src string `json:"src"` } `json:"file"` //FileID string `json:"file_id"` ID string `json:"id"` Size string `json:"size"` Thumbnails []interface{} `json:"thumbnails"` Title string `json:"title"` UpdatedAt time.Time `json:"updated_at"` }
type MediaTrack ¶
func (*MediaTrack) Config ¶
func (d *MediaTrack) Config() driver.Config
func (*MediaTrack) GetAddition ¶
func (d *MediaTrack) GetAddition() driver.Additional
func (*MediaTrack) Put ¶
func (d *MediaTrack) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error
type UploadResp ¶
type UploadResp struct { Status string `json:"status"` Data struct { Credentials struct { TmpSecretID string `json:"TmpSecretId"` TmpSecretKey string `json:"TmpSecretKey"` Token string `json:"Token"` ExpiredTime int `json:"ExpiredTime"` Expiration time.Time `json:"Expiration"` StartTime int `json:"StartTime"` } `json:"credentials"` Object string `json:"object"` Bucket string `json:"bucket"` Region string `json:"region"` URL string `json:"url"` Size string `json:"size"` } `json:"data"` Path string `json:"path"` TraceID string `json:"trace_id"` RequestID string `json:"requestId"` }
Click to show internal directories.
Click to hide internal directories.