Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { gorm.Model Name string `validate:"required"` Compress compress.Type `validate:"required"` Tag string `validate:"required"` Keystore string `validate:"required"` Namespace string `validate:"required"` BackupNameTemplate Template Timezone string LastExecutionTime time.Time ExecutionType ExecutionType `validate:"required,oneof=once cron rrule"` Cron string `validate:"required_if=ExecutionType cron"` Rrule string `validate:"required_if=ExecutionType rrule"` ExecutionTime time.Time `validate:"required_if=ExecutionType once"` }
func (*Backup) SetDefaults ¶
func (b *Backup) SetDefaults()
type Credential ¶
type Credential struct { gorm.DB Key string `validate:"required"` Username string Password string Host string Token string Database string KeyId string Secret string }
func (Credential) Validate ¶
func (c Credential) Validate() error
type ExecutionType ¶
type ExecutionType string
const ( OnceExecution ExecutionType = "once" CronExecution ExecutionType = "cron" RruleExecution ExecutionType = "rrule" )
func (ExecutionType) Validate ¶
func (et ExecutionType) Validate() error
type PendingSnapshot ¶
type SourceType ¶
type SourceType string
const ( PostgresType SourceType = "postgres" MySQLType SourceType = "mysql" OracleType SourceType = "oracle" SqliteType SourceType = "sqlite" FileType SourceType = "file" )
Click to show internal directories.
Click to hide internal directories.