Backend

Schemas for the backend config.

class AuthSchema(cert_file=PosixPath('/etc/pki/consumer/cert.pem'), key_file=PosixPath('/etc/pki/consumer/key.pem'), verify_ssl=True)[source]

Internal schema that represents the authentication for clad.

cert_file

The path to the RHSM certificate file

Type:

Path

key_file

The path to the RHSM key file

Type:

Path

verify_ssl

Flag to indicate if the ssl verification is necessary.

Type:

bool

cert_file: Path = PosixPath('/etc/pki/consumer/cert.pem')
key_file: Path = PosixPath('/etc/pki/consumer/key.pem')
verify_ssl: bool = True
class BackendSchema(endpoint='https://0.0.0.0:8080', auth=<factory>, timeout=30, proxies=<factory>)[source]

This class represents the [backend] section of our config.toml file.

endpoint

The endpoint to communicate with.

Type:

str

proxies

Dictionary of proxies to route the request

Type:

dict[str, str]

auth

The authentication information

Type:

Union[dict, AuthSchema]

timeout

HTTP request timeout in seconds

Type:

int

auth: AuthSchema
endpoint: str = 'https://0.0.0.0:8080'
proxies: dict[str, str]
timeout: int = 30