ironic_inspector.plugins.introspection_data module¶
Backends for storing introspection data.
-
class
ironic_inspector.plugins.introspection_data.
BaseStorageBackend
[source]¶ Bases:
object
-
abstract
get
(node_uuid, processed=True, get_json=False)[source]¶ Get introspected data from storage backend.
- Parameters
node_uuid – node UUID.
processed – Specify whether the data to be retrieved is processed or not.
get_json – Specify whether return the introspection data in json format, string value is returned if False.
- Returns
the introspection data.
- Raises
IntrospectionDataStoreDisabled if storage backend is disabled.
-
abstract
save
(node_uuid, data, processed=True)[source]¶ Save introspected data to storage backend.
- Parameters
node_uuid – node UUID.
data – the introspected data to be saved, in dict format.
processed – Specify whether the data to be saved is processed or not.
- Raises
IntrospectionDataStoreDisabled if storage backend is disabled.
-
abstract
-
class
ironic_inspector.plugins.introspection_data.
NoStore
[source]¶ Bases:
ironic_inspector.plugins.introspection_data.BaseStorageBackend
-
get
(node_uuid, processed=True, get_json=False)[source]¶ Get introspected data from storage backend.
- Parameters
node_uuid – node UUID.
processed – Specify whether the data to be retrieved is processed or not.
get_json – Specify whether return the introspection data in json format, string value is returned if False.
- Returns
the introspection data.
- Raises
IntrospectionDataStoreDisabled if storage backend is disabled.
-
save
(node_uuid, data, processed=True)[source]¶ Save introspected data to storage backend.
- Parameters
node_uuid – node UUID.
data – the introspected data to be saved, in dict format.
processed – Specify whether the data to be saved is processed or not.
- Raises
IntrospectionDataStoreDisabled if storage backend is disabled.
-