Interactively create a new basic configuration file.
| Function | build |
Build a new user configuration file interactively. If the zookeeper host, port, and root path are provided, the configuration will be stored in the ZooKeeper service instead of a local file. |
| Variable | config |
The configuration parser to use for creating the configuration file. |
| Variable | console |
The console to use for printing messages. |
| Variable | cse |
The selected CSE environment. This is used to determine which features to enable and which default values to use for the configuration file. |
| Variable | current |
The current step in the onboarding process. This is used to update the progress bar. |
| Variable | progress |
The progress bar to use for showing the progress of the onboarding process. |
| Variable | total |
The total number of steps in the onboarding process. This is used to calculate the progress bar. |
| Function | _contains |
Check if the value contains an interpolation variable. |
| Function | _increment |
Increment the current step and update the progress bar. |
| Function | _optimize |
Remove default values from the configuration to optimize it. This is done to reduce the size of the configuration file and to make it easier to read. |
| Function | _print |
Print a message to the console. |
| Function | _print |
Print a header with the given title. |
| Function | _print |
Print a header with the given title and extras, and update the progress bar. |
| Function | _set |
Set an option in the configuration if it is not already set, and return the value to use for the option. If the value is None, return None. |
| Variable | _ini |
Default values for the configuration file. |
| Variable | _interpolation |
Regular expression to match interpolation variables. |
str | None, zkConfiguration: tuple[ str, int, str | None] | None = None, overwrite: bool = False) -> tuple[ bool, str | None, str | None]:
¶
Build a new user configuration file interactively. If the zookeeper host, port, and root path are provided, the configuration will be stored in the ZooKeeper service instead of a local file.
| Parameters | |
configstr | None | The configuration file to create. |
zktuple[ | A tuple containing the ZooKeeper host, port, and root path. |
overwrite:bool | If True, overwrite the configuration or configuration file if it already exists. |
| Returns | |
| A tuple with three elements |
|
The selected CSE environment. This is used to determine which features to enable and which default values to use for the configuration file.
Check if the value contains an interpolation variable.
| Parameters | |
value:str | The value to check. |
| Returns | |
bool | True if the value contains an interpolation variable, False otherwise. |
Remove default values from the configuration to optimize it. This is done to reduce the size of the configuration file and to make it easier to read.
Print a message to the console.
| Parameters | |
msg:str | Rule | Syntax | The message to print. Could be a string, a Rule, or a Syntax object. |
clearbool | None | If True, clear the console before printing the message. |
Print a header with the given title and extras, and update the progress bar.
| Parameters | |
title:str | The title to print. |
extras:str | None | Additional information to print. |
ACMEConfiguration.ACMEConfiguration, section: str, option: str, value: str, toLower: bool | None = False) -> str:
¶
Set an option in the configuration if it is not already set, and return the value to use for the option. If the value is None, return None.
| Parameters | |
config:ACMEConfiguration.ACMEConfiguration | The configuration to set the option in. |
section:str | The section of the option. |
option:str | The name of the option. |
value:str | The value to set for the option. |
tobool | None | If True, convert the value to lower case before setting it. |
| Returns | |
str | Undocumented |