filepath

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSegPrefix

func GetSegPrefix(connectionPool *dbconn.DBConn) string

func IsValidTimestamp

func IsValidTimestamp(timestamp string) bool

* Restoring a future-dated backup is allowed (e.g. the backup was taken in a * different time zone that is ahead of the restore time zone), so only check * format, not whether the timestamp is earlier than the current time.

func ParseSegPrefix

func ParseSegPrefix(backupDir string) (string, error)

Types

type FilePathInfo

type FilePathInfo struct {
	PID                    int
	SegDirMap              map[int]string
	Timestamp              string
	UserSpecifiedBackupDir string
	UserSpecifiedSegPrefix string
}

func NewFilePathInfo

func NewFilePathInfo(c *cluster.Cluster, userSpecifiedBackupDir string, timestamp string, userSegPrefix string) FilePathInfo

func (*FilePathInfo) GetBackupFilePath

func (backupFPInfo *FilePathInfo) GetBackupFilePath(filetype string) string

func (*FilePathInfo) GetBackupHistoryFilePath

func (backupFPInfo *FilePathInfo) GetBackupHistoryFilePath() string

func (*FilePathInfo) GetBackupReportFilePath

func (backupFPInfo *FilePathInfo) GetBackupReportFilePath() string

func (*FilePathInfo) GetConfigFilePath

func (backupFPInfo *FilePathInfo) GetConfigFilePath() string

func (*FilePathInfo) GetDirForContent

func (backupFPInfo *FilePathInfo) GetDirForContent(contentID int) string

func (*FilePathInfo) GetErrorTablesDataFilePath

func (backupFPInfo *FilePathInfo) GetErrorTablesDataFilePath(restoreTimestamp string) string

func (*FilePathInfo) GetErrorTablesMetadataFilePath

func (backupFPInfo *FilePathInfo) GetErrorTablesMetadataFilePath(restoreTimestamp string) string

func (*FilePathInfo) GetHelperLogPath

func (backupFPInfo *FilePathInfo) GetHelperLogPath() string

func (*FilePathInfo) GetMetadataFilePath

func (backupFPInfo *FilePathInfo) GetMetadataFilePath() string

func (*FilePathInfo) GetPluginConfigPath

func (backupFPInfo *FilePathInfo) GetPluginConfigPath() string

func (*FilePathInfo) GetRestoreFilePath

func (backupFPInfo *FilePathInfo) GetRestoreFilePath(restoreTimestamp string, filetype string) string

func (*FilePathInfo) GetRestoreReportFilePath

func (backupFPInfo *FilePathInfo) GetRestoreReportFilePath(restoreTimestamp string) string

func (*FilePathInfo) GetSegmentHelperFilePath

func (backupFPInfo *FilePathInfo) GetSegmentHelperFilePath(contentID int, suffix string) string

func (*FilePathInfo) GetSegmentPipeFilePath

func (backupFPInfo *FilePathInfo) GetSegmentPipeFilePath(contentID int) string

func (*FilePathInfo) GetSegmentPipePathForCopyCommand

func (backupFPInfo *FilePathInfo) GetSegmentPipePathForCopyCommand() string

func (*FilePathInfo) GetSegmentTOCFilePath

func (backupFPInfo *FilePathInfo) GetSegmentTOCFilePath(contentID int) string

func (*FilePathInfo) GetStatisticsFilePath

func (backupFPInfo *FilePathInfo) GetStatisticsFilePath() string

func (*FilePathInfo) GetTOCFilePath

func (backupFPInfo *FilePathInfo) GetTOCFilePath() string

func (*FilePathInfo) GetTableBackupFilePath

func (backupFPInfo *FilePathInfo) GetTableBackupFilePath(contentID int, tableOid uint32, extension string, singleDataFile bool) string

func (*FilePathInfo) GetTableBackupFilePathForCopyCommand

func (backupFPInfo *FilePathInfo) GetTableBackupFilePathForCopyCommand(tableOid uint32, extension string, singleDataFile bool) string

func (*FilePathInfo) IsUserSpecifiedBackupDir

func (backupFPInfo *FilePathInfo) IsUserSpecifiedBackupDir() bool

Jump to

Keyboard shortcuts

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