Function brane_cli::run::initialize_offline_vm

source ·
pub fn initialize_offline_vm(
    parse_opts: ParserOptions,
    docker_opts: DockerOptions,
    keep_containers: bool,
) -> Result<OfflineVmState, Error>
Expand description

Function that prepares a local, offline virtual machine by initializing the proper indices and whatnot.

§Arguments

  • parse_opts: The ParserOptions that describe how to parse the given source.
  • docker_opts: The configuration of our Docker client.
  • keep_containers: Whether to keep the containers after execution or not.

§Returns

The newly created virtual machine together with associated states as an OfflineVmState.

§Errors

This function errors if we failed to get the new package indices or other information.