troveclient.compat.utils 模块

class troveclient.compat.utils.HookableMixin

基类: object

Mixin,使类可以注册和运行钩子。

classmethod add_hook(hook_type, hook_func)
classmethod run_hooks(hook_type, *args, **kwargs)
troveclient.compat.utils.env(*vars, **kwargs)

返回环境变量。

如果所有环境变量均为空,则返回第一个设置的环境变量,否则默认为空字符串 ‘’ 或关键字参数的默认值。