Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Returns a factory that can create new instances of the VM // with the given ID GetVMFactory(ids.ID) (VMFactory, error) // Associate an ID with the factory that creates new instances // of the VM with the given ID RegisterVMFactory(ids.ID, VMFactory) error // Given an alias, return the ID of the VM associated with that alias Lookup(string) (ids.ID, error) // Return the aliases associated with a VM Aliases(ids.ID) []string // Give an alias to a VM Alias(ids.ID, 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.
- Associate a VM with an alias
- Get the ID of the VM by the VM's alias
- Get the aliases of a VM
Click to show internal directories.
Click to hide internal directories.