Documentation ¶
Index ¶
- func AppendBackupParams(infoArr *[]LineInfo, paramsStr string)
- func ConstructEmailMessage(timestamp string, contactList string, reportFilePath string, utility string, ...) string
- func EmailReport(c *cluster.Cluster, timestamp string, reportFilePath string, utility string, ...)
- func EnsureBackupVersionCompatibility(backupVersion string, restoreVersion string)
- func EnsureDatabaseVersionCompatibility(backupGPDBVersion string, restoreGPDBVersion dbconn.GPDBVersion)
- func GetContacts(filename string, utility string) string
- func GetDurationInfo(timestamp string, endTime time.Time) (string, string, string)
- func ParseErrorMessage(errStr string) string
- func PrintObjectCounts(reportFile io.WriteCloser, objectCounts map[string]int)
- func WriteRestoreReportFile(reportFilename string, backupTimestamp string, startTimestamp string, ...)
- type ContactFile
- type EmailContact
- type LineInfo
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendBackupParams ¶
func ConstructEmailMessage ¶
func EmailReport ¶
func EnsureBackupVersionCompatibility ¶
* This function will not error out if the user has gprestore X.Y.Z * and gpbackup X.Y.Z+dev, when technically the uncommitted code changes * in the +dev version of gpbackup may have incompatibilities with the * committed version of gprestore. * * We assume this condition will never arise in practice, as gpbackup and * gprestore will be built with identical versions during development, and * users will never use a +dev version in production.
func EnsureDatabaseVersionCompatibility ¶
func EnsureDatabaseVersionCompatibility(backupGPDBVersion string, restoreGPDBVersion dbconn.GPDBVersion)
func GetContacts ¶
func GetDurationInfo ¶
func ParseErrorMessage ¶
func PrintObjectCounts ¶
func PrintObjectCounts(reportFile io.WriteCloser, objectCounts map[string]int)
Types ¶
type ContactFile ¶
type ContactFile struct {
Contacts map[string][]EmailContact
}
type EmailContact ¶
type Report ¶
type Report struct { BackupParamsString string DatabaseSize string history.BackupConfig }
* This struct holds information that will be printed to the report file * after a backup, as well as information printed to the configuration * file that we will want to read in for a restore.
func (*Report) ConstructBackupParamsString ¶
func (report *Report) ConstructBackupParamsString()
Click to show internal directories.
Click to hide internal directories.