2022-04-20 14:14:18 +08:00
|
|
|
package plugins
|
2022-04-19 20:23:17 +08:00
|
|
|
|
|
|
|
type (
|
|
|
|
IdlePlugin struct {
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewIdlePlugin() *IdlePlugin {
|
|
|
|
return &IdlePlugin{
|
|
|
|
Name: "IdlePlugin",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *IdlePlugin) Start() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *IdlePlugin) UploadFilePrepareCallback(context *Context, params *UploadFilePrepareParams) (*UploadFilePrepareResult, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2022-04-21 16:53:08 +08:00
|
|
|
func (p *IdlePlugin) UploadFileFinishCallback(context *Context, params *UploadFileFinishParams) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-04-21 16:30:12 +08:00
|
|
|
func (p *IdlePlugin) DownloadFilePrepareCallback(context *Context, params *DownloadFilePrepareParams) (*DownloadFilePrepareResult, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2022-04-21 16:53:08 +08:00
|
|
|
func (p *IdlePlugin) DownloadFileFinishCallback(context *Context, params *DownloadFileFinishParams) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-06-14 21:05:40 +08:00
|
|
|
func (p *IdlePlugin) SyncScanLocalFilePrepareCallback(context *Context, params *SyncScanLocalFilePrepareParams) (*SyncScanLocalFilePrepareResult, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *IdlePlugin) SyncScanPanFilePrepareCallback(context *Context, params *SyncScanPanFilePrepareParams) (*SyncScanPanFilePrepareResult, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2022-10-10 11:35:40 +08:00
|
|
|
func (p *IdlePlugin) SyncFileFinishCallback(context *Context, params *SyncFileFinishParams) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-12-07 16:45:59 +08:00
|
|
|
func (p *IdlePlugin) UserTokenRefreshFinishCallback(context *Context, params *UserTokenRefreshFinishParams) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-04-19 20:23:17 +08:00
|
|
|
func (p *IdlePlugin) Stop() error {
|
|
|
|
return nil
|
|
|
|
}
|