pulpcore.plugin.storage¶
-
pulpcore.plugin.storage.
get_plugin_storage_path
(plugin_app_label)¶ Returns the path to the plugin’s storage
An interface for finding the path to a plugin’s persistent storage location. It is designed to be used by plugins that need to store more than just
Artifact
models.- Parameters
plugin_app_label (str) – Django app label of the pulp plugin
- Returns
String containing the absolute path to the plugin’s storage on the filesystem.
- Raises
MissingPlugin – When plugin with the requested app label is not installed.
-
pulpcore.plugin.storage.
get_tls_path
(model, name)¶ Determine storage location as: MEDIA_ROOT/tls/<model>/<id>/<name>.
- Parameters
model (pulpcore.app.models.Model) – The model object.
name (str) – The (unused) input file path.
- Returns
An absolute (base) path
- Return type
str