Documentation
¶
Index ¶
- Constants
- func AnyRemotesBanned(remotes []string) (bool, time.Time)
- 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 IncludeExcludeToFilters(includes []string, excludes []string) []string
- func Init(c *config.Configuration) error
- func Move(from string, to string, serviceAccounts []*RemoteServiceAccount, ...) (bool, int, error)
- func RmDir(remoteFilePath string) (bool, int, error)
- func Sync(from string, to string, serviceAccounts []*RemoteServiceAccount, ...) (bool, int, error)
- type RemoteInstruction
- type RemoteServiceAccount
- type RemoteServiceAccounts
- type ServiceAccountManager
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 IncludeExcludeToFilters ¶ added in v0.2.3
func Init ¶
func Init(c *config.Configuration) error
Types ¶
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) *ServiceAccountManager
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.