Documentation
¶
Index ¶
- type Deluge
- func (c *Deluge) AddFreeSpace(bytes int64)
- func (c *Deluge) CheckTorrentPause(ctx context.Context, t *config.Torrent) (bool, error)
- func (c *Deluge) Connect(ctx context.Context) error
- func (c *Deluge) GetCurrentFreeSpace(ctx context.Context, path string) (int64, error)
- func (c *Deluge) GetFreeSpace() float64
- func (c *Deluge) GetTorrents(ctx context.Context) (map[string]config.Torrent, error)
- func (c *Deluge) LabelPathMap() map[string]string
- func (c *Deluge) LoadLabelPathMap(context.Context) error
- func (c *Deluge) PauseTorrents(ctx context.Context, hashes []string) error
- func (c *Deluge) RemoveTorrent(ctx context.Context, torrent *config.Torrent, deleteData bool) (bool, error)
- func (c *Deluge) SetTorrentLabel(ctx context.Context, hash string, label string, hardlink bool) error
- func (c *Deluge) SetUploadLimit(ctx context.Context, hash string, limit int64) error
- func (c *Deluge) ShouldIgnore(ctx context.Context, t *config.Torrent) (bool, string, error)
- func (c *Deluge) ShouldRelabel(ctx context.Context, t *config.Torrent) (string, bool, error)
- func (c *Deluge) ShouldRemove(ctx context.Context, t *config.Torrent) (bool, error)
- func (c *Deluge) ShouldRemoveWithReason(ctx context.Context, t *config.Torrent) (bool, string, error)
- func (c *Deluge) Type() string
- type Interface
- type QBittorrent
- func (c *QBittorrent) AddFreeSpace(bytes int64)
- func (c *QBittorrent) AddTags(ctx context.Context, hash string, tags []string) error
- func (c *QBittorrent) CheckTorrentPause(ctx context.Context, t *config.Torrent) (bool, error)
- func (c *QBittorrent) Connect(context.Context) error
- func (c *QBittorrent) CreateTags(ctx context.Context, tags []string) error
- func (c *QBittorrent) DeleteTags(ctx context.Context, tags []string) error
- func (c *QBittorrent) GetCurrentFreeSpace(ctx context.Context, path string) (int64, error)
- func (c *QBittorrent) GetFreeSpace() float64
- func (c *QBittorrent) GetTorrents(ctx context.Context) (map[string]config.Torrent, error)
- func (c *QBittorrent) LabelPathMap() map[string]string
- func (c *QBittorrent) LoadLabelPathMap(ctx context.Context) error
- func (c *QBittorrent) PauseTorrents(ctx context.Context, hashes []string) error
- func (c *QBittorrent) RemoveTags(ctx context.Context, hash string, tags []string) error
- func (c *QBittorrent) RemoveTorrent(ctx context.Context, torrent *config.Torrent, deleteData bool) (bool, error)
- func (c *QBittorrent) SetTags(ctx context.Context, hash string, tags []string) error
- func (c *QBittorrent) SetTorrentLabel(ctx context.Context, hash string, label string, hardlink bool) error
- func (c *QBittorrent) SetUploadLimit(ctx context.Context, hash string, limit int64) error
- func (c *QBittorrent) ShouldIgnore(ctx context.Context, t *config.Torrent) (bool, string, error)
- func (c *QBittorrent) ShouldRelabel(ctx context.Context, t *config.Torrent) (string, bool, error)
- func (c *QBittorrent) ShouldRemove(ctx context.Context, t *config.Torrent) (bool, error)
- func (c *QBittorrent) ShouldRemoveWithReason(ctx context.Context, t *config.Torrent) (bool, string, error)
- func (c *QBittorrent) ShouldRetag(ctx context.Context, t *config.Torrent) (RetagInfo, error)
- func (c *QBittorrent) Type() string
- type RetagInfo
- type TagInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deluge ¶
type Deluge struct {
Host *string `validate:"required"`
Port *uint `validate:"required"`
Login *string `validate:"required"`
Password *string `validate:"required"`
V2 bool
// contains filtered or unexported fields
}
func (*Deluge) AddFreeSpace ¶
func (*Deluge) CheckTorrentPause ¶
func (*Deluge) GetCurrentFreeSpace ¶
func (*Deluge) GetFreeSpace ¶
func (*Deluge) GetTorrents ¶
func (*Deluge) LabelPathMap ¶
func (*Deluge) PauseTorrents ¶
func (*Deluge) RemoveTorrent ¶
func (*Deluge) SetTorrentLabel ¶
func (*Deluge) SetUploadLimit ¶
func (*Deluge) ShouldIgnore ¶
func (*Deluge) ShouldRelabel ¶
func (*Deluge) ShouldRemove ¶
func (*Deluge) ShouldRemoveWithReason ¶ added in v1.14.0
type Interface ¶
type Interface interface {
Type() string
Connect(ctx context.Context) error
GetTorrents(ctx context.Context) (map[string]config.Torrent, error)
RemoveTorrent(ctx context.Context, torrent *config.Torrent, deleteData bool) (bool, error)
SetTorrentLabel(ctx context.Context, hash string, label string, hardlink bool) error
GetCurrentFreeSpace(ctx context.Context, path string) (int64, error)
AddFreeSpace(int64)
GetFreeSpace() float64
LoadLabelPathMap(ctx context.Context) error
LabelPathMap() map[string]string
SetUploadLimit(ctx context.Context, hash string, limit int64) error
ShouldIgnore(ctx context.Context, t *config.Torrent) (bool, string, error)
ShouldRemove(ctx context.Context, t *config.Torrent) (bool, error)
ShouldRemoveWithReason(ctx context.Context, t *config.Torrent) (bool, string, error)
CheckTorrentPause(ctx context.Context, t *config.Torrent) (bool, error)
ShouldRelabel(ctx context.Context, t *config.Torrent) (string, bool, error)
PauseTorrents(ctx context.Context, hashes []string) error
}
func NewClient ¶
func NewClient(clientType string, clientName string, exp *expression.Expressions) (Interface, error)
func NewDeluge ¶
func NewDeluge(name string, exp *expression.Expressions) (Interface, error)
type QBittorrent ¶
type QBittorrent struct {
Url *string `validate:"required"`
User string
Password string
EnableAutoTmmAfterRelabel bool
CreateTagsUpfront bool `koanf:"create_tags_upfront"`
// contains filtered or unexported fields
}
func (*QBittorrent) AddFreeSpace ¶
func (c *QBittorrent) AddFreeSpace(bytes int64)
func (*QBittorrent) CheckTorrentPause ¶
func (*QBittorrent) CreateTags ¶
func (c *QBittorrent) CreateTags(ctx context.Context, tags []string) error
func (*QBittorrent) DeleteTags ¶
func (c *QBittorrent) DeleteTags(ctx context.Context, tags []string) error
func (*QBittorrent) GetCurrentFreeSpace ¶
func (*QBittorrent) GetFreeSpace ¶
func (c *QBittorrent) GetFreeSpace() float64
func (*QBittorrent) GetTorrents ¶
func (*QBittorrent) LabelPathMap ¶
func (c *QBittorrent) LabelPathMap() map[string]string
func (*QBittorrent) LoadLabelPathMap ¶
func (c *QBittorrent) LoadLabelPathMap(ctx context.Context) error
func (*QBittorrent) PauseTorrents ¶
func (c *QBittorrent) PauseTorrents(ctx context.Context, hashes []string) error
func (*QBittorrent) RemoveTags ¶
func (*QBittorrent) RemoveTorrent ¶
func (*QBittorrent) SetTorrentLabel ¶
func (*QBittorrent) SetUploadLimit ¶
func (*QBittorrent) ShouldIgnore ¶
func (*QBittorrent) ShouldRelabel ¶
func (*QBittorrent) ShouldRemove ¶
func (*QBittorrent) ShouldRemoveWithReason ¶ added in v1.14.0
func (*QBittorrent) ShouldRetag ¶
func (*QBittorrent) Type ¶
func (c *QBittorrent) Type() string
type TagInterface ¶
type TagInterface interface {
Interface
ShouldRetag(ctx context.Context, t *config.Torrent) (RetagInfo, error)
AddTags(ctx context.Context, hash string, tags []string) error
RemoveTags(ctx context.Context, hash string, tags []string) error
SetTags(ctx context.Context, hash string, tags []string) error
CreateTags(ctx context.Context, tags []string) error
DeleteTags(ctx context.Context, tags []string) error
}
func NewQBittorrent ¶
func NewQBittorrent(name string, exp *expression.Expressions) (TagInterface, error)
Click to show internal directories.
Click to hide internal directories.