Documentation ¶
Index ¶
- Constants
- func AllZero(s []byte) bool
- func CeilTimeUpToMicroseconds(timeToCeil time.Time) time.Time
- func ConcatByteSlices(a []byte, b []byte) []byte
- func FastCopy(dst io.Writer, src io.Reader) (int64, error)
- func GetFileExtension(filePath string) string
- func GetSubdirectoryRelativePath(subdirectoryPath string, directoryPath string) string
- func IsInDirectory(path, directoryPath string) bool
- func LoggedClose(c io.Closer, errmsg string)
- func Max(a, b int) int
- func Min(a, b int) int
- func NormalizePath(path string) string
- func PathsEqual(path1, path2 string) bool
- func ResolveSymlink(path string) string
- func SanitizePath(path string) string
- func SelectMatchingFiles(fileMask string, filePathsToFilter map[string]bool) (map[string]bool, error)
- func StripBackupName(path string) string
- func StripPrefixName(path string) string
- func StripWalFileName(path string) string
- func TimeNowCrossPlatformLocal() time.Time
- func TimeNowCrossPlatformUTC() time.Time
- func ToBytes(x interface{}) []byte
- func TrimFileExtension(filePath string) string
- func TryFetchTimeRFC3999(name string) (string, bool)
- type Empty
- type ForbiddenActionError
Constants ¶
View Source
const ( VersionStr = "005" BaseBackupPath = "basebackups_" + VersionStr + "/" WalPath = "wal_" + VersionStr + "/" BackupNamePrefix = "base_" // utility.SentinelSuffix is a suffix of backup finish sentinel file SentinelSuffix = "_backup_stop_sentinel.json" CompressedBlockMaxSize = 20 << 20 CopiedBlockMaxSize = CompressedBlockMaxSize MetadataFileName = "metadata.json" PathSeparator = string(os.PathSeparator) )
Variables ¶
This section is empty.
Functions ¶
func CeilTimeUpToMicroseconds ¶
This function is needed for being cross-platform
func ConcatByteSlices ¶
func GetFileExtension ¶
func GetSubdirectoryRelativePath ¶ added in v0.2.13
func IsInDirectory ¶ added in v0.2.13
func NormalizePath ¶ added in v0.2.13
func PathsEqual ¶ added in v0.2.13
func ResolveSymlink ¶
utility.ResolveSymlink converts path to physical if it is symlink
func SanitizePath ¶
func SelectMatchingFiles ¶
func StripBackupName ¶
func StripPrefixName ¶
func TimeNowCrossPlatformUTC ¶
func TrimFileExtension ¶
func TryFetchTimeRFC3999 ¶
Types ¶
type ForbiddenActionError ¶
type ForbiddenActionError struct {
// contains filtered or unexported fields
}
func NewForbiddenActionError ¶
func NewForbiddenActionError(message string) ForbiddenActionError
func (ForbiddenActionError) Error ¶
func (err ForbiddenActionError) Error() string
Click to show internal directories.
Click to hide internal directories.