Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { ids.Aliaser // Returns a factory that can create new instances of the VM // with the given ID GetFactory(ids.ID) (Factory, error) // Associate an ID with the factory that creates new instances // of the VM with the given ID RegisterFactory(ids.ID, Factory) error // Versions returns the versions of all the VMs that have been registered Versions() (map[string]string, error) }
Manager is a VM manager. It has the following functionality:
- Register a VM factory. To register a VM is to associate its ID with a VMFactory which, when New() is called upon it, creates a new instance of that VM.
- Get a VM factory. Given the ID of a VM that has been registered, return the factory that the ID is associated with.
- Manage the aliases of VMs
Click to show internal directories.
Click to hide internal directories.