certbot.plugins.storage module

Plugin storage class.

classcertbot.plugins.storage.``PluginStorage(config, classkey)[source]
Bases: object
Class implementing storage functionality for plugins
save()[source]
Saves PluginStorage content to disk
Raises: errors.PluginStorageError – when unable to serialize the data or write it to the filesystem
put(key, value)[source]
Put configuration value to PluginStorage
Parameters: - key (str) – Key to store the value to- value – Data to store
fetch(key)[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

本文章首发在 网安wangan.com 网站上。

上一篇 下一篇
讨论数量: 0
只看当前版本


暂无话题~