Documentation
¶
Index ¶
- func DisplayQrcode(img []byte) error
- func DisposeQrcode()
- func LoadCookies() string
- func NewOperationLimiter(minMs, maxMs int) cloudfs.Limiter
- func SaveCookies(agent *elevengo.Agent)
- func SetOption(opt Option)
- type Agent
- func (ag *Agent) AddMagnetTask(magnets []string, cid string, savepath string)
- func (ag *Agent) AddRssUrlTask(url string)
- func (ag *Agent) ExecuteAllRssTask()
- func (ag *Agent) FileSystem() cloudfs.Driver
- func (ag *Agent) FileSystemWithOption(opt FileSystemOption) cloudfs.Driver
- func (ag *Agent) OfflineClear(num int) (err error)
- type FileSystem
- func (fs *FileSystem) Copy(_ context.Context, targetDirID, entryID string) error
- func (fs *FileSystem) Delete(_ context.Context, entryID string) error
- func (fs *FileSystem) List(ctx context.Context, dirID string) ([]cloudfs.Entry, error)
- func (fs *FileSystem) Lookup(ctx context.Context, parentID, name string) (cloudfs.Entry, error)
- func (fs *FileSystem) Mkdir(ctx context.Context, parentID, name string) (cloudfs.Entry, error)
- func (fs *FileSystem) Move(ctx context.Context, targetDirID, entryID string) (cloudfs.Entry, error)
- func (fs *FileSystem) Provider() string
- func (fs *FileSystem) Rename(ctx context.Context, entryID, newName string) (cloudfs.Entry, error)
- func (fs *FileSystem) Root(_ context.Context) (cloudfs.Entry, error)
- func (fs *FileSystem) Search(_ context.Context, dirID, keyword string, opts cloudfs.SearchOptions) ([]cloudfs.Entry, error)
- func (fs *FileSystem) Stat(ctx context.Context, entryID string) (cloudfs.Entry, error)
- type FileSystemOption
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayQrcode ¶
func DisposeQrcode ¶
func DisposeQrcode()
func LoadCookies ¶
func LoadCookies() string
func NewOperationLimiter ¶ added in v0.2.0
NewOperationLimiter builds a CooldownLimiter from millisecond bounds. Returns nil if both values are zero (no limiting).
func SaveCookies ¶
Types ¶
type Agent ¶
func NewAgentByConfig ¶
func NewAgentByQrcode ¶
func QrcodeLogin ¶
func (*Agent) AddMagnetTask ¶
func (*Agent) AddRssUrlTask ¶
func (*Agent) ExecuteAllRssTask ¶
func (ag *Agent) ExecuteAllRssTask()
func (*Agent) FileSystem ¶ added in v0.2.0
FileSystem returns a cloudfs.Driver for this agent using default options.
func (*Agent) FileSystemWithOption ¶ added in v0.2.0
func (ag *Agent) FileSystemWithOption(opt FileSystemOption) cloudfs.Driver
FileSystemWithOption returns a cloudfs.Driver configured with the given options.
func (*Agent) OfflineClear ¶ added in v0.1.4
type FileSystem ¶ added in v0.2.0
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶ added in v0.2.0
func NewFileSystem(agent *elevengo.Agent) *FileSystem
NewFileSystem creates a FileSystem with default options.
func NewFileSystemWithOption ¶ added in v0.2.0
func NewFileSystemWithOption(agent *elevengo.Agent, opt FileSystemOption) *FileSystem
NewFileSystemWithOption creates a FileSystem with the given options.
func (*FileSystem) Copy ¶ added in v0.2.0
func (fs *FileSystem) Copy(_ context.Context, targetDirID, entryID string) error
func (*FileSystem) Delete ¶ added in v0.2.0
func (fs *FileSystem) Delete(_ context.Context, entryID string) error
func (*FileSystem) Provider ¶ added in v0.2.0
func (fs *FileSystem) Provider() string
type FileSystemOption ¶ added in v0.2.0
type FileSystemOption struct {
// RootID overrides the logical root directory (default "0").
RootID string
// PageSize is a hint for list page size.
// Note: elevengo does not expose per-call page size control; this field is
// reserved for future use or a lower-level workaround.
PageSize int
// OperationLimiter is an optional rate limiter applied at the operation layer.
OperationLimiter cloudfs.Limiter
}
FileSystemOption holds provider-level configuration for FileSystem.
Click to show internal directories.
Click to hide internal directories.