bareos.bsock.constants.Constants

class bareos.bsock.constants.Constants[source]

Bases: object

Constants used by Bareos.

Methods

get_description

Get a description text for a Bareos constant.

Attributes

BNET_BREAK

BNET_BTIME

BNET_CMD_BEGIN

BNET_CMD_FAILED

BNET_CMD_OK

BNET_END_RTREE

BNET_END_SELECT

BNET_EOD

BNET_EOD_POLL

BNET_ERROR_MSG

BNET_HB_RESPONSE

BNET_HEARTBEAT

BNET_INFO_MSG

BNET_INVALID_CMD

BNET_MAIN_PROMPT

BNET_MSGS_PENDING

BNET_POLL

BNET_RUN_CMD

BNET_SELECT_INPUT

BNET_START_RTREE

BNET_START_SELECT

BNET_STATUS

BNET_SUB_PROMPT

BNET_TERMINATE

BNET_TEXT_INPUT

BNET_WARNING_MSG

BNET_YESNO

BNET_xxxxxxPROMPT

group_separator

record_separator

record_separator_compat_regex

unit_separator

static get_description(code)[source]

Get a description text for a Bareos constant.

Parameters:

code (int) – Bareos BNET constant.

Returns:

Description for a Bareos BNET constant or None if no description exists.

Return type:

str