guest

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSelf

GetSelf gets VirtualMachine reference for the VM this process is running on

func IsSelf

func IsSelf(op trace.Operation, uuid string) (bool, error)

Types

type Guest

type Guest interface {
	GuestID() string
	Spec() *spec.VirtualMachineConfigSpec
	Controller() *types.BaseVirtualController
	NewDisk() *types.VirtualDisk
}

Guest interface defines the different guest types

func NewLinuxGuest

func NewLinuxGuest(ctx context.Context, session *session.Session, config *spec.VirtualMachineConfigSpecConfig) (Guest, error)

NewLinuxGuest returns a new Linux guest spec with predefined values

type LinuxGuestType

type LinuxGuestType struct {
	*spec.VirtualMachineConfigSpec
	// contains filtered or unexported fields
}

LinuxGuestType type

func (*LinuxGuestType) Controller

func (l *LinuxGuestType) Controller() *types.BaseVirtualController

Controller returns the types.BaseVirtualController to the caller

func (*LinuxGuestType) GuestID

func (l *LinuxGuestType) GuestID() string

GuestID returns the guest id of the linux guest

func (*LinuxGuestType) NewDisk added in v1.5.0

func (l *LinuxGuestType) NewDisk() *types.VirtualDisk

func (*LinuxGuestType) Spec

Spec returns the underlying types.VirtualMachineConfigSpec to the caller

Jump to

Keyboard shortcuts

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