mcvirt.iso package

Submodules

mcvirt.iso.factory module

Provide factory class for ISO

class mcvirt.iso.factory.Factory[source]

Bases: mcvirt.rpc.pyro_object.PyroObject

Class for obtaining ISO objects

ISO_CLASS

alias of Iso

add_from_url(*args, **kwargs)
add_iso(path)[source]

Copy an ISO to ISOs directory

add_iso_from_stream(*args, **kwargs)
get_iso_by_name(iso_name)[source]

Create and register Iso object

get_iso_list()[source]

Return a user-readable list of ISOs

get_isos()[source]

Return a list of a ISOs

class mcvirt.iso.factory.IsoWriter(temp_file, factory, temp_directory, path)[source]

Bases: mcvirt.rpc.pyro_object.PyroObject

Provide an interface for writing ISOs

write_data(data)[source]

Write data to the ISO file

write_end()[source]

End writing object, close FH and import ISO

mcvirt.iso.iso module

Provide class for managing ISO files

class mcvirt.iso.iso.Iso(name)[source]

Bases: mcvirt.rpc.pyro_object.PyroObject

Provides management of ISOs for use in MCVirt

delete()[source]

Delete an ISO

static get_filename_from_path(path, append_iso=True)[source]

Return filename part of path

get_name()[source]

Return the name of the ISO

get_path()[source]

Return the full path of the ISO

in_use

Determine if the ISO is currently in use by a VM

static overwrite_check(filename, path)[source]

Check if a file already exists at path. Ask user whether they want to overwrite. Returns True if they will overwrite, False otherwise

set_iso_permissions()[source]

Set permissions to 644

Module contents