Documentation ¶
Index ¶
- type CombinedLayers
- type GuestRequest
- type LCOWMappedDirectory
- type LCOWMappedVPCIDevice
- type LCOWMappedVPMemDevice
- type LCOWMappedVirtualDisk
- type LCOWNetworkAdapter
- type NetworkModifyRequest
- type RS4NetworkModifyRequest
- type ResourceType
- type SignalProcessOptionsLCOW
- type SignalProcessOptionsWCOW
- type SignalValueWCOW
- type WCOWMappedVirtualDisk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinedLayers ¶
type CombinedLayers struct { ContainerRootPath string `json:"ContainerRootPath,omitempty"` Layers []hcsschema.Layer `json:"Layers,omitempty"` ScratchPath string `json:"ScratchPath,omitempty"` }
This class is used by a modify request to add or remove a combined layers structure in the guest. For windows, the GCS applies a filter in ContainerRootPath using the specified layers as the parent content. Ignores property ScratchPath since the container path is already the scratch path. For linux, the GCS unions the specified layers and ScratchPath together, placing the resulting union filesystem at ContainerRootPath.
type GuestRequest ¶
type GuestRequest struct { RequestType string `json:"RequestType,omitempty"` ResourceType ResourceType `json:"ResourceType,omitempty"` Settings interface{} `json:"Settings,omitempty"` }
GuestRequest is for modify commands passed to the guest.
type LCOWMappedDirectory ¶
type LCOWMappedVPCIDevice ¶
type LCOWMappedVPCIDevice struct {
VMBusGUID string `json:"VMBusGUID,omitempty"`
}
type LCOWMappedVPMemDevice ¶
type LCOWMappedVPMemDevice struct { DeviceNumber uint32 `json:"DeviceNumber,omitempty"` MountPath string `json:"MountPath,omitempty"` }
Read-only layers over VPMem
type LCOWMappedVirtualDisk ¶
type LCOWMappedVirtualDisk struct { MountPath string `json:"MountPath,omitempty"` Lun uint8 `json:"Lun,omitempty"` Controller uint8 `json:"Controller,omitempty"` ReadOnly bool `json:"ReadOnly,omitempty"` }
SCSI. Scratch space for remote file-system commands, or R/W layer for containers
type LCOWNetworkAdapter ¶
type LCOWNetworkAdapter struct { NamespaceID string `json:",omitempty"` ID string `json:",omitempty"` MacAddress string `json:",omitempty"` IPAddress string `json:",omitempty"` PrefixLength uint8 `json:",omitempty"` GatewayAddress string `json:",omitempty"` DNSSuffix string `json:",omitempty"` DNSServerList string `json:",omitempty"` EnableLowMetric bool `json:",omitempty"` EncapOverhead uint16 `json:",omitempty"` }
type NetworkModifyRequest ¶
type RS4NetworkModifyRequest ¶
type ResourceType ¶
type ResourceType string
const ( // These are constants for v2 schema modify guest requests. ResourceTypeMappedDirectory ResourceType = "MappedDirectory" ResourceTypeMappedVirtualDisk ResourceType = "MappedVirtualDisk" ResourceTypeNetwork ResourceType = "Network" ResourceTypeNetworkNamespace ResourceType = "NetworkNamespace" ResourceTypeCombinedLayers ResourceType = "CombinedLayers" ResourceTypeVPMemDevice ResourceType = "VPMemDevice" ResourceTypeVPCIDevice ResourceType = "VPCIDevice" ResourceTypeHvSocket ResourceType = "HvSocket" )
type SignalProcessOptionsLCOW ¶
type SignalProcessOptionsLCOW struct {
Signal int `json:",omitempty"`
}
SignalProcessOptionsLCOW is the options passed to LCOW to signal a given process.
type SignalProcessOptionsWCOW ¶
type SignalProcessOptionsWCOW struct {
Signal SignalValueWCOW `json:",omitempty"`
}
SignalProcessOptionsWCOW is the options passed to WCOW to signal a given process.
type SignalValueWCOW ¶
type SignalValueWCOW string
const ( SignalValueWCOWCtrlC SignalValueWCOW = "CtrlC" SignalValueWCOWCtrlBreak SignalValueWCOW = "CtrlBreak" SignalValueWCOWCtrlClose SignalValueWCOW = "CtrlClose" SignalValueWCOWCtrlLogOff SignalValueWCOW = "CtrlLogOff" SignalValueWCOWCtrlShutdown SignalValueWCOW = "CtrlShutdown" )