SCAutolib.enums

This module defines various enumeration classes used throughout the SCAutolib library. These enumerations provide a set of named constants, enhancing code readability, maintainability, and reducing the likelihood of errors by restricting values to a predefined set.

Classes

class CAType(value)[source]

Enumeration for the different types of Certificate Authorities (CAs) that SCAutolib can interact with or configure.

_member_type_

alias of str

class CardType(value)[source]

Enumeration for different types of smart cards supported by SCAutolib. This allows for clear categorization and differentiation in handling various card implementations within the library’s logic.

_member_type_

alias of str

class OSVersion(value)[source]

Enumeration for Linux operating system versions. This class provides a convenient way to represent and check different Linux distributions and their major versions numerically within SCAutolib’s logic.

_member_type_

alias of int

class ReturnCode(value)[source]

Enumeration for standardized return codes used throughout SCAutolib to indicate the outcome of operations. These codes provide a clear and consistent way to signal success or various types of failures.

class UserType(value)[source]

Enumeration for the types of users that can be managed and tested by SCAutolib. This distinguishes between local system users and users managed by an Identity Management (IdM) system like FreeIPA.

_member_type_

alias of str