artifact_manager_ui

class fabrictestbed_extensions.ui.artifact_manager_ui.ArtifactManagerUI(fablib, download_dir='/home/fabric/work')[source]

Initializes the ArtifactManagerUI with a specified download directory.

Parameters

download_dirstr, optional

The directory where artifacts will be downloaded (default is “/home/fabric/work”).

create_ui()[source]

Creates and displays the user interface for interacting with artifacts.

download_artifact_handler(artifact_title, version_urn, version)[source]

Handler for downloading and extracting artifacts.

Parameters

artifact_titlestr

The title of the artifact to download.

version_urnstr

The URN of the version to download.

versionstr

The version of the artifact to download.

Raises

Exception

If there is an error during the download or extraction process.

filter_artifacts(change)[source]

Filters artifacts based on the title, tag or project filter text input.

Parameters

changedict

The change dictionary containing the new value of the text input.

update_ui(artifacts)[source]

Updates the UI with the given list of artifacts.

Parameters

artifactslist

The list of artifacts to be displayed in the UI.

class fabrictestbed_extensions.ui.artifact_manager_ui.ArtifactManagerUI(fablib, download_dir='/home/fabric/work')[source]

Initializes the ArtifactManagerUI with a specified download directory.

Parameters

download_dirstr, optional

The directory where artifacts will be downloaded (default is “/home/fabric/work”).

create_ui()[source]

Creates and displays the user interface for interacting with artifacts.

download_artifact_handler(artifact_title, version_urn, version)[source]

Handler for downloading and extracting artifacts.

Parameters

artifact_titlestr

The title of the artifact to download.

version_urnstr

The URN of the version to download.

versionstr

The version of the artifact to download.

Raises

Exception

If there is an error during the download or extraction process.

filter_artifacts(change)[source]

Filters artifacts based on the title, tag or project filter text input.

Parameters

changedict

The change dictionary containing the new value of the text input.

update_ui(artifacts)[source]

Updates the UI with the given list of artifacts.

Parameters

artifactslist

The list of artifacts to be displayed in the UI.