# Functions

AddHealthCheck adds a health check service to the gRPC server with the tag 'plugin-barman-cloud'.
GetRestoreCABundleEnv gets the enveronment variables to be used when custom Object Store CA is present.
IsWALFile check if the passed file name is a regular WAL file.
MergeEnv merges all the values inside incomingEnv into env.
MustSegmentFromName is analogous to SegmentFromName but panics if the segment name is invalid.
SegmentFromName retrieves the timeline, log ID and segment ID from the name of a xlog segment, and can also handle a full path or a simple file name.
WalSegmentsPerFile is the number of WAL Segments in a WAL File.

# Constants

BarmanBackupEndpointCACertificateFileName is the name of the file in which the barman endpoint CA certificate for backups is stored.
BarmanBackupEndpointCACertificateLocation is the location where the barman endpoint CA certificate is stored.
BarmanEndpointCACertificateFileName is the name of the file in which the barman endpoint CA certificate is stored.
BarmanRestoreEndpointCACertificateFileName is the name of the file in which the barman endpoint CA certificate for restores is stored.
CertificatesDir location to store the certificates.
DefaultWALSegmentSize is the default size of a single WAL file This must be a power of 2.
ScratchDataDirectory is the directory to be used for scratch data.
WALHexOctetRe is a regex to match 8 Hex characters.
WALSegmentNameRe is a regex to match the segment parent log file and segment id.
WALTimeLineRe is a regex to match the timeline in a WAL filename.

# Variables

ErrBadWALSegmentName is raised when parsing an invalid segment name.
ErrEndOfWALStreamReached is returned when end of WAL is detected in the cloud archive.
WALRe is the file segment name parser.
WALSegmentRe is the file segment name parser.

# Structs

Segment contains the information inside a WAL segment name.
WALServiceImplementation is the implementation of the WAL Service.