view

package
v0.0.0-...-136905e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupIn

type BackupIn struct {
	DBPort   uint16 `json:"db_port"`
	DBName   string `json:"db_name"`
	Username string `json:"username"`
	Password string `json:"password"`

	DnBackupPath string `json:"dn_backup_path"`
	DnThreadsNum uint8  `json:"dn_threads_num"`
	DnBackupMode string `json:"dn_backup_mode"`
	Instance     string `json:"instance"`
}

func (*BackupIn) Validate

func (in *BackupIn) Validate() error

type BackupInfo

type BackupInfo struct {
	ID        string `json:"dn_backup_id"`
	Path      string `json:"dn_backup_path"`
	Mode      string `json:"db_backup_mode"`
	Instance  string `json:"instance"`
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
	Status    string `json:"status"`
}

func NewBackupInfo

func NewBackupInfo(data *model.Backup, path, instance string) *BackupInfo

func NewBackupInfoList

func NewBackupInfoList(list []*model.Backup, path, instance string) []BackupInfo

type BackupOut

type BackupOut struct {
	ID string `json:"backup_id"`
}

type DeleteBackupIn

type DeleteBackupIn struct {
	DBPort   uint16 `json:"db_port"`
	DBName   string `json:"db_name"`
	Username string `json:"username"`
	Password string `json:"password"`

	DnBackupPath string `json:"dn_backup_path"`
	Instance     string `json:"instance"`
	BackupID     string `json:"backup_id"`
}

func (*DeleteBackupIn) Validate

func (in *DeleteBackupIn) Validate() error

nolint:dupl

type DiskSpaceIn

type DiskSpaceIn struct {
	// DiskPath is the path of the disk
	DiskPath string `json:"diskPath"`
}

func (*DiskSpaceIn) Validate

func (in *DiskSpaceIn) Validate() error

type HealthCheckIn

type HealthCheckIn struct {
	DBPort   uint16 `json:"db_port"`
	DBName   string `json:"db_name"`
	Username string `json:"username"`
	Password string `json:"password"`
	Schema   string `json:"schema"`
}

type RestoreIn

type RestoreIn struct {
	DBPort       uint16 `json:"db_port"`
	DBName       string `json:"db_name"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	Instance     string `json:"instance"`
	DnBackupPath string `json:"dn_backup_path"`
	DnBackupID   string `json:"dn_backup_id"`
	DnThreadsNum uint8  `json:"dn_threads_num"`
}

func (*RestoreIn) Validate

func (in *RestoreIn) Validate() error

type ShowIn

type ShowIn struct {
	DBPort       uint16 `json:"db_port"`
	DBName       string `json:"db_name"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	DnBackupID   string `json:"dn_backup_id"`
	DnBackupPath string `json:"dn_backup_path"`
	Instance     string `json:"instance"`
}

func (*ShowIn) Validate

func (in *ShowIn) Validate() error

type ShowListIn

type ShowListIn struct {
	DBPort       uint16 `json:"db_port"`
	DBName       string `json:"db_name"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	DnBackupPath string `json:"dn_backup_path"`
	Instance     string `json:"instance"`
}

func (*ShowListIn) Validate

func (in *ShowListIn) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL