Documentation ¶
Index ¶
- type VirtManager
- func (v *VirtManager) Create(name string) (string, error)
- func (v *VirtManager) CreateAndStart(name string) (string, error)
- func (v *VirtManager) CreateAndStartAndInjectionPublicKey(name, publicKey string) (string, error)
- func (v *VirtManager) Destroy(name string) error
- func (v *VirtManager) GetAccessPort(name string) int
- func (v *VirtManager) GetIp(name string) (string, error)
- func (v *VirtManager) InjectionPublicKey(name, publicKey string) error
- func (v *VirtManager) Reboot(name string) error
- func (v *VirtManager) SetTemplate(t provider.Template) error
- func (v *VirtManager) Shutdown(name string) error
- func (v *VirtManager) Start(name string) error
- func (v *VirtManager) Status(name string) (*provider.Status, error)
- func (v *VirtManager) Stop(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtManager ¶
type VirtManager struct {
// contains filtered or unexported fields
}
VirtManager virtual machine management client
func NewVirtManager ¶
func NewVirtManager(t provider.Template) (*VirtManager, error)
NewVirtManager create virtManager
func (*VirtManager) Create ¶
func (v *VirtManager) Create(name string) (string, error)
Create create
func (*VirtManager) CreateAndStart ¶
func (v *VirtManager) CreateAndStart(name string) (string, error)
CreateAndStart create and start
func (*VirtManager) CreateAndStartAndInjectionPublicKey ¶
func (v *VirtManager) CreateAndStartAndInjectionPublicKey(name, publicKey string) (string, error)
func (*VirtManager) Destroy ¶
func (v *VirtManager) Destroy(name string) error
Destroy destroy the virtual machine
func (*VirtManager) GetAccessPort ¶
func (v *VirtManager) GetAccessPort(name string) int
GetAccessPort get runtime port
func (*VirtManager) GetIp ¶
func (v *VirtManager) GetIp(name string) (string, error)
GetIp get runtime ip
func (*VirtManager) InjectionPublicKey ¶
func (v *VirtManager) InjectionPublicKey(name, publicKey string) error
InjectionPublicKey injection publickey (The timing of vm implementation and docker implementation are different)
func (*VirtManager) Reboot ¶
func (v *VirtManager) Reboot(name string) error
Reboot restart the virtual machine
func (*VirtManager) SetTemplate ¶
func (v *VirtManager) SetTemplate(t provider.Template) error
func (*VirtManager) Shutdown ¶
func (v *VirtManager) Shutdown(name string) error
Shutdown shutdown the virtual machine
func (*VirtManager) Start ¶
func (v *VirtManager) Start(name string) error
Start start the virtual machine
func (*VirtManager) Status ¶
func (v *VirtManager) Status(name string) (*provider.Status, error)
Status View status
func (*VirtManager) Stop ¶
func (v *VirtManager) Stop(name string) error
Stop shutdown the virtual machine
Click to show internal directories.
Click to hide internal directories.