Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (l *LinuxGuestType) Spec() *spec.VirtualMachineConfigSpec
Spec returns the underlying types.VirtualMachineConfigSpec to the caller
Click to show internal directories.
Click to hide internal directories.