feat(driver): add args to init and update func

refactor/fs
Noah Hsu 2022-06-06 22:54:03 +08:00
parent 492476dfe4
commit 79965ab4b3
1 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package driver
import (
"context"
"github.com/alist-org/alist/v3/internal/model"
)
type Driver interface {
@ -26,8 +27,9 @@ type Writer interface {
}
type Other interface {
Init(ctx context.Context) error
Update(ctx context.Context) error
Init(ctx context.Context, account model.Account) error
Update(ctx context.Context, account model.Account) error
Drop(ctx context.Context) error
Additional() Addition
// GetAccount transform additional field to string and assign to account's addition
GetAccount() model.Account
}