Function brane_ctl::download::services

source ·
pub async fn services(
    fix_dirs: bool,
    path: impl AsRef<Path>,
    arch: Arch,
    version: Version,
    force: bool,
    kind: DownloadServicesSubcommand,
) -> Result<(), Error>
Expand description

Downloads the service images to the local machine from the GitHub repo.

§Arguments

  • fix_dirs: Whether to fix missing directories or error instead.
  • path: The path of the folder to download the service images to.
  • version: The version of the images to download.
  • arch: The architecture for which to download the images.
  • force: If given, overwrites images if they are already there.
  • kind: The kind of images to download (e.g., central, worker or auxillary).

§Errors

This function may error if we failed to reach GitHub, we failed to establish HTTPS or we failed to somehow write the file / create missing directories (if enabled).