portdevices

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IDEController  = "ide"
	SCSIController = "scsi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CDROM

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

func (CDROM) Mount

func (cd CDROM) Mount(isoPath string) error

func (CDROM) Unmount

func (cd CDROM) Unmount() error

type PortDevice

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

func NewPortDevice

func NewPortDevice(driver driver.Driver, vmCID apiv1.VMCID, controller, name, port, device string) PortDevice

func (PortDevice) Attach

func (d PortDevice) Attach(path string) error

func (PortDevice) Controller

func (d PortDevice) Controller() string

func (PortDevice) Detach

func (d PortDevice) Detach() error

func (PortDevice) Device

func (d PortDevice) Device() string

func (PortDevice) Hint

func (d PortDevice) Hint() apiv1.DiskHint

func (PortDevice) Port

func (d PortDevice) Port() string

type PortDevices

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

func NewPortDevices

func NewPortDevices(vmCID apiv1.VMCID, opts PortDevicesOpts, driver driver.Driver, logger boshlog.Logger) PortDevices

func (PortDevices) CDROM

func (d PortDevices) CDROM() (CDROM, error)

func (PortDevices) Find

func (d PortDevices) Find(controller, port, device string) (PortDevice, error)

func (PortDevices) FindAvailable

func (d PortDevices) FindAvailable() (PortDevice, error)

type PortDevicesOpts

type PortDevicesOpts struct {
	Controller string
}

Jump to

Keyboard shortcuts

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