kvm

package
v0.0.0-...-0be8373 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVM

type KVM struct {
	// contains filtered or unexported fields
}

func NewKVM

func NewKVM(protocol, address string) *KVM

func (*KVM) CheckName

func (kvm *KVM) CheckName(name string) int

func (*KVM) Create

func (kvm *KVM) Create(s *types.Server) (*types.Server, error)

func (*KVM) Delete

func (kvm *KVM) Delete(uuid string) error

func (*KVM) Get

func (kvm *KVM) Get(uuid string) (*types.Server, error)

func (*KVM) GetStatus

func (kvm *KVM) GetStatus(uuid string) (*types.ServerStatus, error)

func (*KVM) List

func (kvm *KVM) List() ([]types.Server, error)

func (*KVM) SetDiskDir

func (kvm *KVM) SetDiskDir(path string)

func (*KVM) SetISO

func (kvm *KVM) SetISO(filePath string)

type Spec

type Spec struct {
	Name     string
	Memory   int
	CPU      int
	ISO      string
	DiskPath string
	MAC      string
}

Jump to

Keyboard shortcuts

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