Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { ID int64 `json:"-"` Name string `json:"name"` Source SourceInfo `json:"source"` Destination DestinationInfo `json:"destination"` CronExpression string `json:"cronExpr"` StartedAt time.Time `json:"-"` CallbackURL string `json:"callbackUrl"` DeleteLocal *bool `json:"deleteLocal"` Job *gocron.Job `json:"-"` }
func (*Backup) CreateFunc ¶
func (b *Backup) CreateFunc() func()
type DestinationFTPInfo ¶
type DestinationInfo ¶
type DestinationInfo struct { Type string `json:"type"` DeleteAfterUpload *bool `json:"deleteAfterUpload"` Info interface{} `json:"info"` Result DestinationResult `json:"-"` }
type DestinationResult ¶
type DestinationSFTPInfo ¶
type DestinationSFTPInfo struct { Host string `json:"host"` Port int `json:"port"` User string `json:"user"` Pass string `json:"pass"` PrivateKeyFile string `json:"privateKeyFile"` Passphrase string `json:"passphrase"` Target string `json:"target"` LimitByDate *string `json:"limitByDate"` LimitByCount *int `json:"limitByCount"` LimitBySize *int64 `json:"limitBySize"` }
type DestinationTelegramInfo ¶ added in v0.0.9
type SourceFTPInfo ¶
type SourceInfo ¶
type SourceInfo struct { Type string `json:"type"` Info interface{} `json:"info"` }
type SourceSFTPInfo ¶
type SourceSFTPInfo struct { Host string `json:"host"` Port int `json:"port"` User string `json:"user"` Pass string `json:"pass"` Variables *map[string]interface{} `json:"variables"` BeforeCommands []string `json:"beforeCommands"` Downloads []string `json:"downloads"` AfterCommands []string `json:"afterCommands"` PrivateKeyFile string `json:"privateKeyFile"` Passphrase string `json:"passphrase"` }
Click to show internal directories.
Click to hide internal directories.