2018-04-27 15:14:23 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
const defaultMaxTries = 3
|
|
|
|
|
|
|
|
var (
|
|
|
|
stopOnError bool
|
|
|
|
maxTries int
|
|
|
|
takeOverExistingChannel bool
|
|
|
|
refill int
|
|
|
|
limit int
|
2018-05-17 01:42:06 +02:00
|
|
|
skipSpaceCheck bool
|
2018-05-24 02:32:11 +02:00
|
|
|
syncUpdate bool
|
|
|
|
syncStatus string
|
2018-04-27 15:14:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
StatusPending = "pending" // waiting for permission to sync
|
|
|
|
StatusQueued = "queued" // in sync queue. will be synced soon
|
|
|
|
StatusSyncing = "syncing" // syncing now
|
|
|
|
StatusSynced = "synced" // done
|
2018-04-27 15:48:34 +02:00
|
|
|
StatusFailed = "failed"
|
2018-04-27 15:14:23 +02:00
|
|
|
)
|
|
|
|
|
2018-04-27 15:48:34 +02:00
|
|
|
var SyncStatuses = []string{StatusPending, StatusQueued, StatusSyncing, StatusSynced, StatusFailed}
|