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" // BarmanCloudBackupShow is the command name for 'barman-cloud-backup-show' BarmanCloudBackupShow = BarmanCloudBackup + "-show" // BarmanCloudRestore is the command name for 'barman-cloud-backup' BarmanCloudRestore = "barman-cloud-restore" // BarmanCloudBackupDelete is the command name for 'barman-cloud-backup-delete' BarmanCloudBackupDelete = BarmanCloudBackup + "-delete" // BarmanCloudBackupList is the command name for 'barman-cloud-backup-delete' BarmanCloudBackupList = BarmanCloudBackup + "-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 { Version *semver.Version HasAzure bool HasS3 bool HasGoogle bool HasRetentionPolicy bool HasTags bool HasCheckWalArchive bool HasSnappy bool HasErrorCodesForWALRestore bool HasErrorCodesForRestore bool HasAzureManagedIdentity bool // contains filtered or unexported fields }
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 (*Capabilities) ShouldExecuteBackupWithName ¶ added in v1.18.3
func (c *Capabilities) ShouldExecuteBackupWithName(cluster *apiv1.Cluster) bool
ShouldExecuteBackupWithName returns true if the new backup logic should be executed
Click to show internal directories.
Click to hide internal directories.