Documentation
¶
Index ¶
- func BackupCmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyCreateCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyDeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyListCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyShowCmd(ch *cmdutil.Helper) *cobra.Command
- func PolicyUpdateCmd(ch *cmdutil.Helper) *cobra.Command
- func RestoreCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- type Backup
- type BackupPolicy
- type Backups
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PolicyCreateCmd ¶ added in v0.313.0
PolicyCreateCmd creates a backup policy.
func PolicyDeleteCmd ¶ added in v0.313.0
PolicyDeleteCmd deletes a backup policy.
func PolicyListCmd ¶ added in v0.313.0
PolicyListCmd lists backup policies for a database.
func PolicyShowCmd ¶ added in v0.313.0
PolicyShowCmd shows a single backup policy.
func PolicyUpdateCmd ¶ added in v0.313.0
PolicyUpdateCmd updates a backup policy.
Types ¶
type Backup ¶ added in v0.14.0
type Backup struct {
PublicID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
State string `header:"state" json:"state"`
Size int64 `header:"size" json:"size"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
StartedAt int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
CompletedAt int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
// contains filtered or unexported fields
}
func (*Backup) MarshalCSVValue ¶ added in v0.17.0
func (b *Backup) MarshalCSVValue() interface{}
func (*Backup) MarshalJSON ¶ added in v0.14.0
type BackupPolicy ¶ added in v0.313.0
type BackupPolicy struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
Target string `header:"target" json:"target"`
Retention string `header:"retention" json:"retention"`
Frequency string `header:"frequency" json:"frequency"`
ScheduleTime string `header:"schedule_time" json:"schedule_time"`
ScheduleDay string `header:"schedule_day" json:"schedule_day"`
ScheduleWeek string `header:"schedule_week" json:"schedule_week"`
Required bool `header:"required" json:"required"`
LastRanAt *int64 `header:"last_ran_at,timestamp(ms|utc|human)" json:"last_ran_at"`
NextRunAt *int64 `header:"next_run_at,timestamp(ms|utc|human)" json:"next_run_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
BackupPolicy is the human/JSON/CSV view of a backup policy.
func (*BackupPolicy) MarshalCSVValue ¶ added in v0.313.0
func (p *BackupPolicy) MarshalCSVValue() interface{}
func (*BackupPolicy) MarshalJSON ¶ added in v0.313.0
func (p *BackupPolicy) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.