cmd

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App added in v1.0.10

func App() *cli.Command

func ExecRestoreCommand

func ExecRestoreCommand(walFileName, walFilePath string, opts *RestoreCommandOpts) error

func RestoreBaseBackup added in v1.0.16

func RestoreBaseBackup(ctx context.Context, cfg *config.Config, id, dest string) error

func RunBackupMode added in v1.0.18

func RunBackupMode(opts *BackupModeOpts)

func RunBaseBackup added in v1.0.16

func RunBaseBackup(opts *BaseBackupCmdOpts) error

func RunReceiveMode

func RunReceiveMode(opts *ReceiveModeOpts)

func RunServeMode

func RunServeMode(opts *ServeModeOpts)

Types

type BackupModeOpts added in v1.0.18

type BackupModeOpts struct {
	ReceiveDirectory string
	Verbose          bool
}

type BaseBackupCmdOpts added in v1.0.16

type BaseBackupCmdOpts struct {
	Directory string
}

type ReceiveModeOpts

type ReceiveModeOpts struct {
	ReceiveDirectory string
	Slot             string
	NoLoop           bool
	ListenPort       int
	Verbose          bool
}

type RestoreCommandOpts

type RestoreCommandOpts struct {
	Addr string
}

type ServeModeOpts

type ServeModeOpts struct {
	Directory  string
	ListenPort int
	Verbose    bool
}

Jump to

Keyboard shortcuts

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