Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IOpenGauss ¶
type IOpenGauss interface { AsyncBackup(backupPath, instanceName, backupMode string, threadsNum uint8, dbPort uint16) (string, error) ShowBackup(backupPath, instanceName, backupID string) (*model.Backup, error) Init(backupPath string) error AddInstance(backupPath, instance string) error DelInstance(backupPath, instance string) error DelBackup(backupPath, instance, backupID string) error Start() error Stop() error Status() (string, error) Restore(backupPath, instance, backupID string, threadsNum uint8) error ShowBackupList(backupPath, instanceName string) ([]*model.Backup, error) Auth(user, password, dbName string, dbPort uint16) error CheckSchema(user, password, dbName string, dbPort uint16, schema string) error MvTempToPgData() error MvPgDataToTemp() error CleanPgDataTemp() error }
var (
OG IOpenGauss
)
func NewOpenGauss ¶
func NewOpenGauss(shell, pgData string, log logging.ILog) IOpenGauss
Click to show internal directories.
Click to hide internal directories.