pg

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrettyFlag = "pretty"
	JSONFlag   = "json"
	DetailFlag = "detail"
)
View Source
const (
	BackupMarkShortDescription = "Marks a backup permanent or impermanent"
	BackupMarkLongDescription  = `` /* 147-byte string literal not displayed */

	ImpermanentDescription = "Marks a backup impermanent"
	ImpermanentFlag        = "impermanent"
)
View Source
const (
	CatchupFetchShortDescription = "Fetches an incremental backup from storage"
	UseNewUnwrapDescription      = "Use the new implementation of catchup unwrap (beta)"
)
View Source
const (
	WalShowUsage            = "wal-show"
	WalShowShortDescription = "Show storage WAL segments info grouped by timelines."
	WalShowLongDescription  = "Show information such as missing segments for each timeline found in storage. " +
		"Optionally, show available backups for each timeline."
)
View Source
const (
	WalVerifyUsage            = "wal-verify"
	WalVerifyShortDescription = "Verify WAL storage folder. Available checks: integrity, timeline."
	WalVerifyLongDescription  = "Run a set of specified checks to ensure WAL storage health."
)
View Source
const UseSentinelTimeDescription = "Use backup creation time from sentinel for backups ordering."
View Source
const UseSentinelTimeFlag = "use-sentinel-time"
View Source
const WalFetchShortDescription = "Fetches a WAL file from storage"
View Source
const WalPrefetchShortDescription = `Used for prefetching process forking
and should not be called by user.`
View Source
const WalPushShortDescription = "Uploads a WAL file to storage"
View Source
const WalgShortDescription = "PostgreSQL backup tool"

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the PgCmd.

Types

type PostgresBackupObject added in v0.2.23

type PostgresBackupObject struct {
	storage.Object
	BackupName string
	// contains filtered or unexported fields
}

func (PostgresBackupObject) GetBackupName added in v0.2.23

func (o PostgresBackupObject) GetBackupName() string

func (PostgresBackupObject) GetBackupTime added in v0.2.23

func (o PostgresBackupObject) GetBackupTime() time.Time

func (PostgresBackupObject) GetBaseBackupName added in v0.2.23

func (o PostgresBackupObject) GetBaseBackupName() string

func (PostgresBackupObject) GetIncrementFromName added in v0.2.23

func (o PostgresBackupObject) GetIncrementFromName() string

func (PostgresBackupObject) IsFullBackup added in v0.2.23

func (o PostgresBackupObject) IsFullBackup() bool

Jump to

Keyboard shortcuts

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