Documentation ¶
Index ¶
- Constants
- func AnyRemotesBanned(remotes []string) (bool, time.Time)
- func ConfigToEnv(section, name string) string
- func Copy(from string, to string, serviceAccounts []*RemoteServiceAccount, ...) (bool, int, error)
- func Dedupe(remotePath string, additionalRcloneParams []string) (bool, int, error)
- func DeleteFile(remoteFilePath string) (bool, int, error)
- func GetGlobalParams(gp GlobalParamType, name string) []string
- func IncludeExcludeToFilters(includes []string, excludes []string) []string
- func Init(c *config.Configuration) error
- func Move(from string, to string, serviceAccounts []*RemoteServiceAccount, ...) (bool, int, error)
- func RemoveServiceAccountsFromTempCache(serviceAccounts []*RemoteServiceAccount)
- func RmDir(remoteFilePath string) (bool, int, error)
- func Sync(from string, to string, serviceAccounts []*RemoteServiceAccount, ...) (bool, int, error)
- type GlobalParamType
- type RemoteInstruction
- type RemoteServiceAccount
- type RemoteServiceAccounts
- type ServiceAccountManager
- func (m *ServiceAccountManager) GetRandomServiceAccount(remotePath string) (string, error)
- func (m *ServiceAccountManager) GetServiceAccount(remotePaths ...string) ([]*RemoteServiceAccount, error)
- func (m *ServiceAccountManager) LoadServiceAccounts(remotePaths []string) error
- func (m *ServiceAccountManager) ServiceAccountsCount() int
Constants ¶
View Source
const ( CmdCopy string = "copy" CmdMove string = "move" CmdSync string = "sync" CmdDeleteFile string = "deletefile" CmdDeleteDir string = "rmdir" CmdDeleteDirs string = "rmdirs" CmdDedupe string = "dedupe" )
View Source
const ( ExitSuccess int = iota ExitSyntaxError ExitErrorUnknown ExitDirectoryNotFound ExitFileNotFound ExitTemporaryError ExitLessSeriousError ExitFatalError ExitTransferExceeded )
Variables ¶
This section is empty.
Functions ¶
func ConfigToEnv ¶ added in v0.4.0
credits: https://github.com/rclone/rclone/blob/master/fs/config.go
func GetGlobalParams ¶ added in v0.3.1
func GetGlobalParams(gp GlobalParamType, name string) []string
func IncludeExcludeToFilters ¶ added in v0.2.3
func Init ¶
func Init(c *config.Configuration) error
func RemoveServiceAccountsFromTempCache ¶ added in v0.4.0
func RemoveServiceAccountsFromTempCache(serviceAccounts []*RemoteServiceAccount)
Types ¶
type GlobalParamType ¶ added in v0.3.1
type GlobalParamType int
const ( GlobalCopyParams GlobalParamType = iota GlobalMoveParams GlobalMoveServerSideParams GlobalSyncParams GlobalDedupeParams )
type RemoteInstruction ¶
type RemoteServiceAccount ¶ added in v0.2.0
type RemoteServiceAccounts ¶ added in v0.2.0
type ServiceAccountManager ¶ added in v0.2.0
type ServiceAccountManager struct {
// contains filtered or unexported fields
}
func NewServiceAccountManager ¶ added in v0.2.0
func NewServiceAccountManager(serviceAccountFolders map[string][]string, parallelism int) *ServiceAccountManager
func (*ServiceAccountManager) GetRandomServiceAccount ¶ added in v0.4.0
func (m *ServiceAccountManager) GetRandomServiceAccount(remotePath string) (string, error)
func (*ServiceAccountManager) GetServiceAccount ¶ added in v0.2.0
func (m *ServiceAccountManager) GetServiceAccount(remotePaths ...string) ([]*RemoteServiceAccount, error)
func (*ServiceAccountManager) LoadServiceAccounts ¶ added in v0.2.0
func (m *ServiceAccountManager) LoadServiceAccounts(remotePaths []string) error
func (*ServiceAccountManager) ServiceAccountsCount ¶ added in v0.2.0
func (m *ServiceAccountManager) ServiceAccountsCount() int
Click to show internal directories.
Click to hide internal directories.