osia.installer.downloader package

Submodules

osia.installer.downloader.image module

Module implements logic for rhcos image download

osia.installer.downloader.image.download_image(image_url: str, image_file: str)

Main entrypoint for image download, function extracts url to rhcos image, downloads and extracts it to specified target

osia.installer.downloader.image.get_commit(installer: str) → str

Function extracts source commit from installer, in order to find associated rhcos image

osia.installer.downloader.image.get_url(installer: str) → Tuple[str, str]

Function builds url to rhcos image and version of rhcos iamge.

osia.installer.downloader.install module

Module responsible for download of openshift-install binary

osia.installer.downloader.install.download_installer(installer_version: str, dest_directory: str, source: str) → str

Starts search and extraction of installer

osia.installer.downloader.install.get_devel_url(version: str) → str

Searches developement sources and returns url to installer

osia.installer.downloader.install.get_installer(tar_url: str, target: str)

Download and extract the installer into the target

osia.installer.downloader.install.get_prev_url(version)

Returns installer url from dev-preview sources

osia.installer.downloader.install.get_prod_url(version)

Returns installer url from production sources

osia.installer.downloader.install.get_url(directory: str) → Tuple[Optional[str], Optional[str]]

Searches the http directory and returns both url to installer and version.

Module contents

Module implements download logic of resources required by installer

osia.installer.downloader.download_image(image_url: str, image_file: str)

Main entrypoint for image download, function extracts url to rhcos image, downloads and extracts it to specified target

osia.installer.downloader.download_installer(installer_version: str, dest_directory: str, source: str) → str

Starts search and extraction of installer

osia.installer.downloader.get_url(installer: str) → Tuple[str, str]

Function builds url to rhcos image and version of rhcos iamge.