pkg

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(shell, pgData string, log logging.ILog)

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

Directories

Path Synopsis
Package mock_pkg is a generated GoMock package.
Package mock_pkg is a generated GoMock package.

Jump to

Keyboard shortcuts

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