Documentation
¶
Index ¶
- func Init(configFilePath string) error
- func ShowUsing()
- type BuildVars
- type Configuration
- type RcloneConfig
- type RcloneParams
- type RcloneServerSide
- type RuntimeConfig
- type SyncerConfig
- type SyncerRcloneParams
- type SyncerRemotes
- type UploaderCheck
- type UploaderConfig
- type UploaderHidden
- type UploaderRcloneParams
- type UploaderRemotes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildVars ¶
type BuildVars struct {
// Version
Version string
// Timestamp
Timestamp string
// Git commit
GitCommit string
}
BuildVars build details
type Configuration ¶
type Configuration struct {
Rclone RcloneConfig
Uploader []UploaderConfig
Syncer []SyncerConfig
}
var ( // Config exports the config object Config *Configuration )
type RcloneConfig ¶
type RcloneConfig struct {
Path string
Config string
Stats string
LiveRotate bool `mapstructure:"live_rotate"`
DryRun bool `mapstructure:"dry_run"`
ServiceAccountRemotes map[string][]string `mapstructure:"service_account_remotes"`
GlobalParams map[string]RcloneParams `mapstructure:"global_params"`
}
type RcloneParams ¶ added in v0.3.1
type RcloneServerSide ¶
type RuntimeConfig ¶
type SyncerConfig ¶
type SyncerConfig struct {
Name string
Enabled bool
SourceRemote string `mapstructure:"source_remote"`
Remotes SyncerRemotes
RcloneParams SyncerRcloneParams `mapstructure:"rclone_params"`
}
type SyncerRcloneParams ¶
type SyncerRcloneParams struct {
Copy []string
GlobalCopy string `mapstructure:"global_copy"`
Sync []string
GlobalSync string `mapstructure:"global_sync"`
MoveServerSide []string `mapstructure:"move_server_side"`
GlobalMoveServerSide string `mapstructure:"global_move_server_side"`
Dedupe []string
GlobalDedupe string `mapstructure:"global_dedupe"`
}
type SyncerRemotes ¶
type SyncerRemotes struct {
Copy []string
Sync []string
MoveServerSide []RcloneServerSide `mapstructure:"move_server_side"`
Dedupe []string
}
type UploaderCheck ¶
type UploaderConfig ¶
type UploaderConfig struct {
Name string
Enabled bool
Check UploaderCheck
Hidden UploaderHidden
LocalFolder string `mapstructure:"local_folder"`
Remotes UploaderRemotes
RcloneParams UploaderRcloneParams `mapstructure:"rclone_params"`
}
type UploaderHidden ¶
type UploaderRcloneParams ¶
type UploaderRcloneParams struct {
Copy []string
GlobalCopy string `mapstructure:"global_copy"`
Move []string
GlobalMove string `mapstructure:"global_move"`
MoveServerSide []string `mapstructure:"move_server_side"`
GlobalMoveServerSide string `mapstructure:"global_move_server_side"`
Dedupe []string
GlobalDedupe string `mapstructure:"global_dedupe"`
}
type UploaderRemotes ¶
type UploaderRemotes struct {
Clean []string
Copy []string
Move string
MoveServerSide []RcloneServerSide `mapstructure:"move_server_side"`
Dedupe []string
}
Click to show internal directories.
Click to hide internal directories.