vm

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL