capabilities

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package capabilities stores the definition of the type for Barman capabilities

Index

Constants

View Source
const (
	// BarmanCloudBackup is the command name for 'barman-cloud-backup'
	BarmanCloudBackup = "barman-cloud-backup"

	// BarmanCloudRestore is the command name for 'barman-cloud-backup'
	BarmanCloudRestore = "barman-cloud-restore"

	// BarmanCloudBackupDelete is the command name for 'barman-cloud-backup-delete'
	BarmanCloudBackupDelete = "barman-cloud-backup-delete"

	// BarmanCloudBackupList is the command name for 'barman-cloud-backup-delete'
	BarmanCloudBackupList = "barman-cloud-backup-list"

	// BarmanCloudWalArchive is the command name for 'barman-cloud-wal-archive'
	BarmanCloudWalArchive = "barman-cloud-wal-archive"

	// BarmanCloudWalRestore is the command name for 'barman-cloud-wal-archive'
	BarmanCloudWalRestore = "barman-cloud-wal-restore"

	// BarmanCloudCheckWalArchive is the command name for 'barman-cloud-check-wal-archive'
	BarmanCloudCheckWalArchive = "barman-cloud-check-wal-archive"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	HasAzure                   bool
	HasS3                      bool
	HasGoogle                  bool
	HasRetentionPolicy         bool
	HasTags                    bool
	HasCheckWalArchive         bool
	HasSnappy                  bool
	HasErrorCodesForWALRestore bool
	HasAzureManagedIdentity    bool
	Version                    *semver.Version
}

Capabilities collects a set of boolean values that shows the possible capabilities of Barman and the version

func CurrentCapabilities

func CurrentCapabilities() (*Capabilities, error)

CurrentCapabilities retrieves the capabilities of local barman installation, retrieving it from the cache if available.

func Detect

func Detect() (*Capabilities, error)

Detect barman-cloud executables presence and store the Capabilities of the barman-cloud version it finds

Jump to

Keyboard shortcuts

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