certbot.plugins.storage module
certbot.plugins.storage module
Plugin storage class.
class certbot.plugins.storage.PluginStorage(config: NamespaceConfig, classkey: str)[source]
Bases: object
Class implementing storage functionality for plugins
save() None[source]
Saves PluginStorage content to disk
Raises:
.errors.PluginStorageError – when unable to serialize the data or write it to the filesystem
put(key: str, value: Any) None[source]
Put configuration value to PluginStorage
Parameters:
-
key (str) – Key to store the value to
-
value – Data to store
fetch(key: str) Any[source]
Get configuration value from PluginStorage
Parameters:
key (str) – Key to get value from the storage
Raises:
KeyError – If the key doesn’t exist in the storage
这篇文档对你有帮助吗?
谢谢你的反馈!