capabilities

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	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 Detect

func Detect() (*Capabilities, error)

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

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

Jump to

Keyboard shortcuts

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