Documentation ¶
Index ¶
- func SignURL(originURL, privateKey string, uid uint64, validDuration time.Duration) (newURL string, err error)
- type Addition
- type Node
- type Pan123Link
- func (d *Pan123Link) Config() driver.Config
- func (d *Pan123Link) Drop(ctx context.Context) error
- func (d *Pan123Link) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Pan123Link) GetAddition() driver.Additional
- func (d *Pan123Link) Init(ctx context.Context) error
- func (d *Pan123Link) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Pan123Link) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
Node is a node in the folder tree
func BuildTree ¶
build tree from text, text structure definition: *
- FolderName:
- [FileSize:][Modified:]Url
*
- For example:
- folder1:
- name1:url1
- url2
- folder2:
- url3
- url4
- url5
- folder3:
- url6
- url7
- url8
if there are no name, use the last segment of url as name
func GetNodeFromRootByPath ¶
type Pan123Link ¶
func (*Pan123Link) Config ¶
func (d *Pan123Link) Config() driver.Config
func (*Pan123Link) GetAddition ¶
func (d *Pan123Link) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.