Documentation
¶
Index ¶
- type Uploader
- func (u *Uploader) Check() (bool, error)
- func (u *Uploader) CheckRcloneParams() []string
- func (u *Uploader) Clean(path *pathutils.Path) error
- func (u *Uploader) Copy(additionalRcloneParams []string) error
- func (u *Uploader) Dedupe(additionalRcloneParams []string) error
- func (u *Uploader) Move(serverSide bool, additionalRcloneParams []string) error
- func (u *Uploader) PerformCleans(gp *gorpool.Pool) error
- func (u *Uploader) RefreshHiddenPaths() error
- func (u *Uploader) RefreshLocalFiles() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uploader ¶
type Uploader struct {
// Public
Log *logrus.Entry
GlobalConfig *config.Configuration
Config *config.UploaderConfig
Name string
Checker checker.Interface
Cleaner cleaner.Interface
IncludePatterns []*regexp.Regexp
ExcludePatterns []*regexp.Regexp
RemoteServiceAccountFiles *rclone.ServiceAccountManager
LocalFiles []pathutils.Path
LocalFilesSize uint64
HiddenFiles []pathutils.Path
HiddenFolders []pathutils.Path
}
func New ¶
func New(config *config.Configuration, uploaderConfig *config.UploaderConfig, uploaderName string) (*Uploader, error)
func (*Uploader) CheckRcloneParams ¶
func (*Uploader) RefreshHiddenPaths ¶
func (*Uploader) RefreshLocalFiles ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.