lavatory.commands package¶
Submodules¶
lavatory.commands.policies module¶
List policies and descriptions
-
lavatory.commands.policies.
get_description
(plugin_source, repository)[source]¶ Given a repository and plugin source, gets policy description.
Parameters: - plugin_source (PluginBase) – The source of plugins from PluginBase.
- repository (str) – The name fo the repository to get policy description.
Returns: A dictionary of repo name and policy description
Return type: dict
lavatory.commands.purge module¶
Purges artifacts.
-
lavatory.commands.purge.
apply_purge_policies
(selected_repos, policies_path=None, dryrun=True, default=True)[source]¶ Sets up the plugins to find purgable artifacts and delete them.
Parameters: - selected_repos (list) – List of repos to run against.
- policies_path (str) – Path to extra policies
- dryrun (bool) – If true, will not actually delete artifacts.
- default (bool) – If true, applies default policy to repos with no specific policy.
-
lavatory.commands.purge.
generate_purge_report
(purged_repos, before_purge_data)[source]¶ Generates a performance report based on deleted artifacts.
Parameters: - purged_repos (list) – List of repos that had policy applied.
- before_purge_data (dict) – Data on the state of Artifactory before purged artifacts
lavatory.commands.stats module¶
Statistics of the repo.