Update containerd to v1.2.0.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
edf2b81778
commit
f818de9dce
@ -3,7 +3,7 @@ github.com/blang/semver v3.1.0
|
|||||||
github.com/BurntSushi/toml a368813c5e648fee92e5f6c30e3944ff9d5e8895
|
github.com/BurntSushi/toml a368813c5e648fee92e5f6c30e3944ff9d5e8895
|
||||||
github.com/containerd/cgroups 5e610833b72089b37d0e615de9a92dfc043757c2
|
github.com/containerd/cgroups 5e610833b72089b37d0e615de9a92dfc043757c2
|
||||||
github.com/containerd/console c12b1e7919c14469339a5d38f2f8ed9b64a9de23
|
github.com/containerd/console c12b1e7919c14469339a5d38f2f8ed9b64a9de23
|
||||||
github.com/containerd/containerd 15f19d7a67fa322e6de0ef4c6a1bf9da0f056554
|
github.com/containerd/containerd v1.2.0
|
||||||
github.com/containerd/continuity bd77b46c8352f74eb12c85bdc01f4b90f69d66b4
|
github.com/containerd/continuity bd77b46c8352f74eb12c85bdc01f4b90f69d66b4
|
||||||
github.com/containerd/fifo 3d5202aec260678c48179c56f40e6f38a095738c
|
github.com/containerd/fifo 3d5202aec260678c48179c56f40e6f38a095738c
|
||||||
github.com/containerd/go-cni 40bcf8ec8acd7372be1d77031d585d5d8e561c90
|
github.com/containerd/go-cni 40bcf8ec8acd7372be1d77031d585d5d8e561c90
|
||||||
@ -33,13 +33,13 @@ github.com/hashicorp/errwrap 7554cd9344cec97297fa6649b055a8c98c2a1e55
|
|||||||
github.com/hashicorp/go-multierror ed905158d87462226a13fe39ddf685ea65f1c11f
|
github.com/hashicorp/go-multierror ed905158d87462226a13fe39ddf685ea65f1c11f
|
||||||
github.com/json-iterator/go 1.1.5
|
github.com/json-iterator/go 1.1.5
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.0
|
github.com/matttproud/golang_protobuf_extensions v1.0.0
|
||||||
github.com/Microsoft/go-winio v0.4.10
|
github.com/Microsoft/go-winio v0.4.11
|
||||||
github.com/Microsoft/hcsshim v0.7.6
|
github.com/Microsoft/hcsshim v0.7.12
|
||||||
github.com/modern-go/concurrent 1.0.3
|
github.com/modern-go/concurrent 1.0.3
|
||||||
github.com/modern-go/reflect2 1.0.1
|
github.com/modern-go/reflect2 1.0.1
|
||||||
github.com/opencontainers/go-digest c9281466c8b2f606084ac71339773efd177436e7
|
github.com/opencontainers/go-digest c9281466c8b2f606084ac71339773efd177436e7
|
||||||
github.com/opencontainers/image-spec v1.0.1
|
github.com/opencontainers/image-spec v1.0.1
|
||||||
github.com/opencontainers/runc 00dc70017d222b178a002ed30e9321b12647af2d
|
github.com/opencontainers/runc 58592df56734acf62e574865fe40b9e53e967910
|
||||||
github.com/opencontainers/runtime-spec eba862dc2470385a233c7507392675cbeadf7353
|
github.com/opencontainers/runtime-spec eba862dc2470385a233c7507392675cbeadf7353
|
||||||
github.com/opencontainers/runtime-tools fb101d5d42ab9c040f7d0a004e78336e5d5cb197
|
github.com/opencontainers/runtime-tools fb101d5d42ab9c040f7d0a004e78336e5d5cb197
|
||||||
github.com/opencontainers/selinux b6fa367ed7f534f9ba25391cc2d467085dbb445a
|
github.com/opencontainers/selinux b6fa367ed7f534f9ba25391cc2d467085dbb445a
|
||||||
|
274
vendor/github.com/Microsoft/go-winio/ea.go
generated
vendored
274
vendor/github.com/Microsoft/go-winio/ea.go
generated
vendored
@ -1,137 +1,137 @@
|
|||||||
package winio
|
package winio
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fileFullEaInformation struct {
|
type fileFullEaInformation struct {
|
||||||
NextEntryOffset uint32
|
NextEntryOffset uint32
|
||||||
Flags uint8
|
Flags uint8
|
||||||
NameLength uint8
|
NameLength uint8
|
||||||
ValueLength uint16
|
ValueLength uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fileFullEaInformationSize = binary.Size(&fileFullEaInformation{})
|
fileFullEaInformationSize = binary.Size(&fileFullEaInformation{})
|
||||||
|
|
||||||
errInvalidEaBuffer = errors.New("invalid extended attribute buffer")
|
errInvalidEaBuffer = errors.New("invalid extended attribute buffer")
|
||||||
errEaNameTooLarge = errors.New("extended attribute name too large")
|
errEaNameTooLarge = errors.New("extended attribute name too large")
|
||||||
errEaValueTooLarge = errors.New("extended attribute value too large")
|
errEaValueTooLarge = errors.New("extended attribute value too large")
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExtendedAttribute represents a single Windows EA.
|
// ExtendedAttribute represents a single Windows EA.
|
||||||
type ExtendedAttribute struct {
|
type ExtendedAttribute struct {
|
||||||
Name string
|
Name string
|
||||||
Value []byte
|
Value []byte
|
||||||
Flags uint8
|
Flags uint8
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseEa(b []byte) (ea ExtendedAttribute, nb []byte, err error) {
|
func parseEa(b []byte) (ea ExtendedAttribute, nb []byte, err error) {
|
||||||
var info fileFullEaInformation
|
var info fileFullEaInformation
|
||||||
err = binary.Read(bytes.NewReader(b), binary.LittleEndian, &info)
|
err = binary.Read(bytes.NewReader(b), binary.LittleEndian, &info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = errInvalidEaBuffer
|
err = errInvalidEaBuffer
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
nameOffset := fileFullEaInformationSize
|
nameOffset := fileFullEaInformationSize
|
||||||
nameLen := int(info.NameLength)
|
nameLen := int(info.NameLength)
|
||||||
valueOffset := nameOffset + int(info.NameLength) + 1
|
valueOffset := nameOffset + int(info.NameLength) + 1
|
||||||
valueLen := int(info.ValueLength)
|
valueLen := int(info.ValueLength)
|
||||||
nextOffset := int(info.NextEntryOffset)
|
nextOffset := int(info.NextEntryOffset)
|
||||||
if valueLen+valueOffset > len(b) || nextOffset < 0 || nextOffset > len(b) {
|
if valueLen+valueOffset > len(b) || nextOffset < 0 || nextOffset > len(b) {
|
||||||
err = errInvalidEaBuffer
|
err = errInvalidEaBuffer
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ea.Name = string(b[nameOffset : nameOffset+nameLen])
|
ea.Name = string(b[nameOffset : nameOffset+nameLen])
|
||||||
ea.Value = b[valueOffset : valueOffset+valueLen]
|
ea.Value = b[valueOffset : valueOffset+valueLen]
|
||||||
ea.Flags = info.Flags
|
ea.Flags = info.Flags
|
||||||
if info.NextEntryOffset != 0 {
|
if info.NextEntryOffset != 0 {
|
||||||
nb = b[info.NextEntryOffset:]
|
nb = b[info.NextEntryOffset:]
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeExtendedAttributes decodes a list of EAs from a FILE_FULL_EA_INFORMATION
|
// DecodeExtendedAttributes decodes a list of EAs from a FILE_FULL_EA_INFORMATION
|
||||||
// buffer retrieved from BackupRead, ZwQueryEaFile, etc.
|
// buffer retrieved from BackupRead, ZwQueryEaFile, etc.
|
||||||
func DecodeExtendedAttributes(b []byte) (eas []ExtendedAttribute, err error) {
|
func DecodeExtendedAttributes(b []byte) (eas []ExtendedAttribute, err error) {
|
||||||
for len(b) != 0 {
|
for len(b) != 0 {
|
||||||
ea, nb, err := parseEa(b)
|
ea, nb, err := parseEa(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
eas = append(eas, ea)
|
eas = append(eas, ea)
|
||||||
b = nb
|
b = nb
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeEa(buf *bytes.Buffer, ea *ExtendedAttribute, last bool) error {
|
func writeEa(buf *bytes.Buffer, ea *ExtendedAttribute, last bool) error {
|
||||||
if int(uint8(len(ea.Name))) != len(ea.Name) {
|
if int(uint8(len(ea.Name))) != len(ea.Name) {
|
||||||
return errEaNameTooLarge
|
return errEaNameTooLarge
|
||||||
}
|
}
|
||||||
if int(uint16(len(ea.Value))) != len(ea.Value) {
|
if int(uint16(len(ea.Value))) != len(ea.Value) {
|
||||||
return errEaValueTooLarge
|
return errEaValueTooLarge
|
||||||
}
|
}
|
||||||
entrySize := uint32(fileFullEaInformationSize + len(ea.Name) + 1 + len(ea.Value))
|
entrySize := uint32(fileFullEaInformationSize + len(ea.Name) + 1 + len(ea.Value))
|
||||||
withPadding := (entrySize + 3) &^ 3
|
withPadding := (entrySize + 3) &^ 3
|
||||||
nextOffset := uint32(0)
|
nextOffset := uint32(0)
|
||||||
if !last {
|
if !last {
|
||||||
nextOffset = withPadding
|
nextOffset = withPadding
|
||||||
}
|
}
|
||||||
info := fileFullEaInformation{
|
info := fileFullEaInformation{
|
||||||
NextEntryOffset: nextOffset,
|
NextEntryOffset: nextOffset,
|
||||||
Flags: ea.Flags,
|
Flags: ea.Flags,
|
||||||
NameLength: uint8(len(ea.Name)),
|
NameLength: uint8(len(ea.Name)),
|
||||||
ValueLength: uint16(len(ea.Value)),
|
ValueLength: uint16(len(ea.Value)),
|
||||||
}
|
}
|
||||||
|
|
||||||
err := binary.Write(buf, binary.LittleEndian, &info)
|
err := binary.Write(buf, binary.LittleEndian, &info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = buf.Write([]byte(ea.Name))
|
_, err = buf.Write([]byte(ea.Name))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = buf.WriteByte(0)
|
err = buf.WriteByte(0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = buf.Write(ea.Value)
|
_, err = buf.Write(ea.Value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = buf.Write([]byte{0, 0, 0}[0 : withPadding-entrySize])
|
_, err = buf.Write([]byte{0, 0, 0}[0 : withPadding-entrySize])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// EncodeExtendedAttributes encodes a list of EAs into a FILE_FULL_EA_INFORMATION
|
// EncodeExtendedAttributes encodes a list of EAs into a FILE_FULL_EA_INFORMATION
|
||||||
// buffer for use with BackupWrite, ZwSetEaFile, etc.
|
// buffer for use with BackupWrite, ZwSetEaFile, etc.
|
||||||
func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error) {
|
func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error) {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
for i := range eas {
|
for i := range eas {
|
||||||
last := false
|
last := false
|
||||||
if i == len(eas)-1 {
|
if i == len(eas)-1 {
|
||||||
last = true
|
last = true
|
||||||
}
|
}
|
||||||
|
|
||||||
err := writeEa(&buf, &eas[i], last)
|
err := writeEa(&buf, &eas[i], last)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return buf.Bytes(), nil
|
return buf.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
1
vendor/github.com/Microsoft/hcsshim/hnsendpoint.go
generated
vendored
1
vendor/github.com/Microsoft/hcsshim/hnsendpoint.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
// HNSEndpoint represents a network endpoint in HNS
|
// HNSEndpoint represents a network endpoint in HNS
|
||||||
type HNSEndpoint = hns.HNSEndpoint
|
type HNSEndpoint = hns.HNSEndpoint
|
||||||
|
|
||||||
// Namespace represents a Compartment.
|
// Namespace represents a Compartment.
|
||||||
type Namespace = hns.Namespace
|
type Namespace = hns.Namespace
|
||||||
|
|
||||||
|
85
vendor/github.com/Microsoft/hcsshim/internal/guestrequest/types.go
generated
vendored
Normal file
85
vendor/github.com/Microsoft/hcsshim/internal/guestrequest/types.go
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
package guestrequest
|
||||||
|
|
||||||
|
import "github.com/Microsoft/hcsshim/internal/schema2"
|
||||||
|
|
||||||
|
// Arguably, many of these (at least CombinedLayers) should have been generated
|
||||||
|
// by swagger.
|
||||||
|
//
|
||||||
|
// This will also change package name due to an inbound breaking change.
|
||||||
|
|
||||||
|
// 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 CombinedLayers struct {
|
||||||
|
ContainerRootPath string `json:"ContainerRootPath,omitempty"`
|
||||||
|
Layers []hcsschema.Layer `json:"Layers,omitempty"`
|
||||||
|
ScratchPath string `json:"ScratchPath,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Defines the schema for hosted settings passed to GCS and/or OpenGCS
|
||||||
|
|
||||||
|
// SCSI. Scratch space for remote file-system commands, or R/W layer for containers
|
||||||
|
type LCOWMappedVirtualDisk struct {
|
||||||
|
MountPath string `json:"MountPath,omitempty"` // /tmp/scratch for an LCOW utility VM being used as a service VM
|
||||||
|
Lun uint8 `json:"Lun,omitempty"`
|
||||||
|
Controller uint8 `json:"Controller,omitempty"`
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type WCOWMappedVirtualDisk struct {
|
||||||
|
ContainerPath string `json:"ContainerPath,omitempty"`
|
||||||
|
Lun int32 `json:"Lun,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type LCOWMappedDirectory struct {
|
||||||
|
MountPath string `json:"MountPath,omitempty"`
|
||||||
|
Port int32 `json:"Port,omitempty"`
|
||||||
|
ShareName string `json:"ShareName,omitempty"` // If empty not using ANames (not currently supported)
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read-only layers over VPMem
|
||||||
|
type LCOWMappedVPMemDevice struct {
|
||||||
|
DeviceNumber uint32 `json:"DeviceNumber,omitempty"`
|
||||||
|
MountPath string `json:"MountPath,omitempty"` // /tmp/pN
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
)
|
||||||
|
|
||||||
|
// GuestRequest is for modify commands passed to the guest.
|
||||||
|
type GuestRequest struct {
|
||||||
|
RequestType string `json:"RequestType,omitempty"`
|
||||||
|
ResourceType ResourceType `json:"ResourceType,omitempty"`
|
||||||
|
Settings interface{} `json:"Settings,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type NetworkModifyRequest struct {
|
||||||
|
AdapterId string `json:"AdapterId,omitempty"`
|
||||||
|
RequestType string `json:"RequestType,omitempty"`
|
||||||
|
Settings interface{} `json:"Settings,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type RS4NetworkModifyRequest struct {
|
||||||
|
AdapterInstanceId string `json:"AdapterInstanceId,omitempty"`
|
||||||
|
RequestType string `json:"RequestType,omitempty"`
|
||||||
|
Settings interface{} `json:"Settings,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// SignalProcessOptions is the options passed to either WCOW or LCOW
|
||||||
|
// to signal a given process.
|
||||||
|
type SignalProcessOptions struct {
|
||||||
|
Signal int `json:,omitempty`
|
||||||
|
}
|
1
vendor/github.com/Microsoft/hcsshim/internal/hcs/hcs.go
generated
vendored
1
vendor/github.com/Microsoft/hcsshim/internal/hcs/hcs.go
generated
vendored
@ -27,6 +27,7 @@ import (
|
|||||||
//sys hcsOpenProcess(computeSystem hcsSystem, pid uint32, process *hcsProcess, result **uint16) (hr error) = vmcompute.HcsOpenProcess?
|
//sys hcsOpenProcess(computeSystem hcsSystem, pid uint32, process *hcsProcess, result **uint16) (hr error) = vmcompute.HcsOpenProcess?
|
||||||
//sys hcsCloseProcess(process hcsProcess) (hr error) = vmcompute.HcsCloseProcess?
|
//sys hcsCloseProcess(process hcsProcess) (hr error) = vmcompute.HcsCloseProcess?
|
||||||
//sys hcsTerminateProcess(process hcsProcess, result **uint16) (hr error) = vmcompute.HcsTerminateProcess?
|
//sys hcsTerminateProcess(process hcsProcess, result **uint16) (hr error) = vmcompute.HcsTerminateProcess?
|
||||||
|
//sys hcsSignalProcess(process hcsProcess, options string, result **uint16) (hr error) = vmcompute.HcsTerminateProcess?
|
||||||
//sys hcsGetProcessInfo(process hcsProcess, processInformation *hcsProcessInformation, result **uint16) (hr error) = vmcompute.HcsGetProcessInfo?
|
//sys hcsGetProcessInfo(process hcsProcess, processInformation *hcsProcessInformation, result **uint16) (hr error) = vmcompute.HcsGetProcessInfo?
|
||||||
//sys hcsGetProcessProperties(process hcsProcess, processProperties **uint16, result **uint16) (hr error) = vmcompute.HcsGetProcessProperties?
|
//sys hcsGetProcessProperties(process hcsProcess, processProperties **uint16, result **uint16) (hr error) = vmcompute.HcsGetProcessProperties?
|
||||||
//sys hcsModifyProcess(process hcsProcess, settings string, result **uint16) (hr error) = vmcompute.HcsModifyProcess?
|
//sys hcsModifyProcess(process hcsProcess, settings string, result **uint16) (hr error) = vmcompute.HcsModifyProcess?
|
||||||
|
34
vendor/github.com/Microsoft/hcsshim/internal/hcs/process.go
generated
vendored
34
vendor/github.com/Microsoft/hcsshim/internal/hcs/process.go
generated
vendored
@ -8,6 +8,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/Microsoft/hcsshim/internal/guestrequest"
|
||||||
"github.com/Microsoft/hcsshim/internal/interop"
|
"github.com/Microsoft/hcsshim/internal/interop"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
@ -71,6 +72,39 @@ func (process *Process) SystemID() string {
|
|||||||
return process.system.ID()
|
return process.system.ID()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Signal signals the process with `options`.
|
||||||
|
func (process *Process) Signal(options guestrequest.SignalProcessOptions) error {
|
||||||
|
process.handleLock.RLock()
|
||||||
|
defer process.handleLock.RUnlock()
|
||||||
|
operation := "Signal"
|
||||||
|
title := "hcsshim::Process::" + operation
|
||||||
|
logrus.Debugf(title+" processid=%d", process.processID)
|
||||||
|
|
||||||
|
if process.handle == 0 {
|
||||||
|
return makeProcessError(process, operation, ErrAlreadyClosed, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
optionsb, err := json.Marshal(options)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
optionsStr := string(optionsb)
|
||||||
|
|
||||||
|
var resultp *uint16
|
||||||
|
completed := false
|
||||||
|
go syscallWatcher(fmt.Sprintf("SignalProcess %s: %d", process.SystemID(), process.Pid()), &completed)
|
||||||
|
err = hcsSignalProcess(process.handle, optionsStr, &resultp)
|
||||||
|
completed = true
|
||||||
|
events := processHcsResult(resultp)
|
||||||
|
if err != nil {
|
||||||
|
return makeProcessError(process, operation, err, events)
|
||||||
|
}
|
||||||
|
|
||||||
|
logrus.Debugf(title+" succeeded processid=%d", process.processID)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// Kill signals the process to terminate but does not wait for it to finish terminating.
|
// Kill signals the process to terminate but does not wait for it to finish terminating.
|
||||||
func (process *Process) Kill() error {
|
func (process *Process) Kill() error {
|
||||||
process.handleLock.RLock()
|
process.handleLock.RLock()
|
||||||
|
33
vendor/github.com/Microsoft/hcsshim/internal/hcs/zsyscall_windows.go
generated
vendored
33
vendor/github.com/Microsoft/hcsshim/internal/hcs/zsyscall_windows.go
generated
vendored
@ -57,12 +57,13 @@ var (
|
|||||||
procHcsOpenProcess = modvmcompute.NewProc("HcsOpenProcess")
|
procHcsOpenProcess = modvmcompute.NewProc("HcsOpenProcess")
|
||||||
procHcsCloseProcess = modvmcompute.NewProc("HcsCloseProcess")
|
procHcsCloseProcess = modvmcompute.NewProc("HcsCloseProcess")
|
||||||
procHcsTerminateProcess = modvmcompute.NewProc("HcsTerminateProcess")
|
procHcsTerminateProcess = modvmcompute.NewProc("HcsTerminateProcess")
|
||||||
procHcsGetProcessInfo = modvmcompute.NewProc("HcsGetProcessInfo")
|
|
||||||
procHcsGetProcessProperties = modvmcompute.NewProc("HcsGetProcessProperties")
|
procHcsGetProcessInfo = modvmcompute.NewProc("HcsGetProcessInfo")
|
||||||
procHcsModifyProcess = modvmcompute.NewProc("HcsModifyProcess")
|
procHcsGetProcessProperties = modvmcompute.NewProc("HcsGetProcessProperties")
|
||||||
procHcsGetServiceProperties = modvmcompute.NewProc("HcsGetServiceProperties")
|
procHcsModifyProcess = modvmcompute.NewProc("HcsModifyProcess")
|
||||||
procHcsRegisterProcessCallback = modvmcompute.NewProc("HcsRegisterProcessCallback")
|
procHcsGetServiceProperties = modvmcompute.NewProc("HcsGetServiceProperties")
|
||||||
procHcsUnregisterProcessCallback = modvmcompute.NewProc("HcsUnregisterProcessCallback")
|
procHcsRegisterProcessCallback = modvmcompute.NewProc("HcsRegisterProcessCallback")
|
||||||
|
procHcsUnregisterProcessCallback = modvmcompute.NewProc("HcsUnregisterProcessCallback")
|
||||||
)
|
)
|
||||||
|
|
||||||
func hcsEnumerateComputeSystems(query string, computeSystems **uint16, result **uint16) (hr error) {
|
func hcsEnumerateComputeSystems(query string, computeSystems **uint16, result **uint16) (hr error) {
|
||||||
@ -356,6 +357,26 @@ func hcsTerminateProcess(process hcsProcess, result **uint16) (hr error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func hcsSignalProcess(process hcsProcess, options string, result **uint16) (hr error) {
|
||||||
|
var _p0 *uint16
|
||||||
|
_p0, hr = syscall.UTF16PtrFromString(options)
|
||||||
|
if hr != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return _hcsSignalProcess(process, _p0, result)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _hcsSignalProcess(process hcsProcess, options *uint16, result **uint16) (hr error) {
|
||||||
|
if hr = procHcsTerminateProcess.Find(); hr != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, _ := syscall.Syscall(procHcsTerminateProcess.Addr(), 3, uintptr(process), uintptr(unsafe.Pointer(options)), uintptr(unsafe.Pointer(result)))
|
||||||
|
if int32(r0) < 0 {
|
||||||
|
hr = interop.Win32FromHresult(r0)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func hcsGetProcessInfo(process hcsProcess, processInformation *hcsProcessInformation, result **uint16) (hr error) {
|
func hcsGetProcessInfo(process hcsProcess, processInformation *hcsProcessInformation, result **uint16) (hr error) {
|
||||||
if hr = procHcsGetProcessInfo.Find(); hr != nil {
|
if hr = procHcsGetProcessInfo.Find(); hr != nil {
|
||||||
return
|
return
|
||||||
|
23
vendor/github.com/Microsoft/hcsshim/internal/schema1/schema1.go
generated
vendored
23
vendor/github.com/Microsoft/hcsshim/internal/schema1/schema1.go
generated
vendored
@ -3,6 +3,8 @@ package schema1
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/Microsoft/hcsshim/internal/schema2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ProcessConfig is used as both the input of Container.CreateProcess
|
// ProcessConfig is used as both the input of Container.CreateProcess
|
||||||
@ -115,9 +117,10 @@ type ComputeSystemQuery struct {
|
|||||||
type PropertyType string
|
type PropertyType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PropertyTypeStatistics PropertyType = "Statistics"
|
PropertyTypeStatistics PropertyType = "Statistics" // V1 and V2
|
||||||
PropertyTypeProcessList = "ProcessList"
|
PropertyTypeProcessList = "ProcessList" // V1 and V2
|
||||||
PropertyTypeMappedVirtualDisk = "MappedVirtualDisk"
|
PropertyTypeMappedVirtualDisk = "MappedVirtualDisk" // Not supported in V2 schema call
|
||||||
|
PropertyTypeGuestConnection = "GuestConnection" // V1 and V2. Nil return from HCS before RS5
|
||||||
)
|
)
|
||||||
|
|
||||||
type PropertyQuery struct {
|
type PropertyQuery struct {
|
||||||
@ -142,6 +145,7 @@ type ContainerProperties struct {
|
|||||||
Statistics Statistics `json:",omitempty"`
|
Statistics Statistics `json:",omitempty"`
|
||||||
ProcessList []ProcessListItem `json:",omitempty"`
|
ProcessList []ProcessListItem `json:",omitempty"`
|
||||||
MappedVirtualDiskControllers map[int]MappedVirtualDiskController `json:",omitempty"`
|
MappedVirtualDiskControllers map[int]MappedVirtualDiskController `json:",omitempty"`
|
||||||
|
GuestConnectionInfo GuestConnectionInfo `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MemoryStats holds the memory statistics for a container
|
// MemoryStats holds the memory statistics for a container
|
||||||
@ -206,6 +210,19 @@ type MappedVirtualDiskController struct {
|
|||||||
MappedVirtualDisks map[int]MappedVirtualDisk `json:",omitempty"`
|
MappedVirtualDisks map[int]MappedVirtualDisk `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GuestDefinedCapabilities is part of the GuestConnectionInfo returned by a GuestConnection call on a utility VM
|
||||||
|
type GuestDefinedCapabilities struct {
|
||||||
|
NamespaceAddRequestSupported bool `json:",omitempty"`
|
||||||
|
SignalProcessSupported bool `json:",omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// GuestConnectionInfo is the structure of an iterm return by a GuestConnection call on a utility VM
|
||||||
|
type GuestConnectionInfo struct {
|
||||||
|
SupportedSchemaVersions []hcsschema.Version `json:",omitempty"`
|
||||||
|
ProtocolVersion uint32 `json:",omitempty"`
|
||||||
|
GuestDefinedCapabilities GuestDefinedCapabilities `json:",omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// Type of Request Support in ModifySystem
|
// Type of Request Support in ModifySystem
|
||||||
type RequestType string
|
type RequestType string
|
||||||
|
|
||||||
|
31
vendor/github.com/Microsoft/hcsshim/internal/schema2/attachment.go
generated
vendored
Normal file
31
vendor/github.com/Microsoft/hcsshim/internal/schema2/attachment.go
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Attachment struct {
|
||||||
|
|
||||||
|
Type_ string `json:"Type,omitempty"`
|
||||||
|
|
||||||
|
Path string `json:"Path,omitempty"`
|
||||||
|
|
||||||
|
IgnoreFlushes bool `json:"IgnoreFlushes,omitempty"`
|
||||||
|
|
||||||
|
CachingMode string `json:"CachingMode,omitempty"`
|
||||||
|
|
||||||
|
NoWriteHardening bool `json:"NoWriteHardening,omitempty"`
|
||||||
|
|
||||||
|
DisableExpansionOptimization bool `json:"DisableExpansionOptimization,omitempty"`
|
||||||
|
|
||||||
|
IgnoreRelativeLocator bool `json:"IgnoreRelativeLocator,omitempty"`
|
||||||
|
|
||||||
|
CaptureIoAttributionContext bool `json:"CaptureIoAttributionContext,omitempty"`
|
||||||
|
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
}
|
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/battery.go
generated
vendored
Normal file
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/battery.go
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Battery struct {
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/cache_query_stats_response.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/cache_query_stats_response.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type CacheQueryStatsResponse struct {
|
||||||
|
|
||||||
|
L3OccupancyBytes int32 `json:"L3OccupancyBytes,omitempty"`
|
||||||
|
|
||||||
|
L3TotalBwBytes int32 `json:"L3TotalBwBytes,omitempty"`
|
||||||
|
|
||||||
|
L3LocalBwBytes int32 `json:"L3LocalBwBytes,omitempty"`
|
||||||
|
}
|
25
vendor/github.com/Microsoft/hcsshim/internal/schema2/chipset.go
generated
vendored
Normal file
25
vendor/github.com/Microsoft/hcsshim/internal/schema2/chipset.go
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Chipset struct {
|
||||||
|
|
||||||
|
Uefi *Uefi `json:"Uefi,omitempty"`
|
||||||
|
|
||||||
|
IsNumLockDisabled bool `json:"IsNumLockDisabled,omitempty"`
|
||||||
|
|
||||||
|
BaseBoardSerialNumber string `json:"BaseBoardSerialNumber,omitempty"`
|
||||||
|
|
||||||
|
ChassisSerialNumber string `json:"ChassisSerialNumber,omitempty"`
|
||||||
|
|
||||||
|
ChassisAssetTag string `json:"ChassisAssetTag,omitempty"`
|
||||||
|
|
||||||
|
UseUtc bool `json:"UseUtc,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/close_handle.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/close_handle.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type CloseHandle struct {
|
||||||
|
|
||||||
|
Handle string `json:"Handle,omitempty"`
|
||||||
|
}
|
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/com_port.go
generated
vendored
Normal file
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/com_port.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// ComPort specifies the named pipe that will be used for the port, with empty string indicating a disconnected port.
|
||||||
|
type ComPort struct {
|
||||||
|
|
||||||
|
NamedPipe string `json:"NamedPipe,omitempty"`
|
||||||
|
|
||||||
|
OptimizeForDebugger bool `json:"OptimizeForDebugger,omitempty"`
|
||||||
|
}
|
27
vendor/github.com/Microsoft/hcsshim/internal/schema2/compute_system.go
generated
vendored
Normal file
27
vendor/github.com/Microsoft/hcsshim/internal/schema2/compute_system.go
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type ComputeSystem struct {
|
||||||
|
|
||||||
|
Owner string `json:"Owner,omitempty"`
|
||||||
|
|
||||||
|
SchemaVersion *Version `json:"SchemaVersion,omitempty"`
|
||||||
|
|
||||||
|
HostingSystemId string `json:"HostingSystemId,omitempty"`
|
||||||
|
|
||||||
|
HostedSystem *HostedSystem `json:"HostedSystem,omitempty"`
|
||||||
|
|
||||||
|
Container *Container `json:"Container,omitempty"`
|
||||||
|
|
||||||
|
VirtualMachine *VirtualMachine `json:"VirtualMachine,omitempty"`
|
||||||
|
|
||||||
|
ShouldTerminateOnLastHandleClosed bool `json:"ShouldTerminateOnLastHandleClosed,omitempty"`
|
||||||
|
}
|
72
vendor/github.com/Microsoft/hcsshim/internal/schema2/configuration.go
generated
vendored
Normal file
72
vendor/github.com/Microsoft/hcsshim/internal/schema2/configuration.go
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
)
|
||||||
|
|
||||||
|
// contextKeys are used to identify the type of value in the context.
|
||||||
|
// Since these are string, it is possible to get a short description of the
|
||||||
|
// context key for logging and debugging using key.String().
|
||||||
|
|
||||||
|
type contextKey string
|
||||||
|
|
||||||
|
func (c contextKey) String() string {
|
||||||
|
return "auth " + string(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
|
||||||
|
ContextOAuth2 = contextKey("token")
|
||||||
|
|
||||||
|
// ContextBasicAuth takes BasicAuth as authentication for the request.
|
||||||
|
ContextBasicAuth = contextKey("basic")
|
||||||
|
|
||||||
|
// ContextAccessToken takes a string oauth2 access token as authentication for the request.
|
||||||
|
ContextAccessToken = contextKey("accesstoken")
|
||||||
|
|
||||||
|
// ContextAPIKey takes an APIKey as authentication for the request
|
||||||
|
ContextAPIKey = contextKey("apikey")
|
||||||
|
)
|
||||||
|
|
||||||
|
// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
|
||||||
|
type BasicAuth struct {
|
||||||
|
UserName string `json:"userName,omitempty"`
|
||||||
|
Password string `json:"password,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// APIKey provides API key based authentication to a request passed via context using ContextAPIKey
|
||||||
|
type APIKey struct {
|
||||||
|
Key string
|
||||||
|
Prefix string
|
||||||
|
}
|
||||||
|
|
||||||
|
type Configuration struct {
|
||||||
|
BasePath string `json:"basePath,omitempty"`
|
||||||
|
Host string `json:"host,omitempty"`
|
||||||
|
Scheme string `json:"scheme,omitempty"`
|
||||||
|
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||||
|
UserAgent string `json:"userAgent,omitempty"`
|
||||||
|
HTTPClient *http.Client
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewConfiguration() *Configuration {
|
||||||
|
cfg := &Configuration{
|
||||||
|
BasePath: "https://localhost",
|
||||||
|
DefaultHeader: make(map[string]string),
|
||||||
|
UserAgent: "Swagger-Codegen/2.1.0/go",
|
||||||
|
}
|
||||||
|
return cfg
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Configuration) AddDefaultHeader(key string, value string) {
|
||||||
|
c.DefaultHeader[key] = value
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/console_size.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/console_size.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type ConsoleSize struct {
|
||||||
|
|
||||||
|
Height int32 `json:"Height,omitempty"`
|
||||||
|
|
||||||
|
Width int32 `json:"Width,omitempty"`
|
||||||
|
}
|
35
vendor/github.com/Microsoft/hcsshim/internal/schema2/container.go
generated
vendored
Normal file
35
vendor/github.com/Microsoft/hcsshim/internal/schema2/container.go
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Container struct {
|
||||||
|
|
||||||
|
GuestOs *GuestOs `json:"GuestOs,omitempty"`
|
||||||
|
|
||||||
|
Storage *Storage `json:"Storage,omitempty"`
|
||||||
|
|
||||||
|
MappedDirectories []MappedDirectory `json:"MappedDirectories,omitempty"`
|
||||||
|
|
||||||
|
MappedPipes []MappedPipe `json:"MappedPipes,omitempty"`
|
||||||
|
|
||||||
|
Memory *Memory `json:"Memory,omitempty"`
|
||||||
|
|
||||||
|
Processor *Processor `json:"Processor,omitempty"`
|
||||||
|
|
||||||
|
Networking *Networking `json:"Networking,omitempty"`
|
||||||
|
|
||||||
|
HvSocket *HvSocket `json:"HvSocket,omitempty"`
|
||||||
|
|
||||||
|
ContainerCredentialGuard *ContainerCredentialGuardState `json:"ContainerCredentialGuard,omitempty"`
|
||||||
|
|
||||||
|
RegistryChanges *RegistryChanges `json:"RegistryChanges,omitempty"`
|
||||||
|
|
||||||
|
AssignedDevices []Device `json:"AssignedDevices,omitempty"`
|
||||||
|
}
|
25
vendor/github.com/Microsoft/hcsshim/internal/schema2/container_credential_guard_state.go
generated
vendored
Normal file
25
vendor/github.com/Microsoft/hcsshim/internal/schema2/container_credential_guard_state.go
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type ContainerCredentialGuardState struct {
|
||||||
|
|
||||||
|
// Authentication cookie for calls to a Container Credential Guard instance.
|
||||||
|
Cookie string `json:"Cookie,omitempty"`
|
||||||
|
|
||||||
|
// Name of the RPC endpoint of the Container Credential Guard instance.
|
||||||
|
RpcEndpoint string `json:"RpcEndpoint,omitempty"`
|
||||||
|
|
||||||
|
// Transport used for the configured Container Credential Guard instance.
|
||||||
|
Transport string `json:"Transport,omitempty"`
|
||||||
|
|
||||||
|
// Credential spec used for the configured Container Credential Guard instance.
|
||||||
|
CredentialSpec string `json:"CredentialSpec,omitempty"`
|
||||||
|
}
|
26
vendor/github.com/Microsoft/hcsshim/internal/schema2/container_memory_information.go
generated
vendored
Normal file
26
vendor/github.com/Microsoft/hcsshim/internal/schema2/container_memory_information.go
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// memory usage as viewed from within the container
|
||||||
|
type ContainerMemoryInformation struct {
|
||||||
|
|
||||||
|
TotalPhysicalBytes int32 `json:"TotalPhysicalBytes,omitempty"`
|
||||||
|
|
||||||
|
TotalUsage int32 `json:"TotalUsage,omitempty"`
|
||||||
|
|
||||||
|
CommittedBytes int32 `json:"CommittedBytes,omitempty"`
|
||||||
|
|
||||||
|
SharedCommittedBytes int32 `json:"SharedCommittedBytes,omitempty"`
|
||||||
|
|
||||||
|
CommitLimitBytes int32 `json:"CommitLimitBytes,omitempty"`
|
||||||
|
|
||||||
|
PeakCommitmentBytes int32 `json:"PeakCommitmentBytes,omitempty"`
|
||||||
|
}
|
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/device.go
generated
vendored
Normal file
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/device.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Device struct {
|
||||||
|
|
||||||
|
// The interface class guid of the device to assign to container.
|
||||||
|
InterfaceClassGuid string `json:"InterfaceClassGuid,omitempty"`
|
||||||
|
}
|
43
vendor/github.com/Microsoft/hcsshim/internal/schema2/devices.go
generated
vendored
Normal file
43
vendor/github.com/Microsoft/hcsshim/internal/schema2/devices.go
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Devices struct {
|
||||||
|
|
||||||
|
ComPorts map[string]ComPort `json:"ComPorts,omitempty"`
|
||||||
|
|
||||||
|
Scsi map[string]Scsi `json:"Scsi,omitempty"`
|
||||||
|
|
||||||
|
VirtualPMem *VirtualPMemController `json:"VirtualPMem,omitempty"`
|
||||||
|
|
||||||
|
NetworkAdapters map[string]NetworkAdapter `json:"NetworkAdapters,omitempty"`
|
||||||
|
|
||||||
|
VideoMonitor *VideoMonitor `json:"VideoMonitor,omitempty"`
|
||||||
|
|
||||||
|
Keyboard *Keyboard `json:"Keyboard,omitempty"`
|
||||||
|
|
||||||
|
Mouse *Mouse `json:"Mouse,omitempty"`
|
||||||
|
|
||||||
|
HvSocket *HvSocket2 `json:"HvSocket,omitempty"`
|
||||||
|
|
||||||
|
EnhancedModeVideo *EnhancedModeVideo `json:"EnhancedModeVideo,omitempty"`
|
||||||
|
|
||||||
|
GuestCrashReporting *GuestCrashReporting `json:"GuestCrashReporting,omitempty"`
|
||||||
|
|
||||||
|
VirtualSmb *VirtualSmb `json:"VirtualSmb,omitempty"`
|
||||||
|
|
||||||
|
Plan9 *Plan9 `json:"Plan9,omitempty"`
|
||||||
|
|
||||||
|
Battery *Battery `json:"Battery,omitempty"`
|
||||||
|
|
||||||
|
FlexibleIov map[string]FlexibleIoDevice `json:"FlexibleIov,omitempty"`
|
||||||
|
|
||||||
|
SharedMemory *SharedMemoryConfiguration `json:"SharedMemory,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/enhanced_mode_video.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/enhanced_mode_video.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type EnhancedModeVideo struct {
|
||||||
|
|
||||||
|
ConnectionOptions *RdpConnectionOptions `json:"ConnectionOptions,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/flexible_io_device.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/flexible_io_device.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type FlexibleIoDevice struct {
|
||||||
|
|
||||||
|
EmulatorId string `json:"EmulatorId,omitempty"`
|
||||||
|
|
||||||
|
HostingModel string `json:"HostingModel,omitempty"`
|
||||||
|
|
||||||
|
Configuration []string `json:"Configuration,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_connection.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_connection.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type GuestConnection struct {
|
||||||
|
|
||||||
|
// Use Vsock rather than Hyper-V sockets to communicate with the guest service.
|
||||||
|
UseVsock bool `json:"UseVsock,omitempty"`
|
||||||
|
|
||||||
|
// Don't disconnect the guest connection when pausing the virtual machine.
|
||||||
|
UseConnectedSuspend bool `json:"UseConnectedSuspend,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_connection_info.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_connection_info.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Information about the guest.
|
||||||
|
type GuestConnectionInfo struct {
|
||||||
|
|
||||||
|
// Each schema version x.y stands for the range of versions a.b where a==x and b<=y. This list comes from the SupportedSchemaVersions field in GcsCapabilities.
|
||||||
|
SupportedSchemaVersions []Version `json:"SupportedSchemaVersions,omitempty"`
|
||||||
|
|
||||||
|
ProtocolVersion int32 `json:"ProtocolVersion,omitempty"`
|
||||||
|
|
||||||
|
GuestDefinedCapabilities *interface{} `json:"GuestDefinedCapabilities,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_crash_reporting.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_crash_reporting.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type GuestCrashReporting struct {
|
||||||
|
|
||||||
|
WindowsCrashSettings *WindowsCrashReporting `json:"WindowsCrashSettings,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_os.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_os.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type GuestOs struct {
|
||||||
|
|
||||||
|
HostName string `json:"HostName,omitempty"`
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_state.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/guest_state.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type GuestState struct {
|
||||||
|
|
||||||
|
// The path to an existing file uses for persistent guest state storage. An empty string indicates the system should initialize new transient, in-memory guest state.
|
||||||
|
GuestStateFilePath string `json:"GuestStateFilePath,omitempty"`
|
||||||
|
|
||||||
|
// The path to an existing file for persistent runtime state storage. An empty string indicates the system should initialize new transient, in-memory runtime state.
|
||||||
|
RuntimeStateFilePath string `json:"RuntimeStateFilePath,omitempty"`
|
||||||
|
|
||||||
|
// If true, the guest state and runtime state files will be used as templates to populate transient, in-memory state instead of using the files as persistent backing store.
|
||||||
|
ForceTransientState bool `json:"ForceTransientState,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/hosted_system.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/hosted_system.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type HostedSystem struct {
|
||||||
|
|
||||||
|
SchemaVersion *Version `json:"SchemaVersion,omitempty"`
|
||||||
|
|
||||||
|
Container *Container `json:"Container,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type HvSocket struct {
|
||||||
|
|
||||||
|
Config *HvSocketSystemConfig `json:"Config,omitempty"`
|
||||||
|
|
||||||
|
EnablePowerShellDirect bool `json:"EnablePowerShellDirect,omitempty"`
|
||||||
|
}
|
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_2.go
generated
vendored
Normal file
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_2.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// HvSocket configuration for a VM
|
||||||
|
type HvSocket2 struct {
|
||||||
|
|
||||||
|
HvSocketConfig *HvSocketSystemConfig `json:"HvSocketConfig,omitempty"`
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_service_config.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_service_config.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type HvSocketServiceConfig struct {
|
||||||
|
|
||||||
|
// SDDL string that HvSocket will check before allowing a host process to bind to this specific service. If not specified, defaults to the system DefaultBindSecurityDescriptor, defined in HvSocketSystemWpConfig in V1.
|
||||||
|
BindSecurityDescriptor string `json:"BindSecurityDescriptor,omitempty"`
|
||||||
|
|
||||||
|
// SDDL string that HvSocket will check before allowing a host process to connect to this specific service. If not specified, defaults to the system DefaultConnectSecurityDescriptor, defined in HvSocketSystemWpConfig in V1.
|
||||||
|
ConnectSecurityDescriptor string `json:"ConnectSecurityDescriptor,omitempty"`
|
||||||
|
|
||||||
|
// If true, HvSocket will process wildcard binds for this service/system combination. Wildcard binds are secured in the registry at SOFTWARE/Microsoft/Windows NT/CurrentVersion/Virtualization/HvSocket/WildcardDescriptors
|
||||||
|
AllowWildcardBinds bool `json:"AllowWildcardBinds,omitempty"`
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_system_config.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/hv_socket_system_config.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// This is the HCS Schema version of the HvSocket configuration. The VMWP version is located in Config.Devices.IC in V1.
|
||||||
|
type HvSocketSystemConfig struct {
|
||||||
|
|
||||||
|
// SDDL string that HvSocket will check before allowing a host process to bind to an unlisted service for this specific container/VM (not wildcard binds).
|
||||||
|
DefaultBindSecurityDescriptor string `json:"DefaultBindSecurityDescriptor,omitempty"`
|
||||||
|
|
||||||
|
// SDDL string that HvSocket will check before allowing a host process to connect to an unlisted service in the VM/container.
|
||||||
|
DefaultConnectSecurityDescriptor string `json:"DefaultConnectSecurityDescriptor,omitempty"`
|
||||||
|
|
||||||
|
ServiceTable map[string]HvSocketServiceConfig `json:"ServiceTable,omitempty"`
|
||||||
|
}
|
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/keyboard.go
generated
vendored
Normal file
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/keyboard.go
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Keyboard struct {
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/layer.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/layer.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Layer struct {
|
||||||
|
|
||||||
|
Id string `json:"Id,omitempty"`
|
||||||
|
|
||||||
|
Path string `json:"Path,omitempty"`
|
||||||
|
|
||||||
|
PathType string `json:"PathType,omitempty"`
|
||||||
|
|
||||||
|
// Unspecified defaults to Enabled
|
||||||
|
Cache string `json:"Cache,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/mapped_directory.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/mapped_directory.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type MappedDirectory struct {
|
||||||
|
|
||||||
|
HostPath string `json:"HostPath,omitempty"`
|
||||||
|
|
||||||
|
HostPathType string `json:"HostPathType,omitempty"`
|
||||||
|
|
||||||
|
ContainerPath string `json:"ContainerPath,omitempty"`
|
||||||
|
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/mapped_pipe.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/mapped_pipe.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type MappedPipe struct {
|
||||||
|
|
||||||
|
ContainerPipeName string `json:"ContainerPipeName,omitempty"`
|
||||||
|
|
||||||
|
HostPath string `json:"HostPath,omitempty"`
|
||||||
|
|
||||||
|
HostPathType string `json:"HostPathType,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Memory struct {
|
||||||
|
|
||||||
|
SizeInMB int32 `json:"SizeInMB,omitempty"`
|
||||||
|
}
|
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_2.go
generated
vendored
Normal file
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_2.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Memory2 struct {
|
||||||
|
|
||||||
|
SizeInMB int32 `json:"SizeInMB,omitempty"`
|
||||||
|
|
||||||
|
AllowOvercommit bool `json:"AllowOvercommit,omitempty"`
|
||||||
|
|
||||||
|
EnableHotHint bool `json:"EnableHotHint,omitempty"`
|
||||||
|
|
||||||
|
EnableColdHint bool `json:"EnableColdHint,omitempty"`
|
||||||
|
|
||||||
|
EnableEpf bool `json:"EnableEpf,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_information_for_vm.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_information_for_vm.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type MemoryInformationForVm struct {
|
||||||
|
|
||||||
|
VirtualNodeCount int32 `json:"VirtualNodeCount,omitempty"`
|
||||||
|
|
||||||
|
VirtualMachineMemory *VmMemory `json:"VirtualMachineMemory,omitempty"`
|
||||||
|
|
||||||
|
VirtualNodes []VirtualNodeInfo `json:"VirtualNodes,omitempty"`
|
||||||
|
}
|
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_stats.go
generated
vendored
Normal file
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_stats.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Memory runtime statistics
|
||||||
|
type MemoryStats struct {
|
||||||
|
|
||||||
|
MemoryUsageCommitBytes int32 `json:"MemoryUsageCommitBytes,omitempty"`
|
||||||
|
|
||||||
|
MemoryUsageCommitPeakBytes int32 `json:"MemoryUsageCommitPeakBytes,omitempty"`
|
||||||
|
|
||||||
|
MemoryUsagePrivateWorkingSetBytes int32 `json:"MemoryUsagePrivateWorkingSetBytes,omitempty"`
|
||||||
|
}
|
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/modify_setting_request.go
generated
vendored
Normal file
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/modify_setting_request.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type ModifySettingRequest struct {
|
||||||
|
ResourcePath string `json:"ResourcePath,omitempty"`
|
||||||
|
|
||||||
|
RequestType string `json:"RequestType,omitempty"`
|
||||||
|
|
||||||
|
Settings interface{} `json:"Settings,omitempty"` // NOTE: Swagger generated as *interface{}. Locally updated
|
||||||
|
|
||||||
|
GuestRequest interface{} `json:"GuestRequest,omitempty"` // NOTE: Swagger generated as *interface{}. Locally updated
|
||||||
|
}
|
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/mouse.go
generated
vendored
Normal file
13
vendor/github.com/Microsoft/hcsshim/internal/schema2/mouse.go
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Mouse struct {
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/network_adapter.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/network_adapter.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type NetworkAdapter struct {
|
||||||
|
|
||||||
|
EndpointId string `json:"EndpointId,omitempty"`
|
||||||
|
|
||||||
|
MacAddress string `json:"MacAddress,omitempty"`
|
||||||
|
}
|
24
vendor/github.com/Microsoft/hcsshim/internal/schema2/networking.go
generated
vendored
Normal file
24
vendor/github.com/Microsoft/hcsshim/internal/schema2/networking.go
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Networking struct {
|
||||||
|
|
||||||
|
AllowUnqualifiedDnsQuery bool `json:"AllowUnqualifiedDnsQuery,omitempty"`
|
||||||
|
|
||||||
|
DnsSearchList string `json:"DnsSearchList,omitempty"`
|
||||||
|
|
||||||
|
NetworkSharedContainerName string `json:"NetworkSharedContainerName,omitempty"`
|
||||||
|
|
||||||
|
// Guid in windows; string in linux
|
||||||
|
Namespace string `json:"Namespace,omitempty"`
|
||||||
|
|
||||||
|
NetworkAdapters []string `json:"NetworkAdapters,omitempty"`
|
||||||
|
}
|
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/pause_notification.go
generated
vendored
Normal file
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/pause_notification.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Notification data that is indicated to components running in the Virtual Machine.
|
||||||
|
type PauseNotification struct {
|
||||||
|
|
||||||
|
Reason string `json:"Reason,omitempty"`
|
||||||
|
}
|
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/pause_options.go
generated
vendored
Normal file
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/pause_options.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Options for HcsPauseComputeSystem
|
||||||
|
type PauseOptions struct {
|
||||||
|
|
||||||
|
SuspensionLevel string `json:"SuspensionLevel,omitempty"`
|
||||||
|
|
||||||
|
HostedNotification *PauseNotification `json:"HostedNotification,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/plan9.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/plan9.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Plan9 struct {
|
||||||
|
|
||||||
|
Shares []Plan9Share `json:"Shares,omitempty"`
|
||||||
|
}
|
26
vendor/github.com/Microsoft/hcsshim/internal/schema2/plan9_share.go
generated
vendored
Normal file
26
vendor/github.com/Microsoft/hcsshim/internal/schema2/plan9_share.go
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Plan9Share struct {
|
||||||
|
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
|
||||||
|
// The name by which the guest operation system can access this share, via the aname parameter in the Plan9 protocol.
|
||||||
|
AccessName string `json:"AccessName,omitempty"`
|
||||||
|
|
||||||
|
Path string `json:"Path,omitempty"`
|
||||||
|
|
||||||
|
Port int32 `json:"Port,omitempty"`
|
||||||
|
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
|
||||||
|
UseShareRootIdentity bool `json:"UseShareRootIdentity,omitempty"`
|
||||||
|
}
|
34
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_details.go
generated
vendored
Normal file
34
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_details.go
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Information about a process running in a container
|
||||||
|
type ProcessDetails struct {
|
||||||
|
|
||||||
|
ProcessId int32 `json:"ProcessId,omitempty"`
|
||||||
|
|
||||||
|
ImageName string `json:"ImageName,omitempty"`
|
||||||
|
|
||||||
|
CreateTimestamp time.Time `json:"CreateTimestamp,omitempty"`
|
||||||
|
|
||||||
|
UserTime100ns int32 `json:"UserTime100ns,omitempty"`
|
||||||
|
|
||||||
|
KernelTime100ns int32 `json:"KernelTime100ns,omitempty"`
|
||||||
|
|
||||||
|
MemoryCommitBytes int32 `json:"MemoryCommitBytes,omitempty"`
|
||||||
|
|
||||||
|
MemoryWorkingSetPrivateBytes int32 `json:"MemoryWorkingSetPrivateBytes,omitempty"`
|
||||||
|
|
||||||
|
MemoryWorkingSetSharedBytes int32 `json:"MemoryWorkingSetSharedBytes,omitempty"`
|
||||||
|
}
|
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_modify_request.go
generated
vendored
Normal file
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_modify_request.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Passed to HcsRpc_ModifyProcess
|
||||||
|
type ProcessModifyRequest struct {
|
||||||
|
|
||||||
|
Operation string `json:"Operation,omitempty"`
|
||||||
|
|
||||||
|
ConsoleSize *ConsoleSize `json:"ConsoleSize,omitempty"`
|
||||||
|
|
||||||
|
CloseHandle *CloseHandle `json:"CloseHandle,omitempty"`
|
||||||
|
}
|
47
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_parameters.go
generated
vendored
Normal file
47
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_parameters.go
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type ProcessParameters struct {
|
||||||
|
|
||||||
|
ApplicationName string `json:"ApplicationName,omitempty"`
|
||||||
|
|
||||||
|
CommandLine string `json:"CommandLine,omitempty"`
|
||||||
|
|
||||||
|
// optional alternative to CommandLine, currently only supported by Linux GCS
|
||||||
|
CommandArgs []string `json:"CommandArgs,omitempty"`
|
||||||
|
|
||||||
|
User string `json:"User,omitempty"`
|
||||||
|
|
||||||
|
WorkingDirectory string `json:"WorkingDirectory,omitempty"`
|
||||||
|
|
||||||
|
Environment map[string]string `json:"Environment,omitempty"`
|
||||||
|
|
||||||
|
// if set, will run as low-privilege process
|
||||||
|
RestrictedToken bool `json:"RestrictedToken,omitempty"`
|
||||||
|
|
||||||
|
// if set, ignore StdErrPipe
|
||||||
|
EmulateConsole bool `json:"EmulateConsole,omitempty"`
|
||||||
|
|
||||||
|
CreateStdInPipe bool `json:"CreateStdInPipe,omitempty"`
|
||||||
|
|
||||||
|
CreateStdOutPipe bool `json:"CreateStdOutPipe,omitempty"`
|
||||||
|
|
||||||
|
CreateStdErrPipe bool `json:"CreateStdErrPipe,omitempty"`
|
||||||
|
|
||||||
|
// height then width
|
||||||
|
ConsoleSize []int32 `json:"ConsoleSize,omitempty"`
|
||||||
|
|
||||||
|
// if set, find an existing session for the user and create the process in it
|
||||||
|
UseExistingLogin bool `json:"UseExistingLogin,omitempty"`
|
||||||
|
|
||||||
|
// if set, use the legacy console instead of conhost
|
||||||
|
UseLegacyConsole bool `json:"UseLegacyConsole,omitempty"`
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_status.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/process_status.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Status of a process running in a container
|
||||||
|
type ProcessStatus struct {
|
||||||
|
|
||||||
|
ProcessId int32 `json:"ProcessId,omitempty"`
|
||||||
|
|
||||||
|
Exited bool `json:"Exited,omitempty"`
|
||||||
|
|
||||||
|
ExitCode int32 `json:"ExitCode,omitempty"`
|
||||||
|
|
||||||
|
LastWaitResult int32 `json:"LastWaitResult,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Processor struct {
|
||||||
|
|
||||||
|
Count int32 `json:"Count,omitempty"`
|
||||||
|
|
||||||
|
Maximum int32 `json:"Maximum,omitempty"`
|
||||||
|
|
||||||
|
Weight int32 `json:"Weight,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor_2.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor_2.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Processor2 struct {
|
||||||
|
|
||||||
|
Count int32 `json:"Count,omitempty"`
|
||||||
|
|
||||||
|
Limit int32 `json:"Limit,omitempty"`
|
||||||
|
|
||||||
|
Weight int32 `json:"Weight,omitempty"`
|
||||||
|
|
||||||
|
ExposeVirtualizationExtensions bool `json:"ExposeVirtualizationExtensions,omitempty"`
|
||||||
|
}
|
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor_stats.go
generated
vendored
Normal file
20
vendor/github.com/Microsoft/hcsshim/internal/schema2/processor_stats.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// CPU runtime statistics
|
||||||
|
type ProcessorStats struct {
|
||||||
|
|
||||||
|
TotalRuntime100ns int32 `json:"TotalRuntime100ns,omitempty"`
|
||||||
|
|
||||||
|
RuntimeUser100ns int32 `json:"RuntimeUser100ns,omitempty"`
|
||||||
|
|
||||||
|
RuntimeKernel100ns int32 `json:"RuntimeKernel100ns,omitempty"`
|
||||||
|
}
|
47
vendor/github.com/Microsoft/hcsshim/internal/schema2/properties.go
generated
vendored
Normal file
47
vendor/github.com/Microsoft/hcsshim/internal/schema2/properties.go
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Properties struct {
|
||||||
|
|
||||||
|
Id string `json:"Id,omitempty"`
|
||||||
|
|
||||||
|
SystemType string `json:"SystemType,omitempty"`
|
||||||
|
|
||||||
|
RuntimeOsType string `json:"RuntimeOsType,omitempty"`
|
||||||
|
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
|
||||||
|
Owner string `json:"Owner,omitempty"`
|
||||||
|
|
||||||
|
RuntimeId string `json:"RuntimeId,omitempty"`
|
||||||
|
|
||||||
|
RuntimeTemplateId string `json:"RuntimeTemplateId,omitempty"`
|
||||||
|
|
||||||
|
State string `json:"State,omitempty"`
|
||||||
|
|
||||||
|
Stopped bool `json:"Stopped,omitempty"`
|
||||||
|
|
||||||
|
ExitType string `json:"ExitType,omitempty"`
|
||||||
|
|
||||||
|
Memory *MemoryInformationForVm `json:"Memory,omitempty"`
|
||||||
|
|
||||||
|
Statistics *Statistics `json:"Statistics,omitempty"`
|
||||||
|
|
||||||
|
ProcessList []ProcessDetails `json:"ProcessList,omitempty"`
|
||||||
|
|
||||||
|
TerminateOnLastHandleClosed bool `json:"TerminateOnLastHandleClosed,omitempty"`
|
||||||
|
|
||||||
|
HostingSystemId string `json:"HostingSystemId,omitempty"`
|
||||||
|
|
||||||
|
SharedMemoryRegionInfo []SharedMemoryRegionInfo `json:"SharedMemoryRegionInfo,omitempty"`
|
||||||
|
|
||||||
|
GuestConnectionInfo *GuestConnectionInfo `json:"GuestConnectionInfo,omitempty"`
|
||||||
|
}
|
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/property_query.go
generated
vendored
Normal file
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/property_query.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// By default the basic properties will be returned. This query provides a way to request specific properties.
|
||||||
|
type PropertyQuery struct {
|
||||||
|
|
||||||
|
PropertyTypes []string `json:"PropertyTypes,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/rdp_connection_options.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/rdp_connection_options.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type RdpConnectionOptions struct {
|
||||||
|
|
||||||
|
AccessSids []string `json:"AccessSids,omitempty"`
|
||||||
|
|
||||||
|
NamedPipe string `json:"NamedPipe,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_changes.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_changes.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type RegistryChanges struct {
|
||||||
|
|
||||||
|
AddValues []RegistryValue `json:"AddValues,omitempty"`
|
||||||
|
|
||||||
|
DeleteKeys []RegistryKey `json:"DeleteKeys,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_key.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_key.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type RegistryKey struct {
|
||||||
|
|
||||||
|
Hive string `json:"Hive,omitempty"`
|
||||||
|
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
|
||||||
|
Volatile bool `json:"Volatile,omitempty"`
|
||||||
|
}
|
31
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_value.go
generated
vendored
Normal file
31
vendor/github.com/Microsoft/hcsshim/internal/schema2/registry_value.go
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type RegistryValue struct {
|
||||||
|
|
||||||
|
Key *RegistryKey `json:"Key,omitempty"`
|
||||||
|
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
|
||||||
|
Type_ string `json:"Type,omitempty"`
|
||||||
|
|
||||||
|
// One and only one value type must be set.
|
||||||
|
StringValue string `json:"StringValue,omitempty"`
|
||||||
|
|
||||||
|
BinaryValue string `json:"BinaryValue,omitempty"`
|
||||||
|
|
||||||
|
DWordValue int32 `json:"DWordValue,omitempty"`
|
||||||
|
|
||||||
|
QWordValue int32 `json:"QWordValue,omitempty"`
|
||||||
|
|
||||||
|
// Only used if RegistryValueType is CustomType The data is in BinaryValue
|
||||||
|
CustomType int32 `json:"CustomType,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/restore_state.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/restore_state.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type RestoreState struct {
|
||||||
|
|
||||||
|
// The path to the save state file to restore the system from.
|
||||||
|
SaveStateFilePath string `json:"SaveStateFilePath,omitempty"`
|
||||||
|
|
||||||
|
// The ID of the template system to clone this new system off of. An empty string indicates the system should not be cloned from a template.
|
||||||
|
TemplateSystemId string `json:"TemplateSystemId,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/save_options.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/save_options.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type SaveOptions struct {
|
||||||
|
|
||||||
|
// The type of save operation to be performed.
|
||||||
|
SaveType string `json:"SaveType,omitempty"`
|
||||||
|
|
||||||
|
// The path to the file that will container the saved state.
|
||||||
|
SaveStateFilePath string `json:"SaveStateFilePath,omitempty"`
|
||||||
|
}
|
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/scsi.go
generated
vendored
Normal file
16
vendor/github.com/Microsoft/hcsshim/internal/schema2/scsi.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Scsi struct {
|
||||||
|
|
||||||
|
// Map of attachments, where the key is the integer LUN number on the controller.
|
||||||
|
Attachments map[string]Attachment `json:"Attachments,omitempty"`
|
||||||
|
}
|
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_configuration.go
generated
vendored
Normal file
15
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_configuration.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type SharedMemoryConfiguration struct {
|
||||||
|
|
||||||
|
Regions []SharedMemoryRegion `json:"Regions,omitempty"`
|
||||||
|
}
|
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_region.go
generated
vendored
Normal file
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_region.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type SharedMemoryRegion struct {
|
||||||
|
|
||||||
|
SectionName string `json:"SectionName,omitempty"`
|
||||||
|
|
||||||
|
StartOffset int32 `json:"StartOffset,omitempty"`
|
||||||
|
|
||||||
|
Length int32 `json:"Length,omitempty"`
|
||||||
|
|
||||||
|
AllowGuestWrite bool `json:"AllowGuestWrite,omitempty"`
|
||||||
|
|
||||||
|
HiddenFromGuest bool `json:"HiddenFromGuest,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_region_info.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/shared_memory_region_info.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type SharedMemoryRegionInfo struct {
|
||||||
|
|
||||||
|
SectionName string `json:"SectionName,omitempty"`
|
||||||
|
|
||||||
|
GuestPhysicalAddress int32 `json:"GuestPhysicalAddress,omitempty"`
|
||||||
|
}
|
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/silo_properties.go
generated
vendored
Normal file
18
vendor/github.com/Microsoft/hcsshim/internal/schema2/silo_properties.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Silo job information
|
||||||
|
type SiloProperties struct {
|
||||||
|
|
||||||
|
Enabled bool `json:"Enabled,omitempty"`
|
||||||
|
|
||||||
|
JobName string `json:"JobName,omitempty"`
|
||||||
|
}
|
30
vendor/github.com/Microsoft/hcsshim/internal/schema2/statistics.go
generated
vendored
Normal file
30
vendor/github.com/Microsoft/hcsshim/internal/schema2/statistics.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Runtime statistics for a container
|
||||||
|
type Statistics struct {
|
||||||
|
|
||||||
|
Timestamp time.Time `json:"Timestamp,omitempty"`
|
||||||
|
|
||||||
|
ContainerStartTime time.Time `json:"ContainerStartTime,omitempty"`
|
||||||
|
|
||||||
|
Uptime100ns int32 `json:"Uptime100ns,omitempty"`
|
||||||
|
|
||||||
|
Processor *ProcessorStats `json:"Processor,omitempty"`
|
||||||
|
|
||||||
|
Memory *MemoryStats `json:"Memory,omitempty"`
|
||||||
|
|
||||||
|
Storage *StorageStats `json:"Storage,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Storage struct {
|
||||||
|
|
||||||
|
// List of layers that describe the parent hierarchy for a container's storage. These layers combined together, presented as a disposable and/or committable working storage, are used by the container to record all changes done to the parent layers.
|
||||||
|
Layers []Layer `json:"Layers,omitempty"`
|
||||||
|
|
||||||
|
// Path that points to the scratch space of a container, where parent layers are combined together to present a new disposable and/or committable layer with the changes done during its runtime.
|
||||||
|
Path string `json:"Path,omitempty"`
|
||||||
|
|
||||||
|
QoS *StorageQoS `json:"QoS,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage_qo_s.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage_qo_s.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type StorageQoS struct {
|
||||||
|
|
||||||
|
IopsMaximum int32 `json:"IopsMaximum,omitempty"`
|
||||||
|
|
||||||
|
BandwidthMaximum int32 `json:"BandwidthMaximum,omitempty"`
|
||||||
|
}
|
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage_stats.go
generated
vendored
Normal file
22
vendor/github.com/Microsoft/hcsshim/internal/schema2/storage_stats.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
// Storage runtime statistics
|
||||||
|
type StorageStats struct {
|
||||||
|
|
||||||
|
ReadCountNormalized int32 `json:"ReadCountNormalized,omitempty"`
|
||||||
|
|
||||||
|
ReadSizeBytes int32 `json:"ReadSizeBytes,omitempty"`
|
||||||
|
|
||||||
|
WriteCountNormalized int32 `json:"WriteCountNormalized,omitempty"`
|
||||||
|
|
||||||
|
WriteSizeBytes int32 `json:"WriteSizeBytes,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/topology.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/topology.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Topology struct {
|
||||||
|
|
||||||
|
Memory *Memory2 `json:"Memory,omitempty"`
|
||||||
|
|
||||||
|
Processor *Processor2 `json:"Processor,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/uefi.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/uefi.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Uefi struct {
|
||||||
|
|
||||||
|
EnableDebugger bool `json:"EnableDebugger,omitempty"`
|
||||||
|
|
||||||
|
SecureBootTemplateId string `json:"SecureBootTemplateId,omitempty"`
|
||||||
|
|
||||||
|
BootThis *UefiBootEntry `json:"BootThis,omitempty"`
|
||||||
|
|
||||||
|
Console string `json:"Console,omitempty"`
|
||||||
|
}
|
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/uefi_boot_entry.go
generated
vendored
Normal file
23
vendor/github.com/Microsoft/hcsshim/internal/schema2/uefi_boot_entry.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type UefiBootEntry struct {
|
||||||
|
|
||||||
|
DeviceType string `json:"DeviceType,omitempty"`
|
||||||
|
|
||||||
|
DevicePath string `json:"DevicePath,omitempty"`
|
||||||
|
|
||||||
|
DiskNumber int32 `json:"DiskNumber,omitempty"`
|
||||||
|
|
||||||
|
OptionalData string `json:"OptionalData,omitempty"`
|
||||||
|
|
||||||
|
VmbFsRootPath string `json:"VmbFsRootPath,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/version.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/version.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type Version struct {
|
||||||
|
|
||||||
|
Major int32 `json:"Major,omitempty"`
|
||||||
|
|
||||||
|
Minor int32 `json:"Minor,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/video_monitor.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/video_monitor.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VideoMonitor struct {
|
||||||
|
|
||||||
|
HorizontalResolution int32 `json:"HorizontalResolution,omitempty"`
|
||||||
|
|
||||||
|
VerticalResolution int32 `json:"VerticalResolution,omitempty"`
|
||||||
|
|
||||||
|
ConnectionOptions *RdpConnectionOptions `json:"ConnectionOptions,omitempty"`
|
||||||
|
}
|
29
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_machine.go
generated
vendored
Normal file
29
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_machine.go
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualMachine struct {
|
||||||
|
|
||||||
|
Chipset *Chipset `json:"Chipset,omitempty"`
|
||||||
|
|
||||||
|
ComputeTopology *Topology `json:"ComputeTopology,omitempty"`
|
||||||
|
|
||||||
|
Devices *Devices `json:"Devices,omitempty"`
|
||||||
|
|
||||||
|
GuestState *GuestState `json:"GuestState,omitempty"`
|
||||||
|
|
||||||
|
RestoreState *RestoreState `json:"RestoreState,omitempty"`
|
||||||
|
|
||||||
|
RegistryChanges *RegistryChanges `json:"RegistryChanges,omitempty"`
|
||||||
|
|
||||||
|
StorageQoS *StorageQoS `json:"StorageQoS,omitempty"`
|
||||||
|
|
||||||
|
GuestConnection *GuestConnection `json:"GuestConnection,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_node_info.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_node_info.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualNodeInfo struct {
|
||||||
|
|
||||||
|
VirtualNodeIndex int32 `json:"VirtualNodeIndex,omitempty"`
|
||||||
|
|
||||||
|
PhysicalNodeNumber int32 `json:"PhysicalNodeNumber,omitempty"`
|
||||||
|
|
||||||
|
VirtualProcessorCount int32 `json:"VirtualProcessorCount,omitempty"`
|
||||||
|
|
||||||
|
MemoryUsageInPages int32 `json:"MemoryUsageInPages,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_controller.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_controller.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualPMemController struct {
|
||||||
|
|
||||||
|
Devices map[string]VirtualPMemDevice `json:"Devices,omitempty"`
|
||||||
|
|
||||||
|
MaximumCount int32 `json:"MaximumCount,omitempty"`
|
||||||
|
|
||||||
|
MaximumSizeBytes int32 `json:"MaximumSizeBytes,omitempty"`
|
||||||
|
|
||||||
|
Backing string `json:"Backing,omitempty"`
|
||||||
|
}
|
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_device.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_device.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualPMemDevice struct {
|
||||||
|
|
||||||
|
HostPath string `json:"HostPath,omitempty"`
|
||||||
|
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
|
||||||
|
ImageFormat string `json:"ImageFormat,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualSmb struct {
|
||||||
|
|
||||||
|
Shares []VirtualSmbShare `json:"Shares,omitempty"`
|
||||||
|
|
||||||
|
DirectFileMappingInMB int64 `json:"DirectFileMappingInMB,omitempty"`
|
||||||
|
}
|
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb_share.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb_share.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualSmbShare struct {
|
||||||
|
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
|
||||||
|
Path string `json:"Path,omitempty"`
|
||||||
|
|
||||||
|
AllowedFiles []string `json:"AllowedFiles,omitempty"`
|
||||||
|
|
||||||
|
Options *VirtualSmbShareOptions `json:"Options,omitempty"`
|
||||||
|
}
|
63
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb_share_options.go
generated
vendored
Normal file
63
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_smb_share_options.go
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VirtualSmbShareOptions struct {
|
||||||
|
|
||||||
|
ReadOnly bool `json:"ReadOnly,omitempty"`
|
||||||
|
|
||||||
|
// convert exclusive access to shared read access
|
||||||
|
ShareRead bool `json:"ShareRead,omitempty"`
|
||||||
|
|
||||||
|
// all opens will use cached I/O
|
||||||
|
CacheIo bool `json:"CacheIo,omitempty"`
|
||||||
|
|
||||||
|
// disable oplock support
|
||||||
|
NoOplocks bool `json:"NoOplocks,omitempty"`
|
||||||
|
|
||||||
|
// Acquire the backup privilege when attempting to open
|
||||||
|
TakeBackupPrivilege bool `json:"TakeBackupPrivilege,omitempty"`
|
||||||
|
|
||||||
|
// Use the identity of the share root when opening
|
||||||
|
UseShareRootIdentity bool `json:"UseShareRootIdentity,omitempty"`
|
||||||
|
|
||||||
|
// disable Direct Mapping
|
||||||
|
NoDirectmap bool `json:"NoDirectmap,omitempty"`
|
||||||
|
|
||||||
|
// disable Byterange locks
|
||||||
|
NoLocks bool `json:"NoLocks,omitempty"`
|
||||||
|
|
||||||
|
// disable Directory CHange Notifications
|
||||||
|
NoDirnotify bool `json:"NoDirnotify,omitempty"`
|
||||||
|
|
||||||
|
// share is use for VM shared memory
|
||||||
|
VmSharedMemory bool `json:"VmSharedMemory,omitempty"`
|
||||||
|
|
||||||
|
// allow access only to the files specified in AllowedFiles
|
||||||
|
RestrictFileAccess bool `json:"RestrictFileAccess,omitempty"`
|
||||||
|
|
||||||
|
// disable all oplocks except Level II
|
||||||
|
ForceLevelIIOplocks bool `json:"ForceLevelIIOplocks,omitempty"`
|
||||||
|
|
||||||
|
// Allow the host to reparse this base layer
|
||||||
|
ReparseBaseLayer bool `json:"ReparseBaseLayer,omitempty"`
|
||||||
|
|
||||||
|
// Enable pseudo-oplocks
|
||||||
|
PseudoOplocks bool `json:"PseudoOplocks,omitempty"`
|
||||||
|
|
||||||
|
// All opens will use non-cached IO
|
||||||
|
NonCacheIo bool `json:"NonCacheIo,omitempty"`
|
||||||
|
|
||||||
|
// Enable pseudo directory change notifications
|
||||||
|
PseudoDirnotify bool `json:"PseudoDirnotify,omitempty"`
|
||||||
|
|
||||||
|
// Block directory enumeration, renames, and deletes.
|
||||||
|
SingleFileMapping bool `json:"SingleFileMapping,omitempty"`
|
||||||
|
}
|
27
vendor/github.com/Microsoft/hcsshim/internal/schema2/vm_memory.go
generated
vendored
Normal file
27
vendor/github.com/Microsoft/hcsshim/internal/schema2/vm_memory.go
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type VmMemory struct {
|
||||||
|
|
||||||
|
AvailableMemory int32 `json:"AvailableMemory,omitempty"`
|
||||||
|
|
||||||
|
AvailableMemoryBuffer int32 `json:"AvailableMemoryBuffer,omitempty"`
|
||||||
|
|
||||||
|
ReservedMemory int32 `json:"ReservedMemory,omitempty"`
|
||||||
|
|
||||||
|
AssignedMemory int32 `json:"AssignedMemory,omitempty"`
|
||||||
|
|
||||||
|
SlpActive bool `json:"SlpActive,omitempty"`
|
||||||
|
|
||||||
|
BalancingEnabled bool `json:"BalancingEnabled,omitempty"`
|
||||||
|
|
||||||
|
DmOperationInProgress bool `json:"DmOperationInProgress,omitempty"`
|
||||||
|
}
|
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/windows_crash_reporting.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/schema2/windows_crash_reporting.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* HCS API
|
||||||
|
*
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* API version: 2.1
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package hcsschema
|
||||||
|
|
||||||
|
type WindowsCrashReporting struct {
|
||||||
|
|
||||||
|
DumpFileName string `json:"DumpFileName,omitempty"`
|
||||||
|
|
||||||
|
MaxDumpSize int64 `json:"MaxDumpSize,omitempty"`
|
||||||
|
}
|
2
vendor/github.com/Microsoft/hcsshim/layer.go
generated
vendored
2
vendor/github.com/Microsoft/hcsshim/layer.go
generated
vendored
@ -19,6 +19,7 @@ func ActivateLayer(info DriverInfo, id string) error {
|
|||||||
func CreateLayer(info DriverInfo, id, parent string) error {
|
func CreateLayer(info DriverInfo, id, parent string) error {
|
||||||
return wclayer.CreateLayer(layerPath(&info, id), parent)
|
return wclayer.CreateLayer(layerPath(&info, id), parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
// New clients should use CreateScratchLayer instead. Kept in to preserve API compatibility.
|
// New clients should use CreateScratchLayer instead. Kept in to preserve API compatibility.
|
||||||
func CreateSandboxLayer(info DriverInfo, layerId, parentId string, parentLayerPaths []string) error {
|
func CreateSandboxLayer(info DriverInfo, layerId, parentId string, parentLayerPaths []string) error {
|
||||||
return wclayer.CreateScratchLayer(layerPath(&info, layerId), parentLayerPaths)
|
return wclayer.CreateScratchLayer(layerPath(&info, layerId), parentLayerPaths)
|
||||||
@ -32,6 +33,7 @@ func DeactivateLayer(info DriverInfo, id string) error {
|
|||||||
func DestroyLayer(info DriverInfo, id string) error {
|
func DestroyLayer(info DriverInfo, id string) error {
|
||||||
return wclayer.DestroyLayer(layerPath(&info, id))
|
return wclayer.DestroyLayer(layerPath(&info, id))
|
||||||
}
|
}
|
||||||
|
|
||||||
// New clients should use ExpandScratchSize instead. Kept in to preserve API compatibility.
|
// New clients should use ExpandScratchSize instead. Kept in to preserve API compatibility.
|
||||||
func ExpandSandboxSize(info DriverInfo, layerId string, size uint64) error {
|
func ExpandSandboxSize(info DriverInfo, layerId string, size uint64) error {
|
||||||
return wclayer.ExpandScratchSize(layerPath(&info, layerId), size)
|
return wclayer.ExpandScratchSize(layerPath(&info, layerId), size)
|
||||||
|
6
vendor/github.com/Microsoft/hcsshim/version.go
generated
vendored
6
vendor/github.com/Microsoft/hcsshim/version.go
generated
vendored
@ -1,6 +0,0 @@
|
|||||||
package hcsshim
|
|
||||||
|
|
||||||
// IsTP4 returns whether the currently running Windows build is at least TP4.
|
|
||||||
func IsTP4() bool {
|
|
||||||
return false
|
|
||||||
}
|
|
15
vendor/github.com/containerd/containerd/README.md
generated
vendored
15
vendor/github.com/containerd/containerd/README.md
generated
vendored
@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
|
|
||||||
[](https://godoc.org/github.com/containerd/containerd)
|
[](https://godoc.org/github.com/containerd/containerd)
|
||||||
[](https://travis-ci.org/containerd/containerd)
|
[](https://travis-ci.org/containerd/containerd)
|
||||||
@ -236,3 +236,16 @@ The containerd codebase is released under the [Apache 2.0 license](LICENSE.code)
|
|||||||
The README.md file, and files in the "docs" folder are licensed under the
|
The README.md file, and files in the "docs" folder are licensed under the
|
||||||
Creative Commons Attribution 4.0 International License. You may obtain a
|
Creative Commons Attribution 4.0 International License. You may obtain a
|
||||||
copy of the license, titled CC-BY-4.0, at http://creativecommons.org/licenses/by/4.0/.
|
copy of the license, titled CC-BY-4.0, at http://creativecommons.org/licenses/by/4.0/.
|
||||||
|
|
||||||
|
## Project details
|
||||||
|
|
||||||
|
**containerd** is the primary open source project within the broader containerd GitHub repository.
|
||||||
|
However, all projects within the repo have common maintainership, governance, and contributing
|
||||||
|
guidelines which are stored in a `project` repository commonly for all containerd projects.
|
||||||
|
|
||||||
|
Please find all these core project documents, including the:
|
||||||
|
* [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
|
||||||
|
* [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS),
|
||||||
|
* and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
|
||||||
|
|
||||||
|
information in our [`containerd/project`](https://github.com/containerd/project) repository.
|
||||||
|
2
vendor/github.com/containerd/containerd/archive/time_unix.go
generated
vendored
2
vendor/github.com/containerd/containerd/archive/time_unix.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// +build linux freebsd solaris
|
// +build freebsd linux openbsd solaris
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright The containerd Authors.
|
Copyright The containerd Authors.
|
||||||
|
3
vendor/github.com/containerd/containerd/cmd/containerd/command/config.go
generated
vendored
3
vendor/github.com/containerd/containerd/cmd/containerd/command/config.go
generated
vendored
@ -23,12 +23,13 @@ import (
|
|||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
"github.com/containerd/containerd/services/server"
|
"github.com/containerd/containerd/services/server"
|
||||||
|
srvconfig "github.com/containerd/containerd/services/server/config"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config is a wrapper of server config for printing out.
|
// Config is a wrapper of server config for printing out.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
*server.Config
|
*srvconfig.Config
|
||||||
// Plugins overrides `Plugins map[string]toml.Primitive` in server config.
|
// Plugins overrides `Plugins map[string]toml.Primitive` in server config.
|
||||||
Plugins map[string]interface{} `toml:"plugins"`
|
Plugins map[string]interface{} `toml:"plugins"`
|
||||||
}
|
}
|
||||||
|
8
vendor/github.com/containerd/containerd/cmd/containerd/command/config_linux.go
generated
vendored
8
vendor/github.com/containerd/containerd/cmd/containerd/command/config_linux.go
generated
vendored
@ -18,14 +18,14 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containerd/containerd/defaults"
|
"github.com/containerd/containerd/defaults"
|
||||||
"github.com/containerd/containerd/services/server"
|
srvconfig "github.com/containerd/containerd/services/server/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func defaultConfig() *server.Config {
|
func defaultConfig() *srvconfig.Config {
|
||||||
return &server.Config{
|
return &srvconfig.Config{
|
||||||
Root: defaults.DefaultRootDir,
|
Root: defaults.DefaultRootDir,
|
||||||
State: defaults.DefaultStateDir,
|
State: defaults.DefaultStateDir,
|
||||||
GRPC: server.GRPCConfig{
|
GRPC: srvconfig.GRPCConfig{
|
||||||
Address: defaults.DefaultAddress,
|
Address: defaults.DefaultAddress,
|
||||||
MaxRecvMsgSize: defaults.DefaultMaxRecvMsgSize,
|
MaxRecvMsgSize: defaults.DefaultMaxRecvMsgSize,
|
||||||
MaxSendMsgSize: defaults.DefaultMaxSendMsgSize,
|
MaxSendMsgSize: defaults.DefaultMaxSendMsgSize,
|
||||||
|
10
vendor/github.com/containerd/containerd/cmd/containerd/command/config_unsupported.go
generated
vendored
10
vendor/github.com/containerd/containerd/cmd/containerd/command/config_unsupported.go
generated
vendored
@ -20,17 +20,17 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containerd/containerd/defaults"
|
"github.com/containerd/containerd/defaults"
|
||||||
"github.com/containerd/containerd/services/server"
|
srvconfig "github.com/containerd/containerd/services/server/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func defaultConfig() *server.Config {
|
func defaultConfig() *srvconfig.Config {
|
||||||
return &server.Config{
|
return &srvconfig.Config{
|
||||||
Root: defaults.DefaultRootDir,
|
Root: defaults.DefaultRootDir,
|
||||||
State: defaults.DefaultStateDir,
|
State: defaults.DefaultStateDir,
|
||||||
GRPC: server.GRPCConfig{
|
GRPC: srvconfig.GRPCConfig{
|
||||||
Address: defaults.DefaultAddress,
|
Address: defaults.DefaultAddress,
|
||||||
},
|
},
|
||||||
Debug: server.Debug{
|
Debug: srvconfig.Debug{
|
||||||
Level: "info",
|
Level: "info",
|
||||||
Address: defaults.DefaultDebugAddress,
|
Address: defaults.DefaultDebugAddress,
|
||||||
},
|
},
|
||||||
|
8
vendor/github.com/containerd/containerd/cmd/containerd/command/config_windows.go
generated
vendored
8
vendor/github.com/containerd/containerd/cmd/containerd/command/config_windows.go
generated
vendored
@ -18,14 +18,14 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containerd/containerd/defaults"
|
"github.com/containerd/containerd/defaults"
|
||||||
"github.com/containerd/containerd/services/server"
|
srvconfig "github.com/containerd/containerd/services/server/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func defaultConfig() *server.Config {
|
func defaultConfig() *srvconfig.Config {
|
||||||
return &server.Config{
|
return &srvconfig.Config{
|
||||||
Root: defaults.DefaultRootDir,
|
Root: defaults.DefaultRootDir,
|
||||||
State: defaults.DefaultStateDir,
|
State: defaults.DefaultStateDir,
|
||||||
GRPC: server.GRPCConfig{
|
GRPC: srvconfig.GRPCConfig{
|
||||||
Address: defaults.DefaultAddress,
|
Address: defaults.DefaultAddress,
|
||||||
MaxRecvMsgSize: defaults.DefaultMaxRecvMsgSize,
|
MaxRecvMsgSize: defaults.DefaultMaxRecvMsgSize,
|
||||||
MaxSendMsgSize: defaults.DefaultMaxSendMsgSize,
|
MaxSendMsgSize: defaults.DefaultMaxSendMsgSize,
|
||||||
|
7
vendor/github.com/containerd/containerd/cmd/containerd/command/main.go
generated
vendored
7
vendor/github.com/containerd/containerd/cmd/containerd/command/main.go
generated
vendored
@ -29,6 +29,7 @@ import (
|
|||||||
"github.com/containerd/containerd/log"
|
"github.com/containerd/containerd/log"
|
||||||
"github.com/containerd/containerd/mount"
|
"github.com/containerd/containerd/mount"
|
||||||
"github.com/containerd/containerd/services/server"
|
"github.com/containerd/containerd/services/server"
|
||||||
|
srvconfig "github.com/containerd/containerd/services/server/config"
|
||||||
"github.com/containerd/containerd/sys"
|
"github.com/containerd/containerd/sys"
|
||||||
"github.com/containerd/containerd/version"
|
"github.com/containerd/containerd/version"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@ -109,7 +110,7 @@ func App() *cli.App {
|
|||||||
// we don't miss any signals during boot
|
// we don't miss any signals during boot
|
||||||
signal.Notify(signals, handledSignals...)
|
signal.Notify(signals, handledSignals...)
|
||||||
|
|
||||||
if err := server.LoadConfig(context.GlobalString("config"), config); err != nil && !os.IsNotExist(err) {
|
if err := srvconfig.LoadConfig(context.GlobalString("config"), config); err != nil && !os.IsNotExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// apply flags to the config
|
// apply flags to the config
|
||||||
@ -187,7 +188,7 @@ func serve(ctx gocontext.Context, l net.Listener, serveFunc func(net.Listener) e
|
|||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyFlags(context *cli.Context, config *server.Config) error {
|
func applyFlags(context *cli.Context, config *srvconfig.Config) error {
|
||||||
// the order for config vs flag values is that flags will always override
|
// the order for config vs flag values is that flags will always override
|
||||||
// the config values if they are set
|
// the config values if they are set
|
||||||
if err := setLevel(context, config); err != nil {
|
if err := setLevel(context, config); err != nil {
|
||||||
@ -217,7 +218,7 @@ func applyFlags(context *cli.Context, config *server.Config) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func setLevel(context *cli.Context, config *server.Config) error {
|
func setLevel(context *cli.Context, config *srvconfig.Config) error {
|
||||||
l := context.GlobalString("log-level")
|
l := context.GlobalString("log-level")
|
||||||
if l == "" {
|
if l == "" {
|
||||||
l = config.Debug.Level
|
l = config.Debug.Level
|
||||||
|
18
vendor/github.com/containerd/containerd/cmd/ctr/commands/containers/containers.go
generated
vendored
18
vendor/github.com/containerd/containerd/cmd/ctr/commands/containers/containers.go
generated
vendored
@ -28,7 +28,9 @@ import (
|
|||||||
"github.com/containerd/containerd/cio"
|
"github.com/containerd/containerd/cio"
|
||||||
"github.com/containerd/containerd/cmd/ctr/commands"
|
"github.com/containerd/containerd/cmd/ctr/commands"
|
||||||
"github.com/containerd/containerd/cmd/ctr/commands/run"
|
"github.com/containerd/containerd/cmd/ctr/commands/run"
|
||||||
|
"github.com/containerd/containerd/containers"
|
||||||
"github.com/containerd/containerd/log"
|
"github.com/containerd/containerd/log"
|
||||||
|
"github.com/containerd/typeurl"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -261,8 +263,22 @@ var infoCommand = cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
commands.PrintAsJSON(info)
|
|
||||||
|
|
||||||
|
if info.Spec != nil && info.Spec.Value != nil {
|
||||||
|
v, err := typeurl.UnmarshalAny(info.Spec)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
commands.PrintAsJSON(struct {
|
||||||
|
containers.Container
|
||||||
|
Spec interface{} `json:"Spec,omitempty"`
|
||||||
|
}{
|
||||||
|
Container: info,
|
||||||
|
Spec: v,
|
||||||
|
})
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
commands.PrintAsJSON(info)
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
10
vendor/github.com/containerd/containerd/cmd/ctr/commands/pprof/pprof.go
generated
vendored
10
vendor/github.com/containerd/containerd/cmd/ctr/commands/pprof/pprof.go
generated
vendored
@ -89,10 +89,18 @@ var pprofHeapCommand = cli.Command{
|
|||||||
var pprofProfileCommand = cli.Command{
|
var pprofProfileCommand = cli.Command{
|
||||||
Name: "profile",
|
Name: "profile",
|
||||||
Usage: "CPU profile",
|
Usage: "CPU profile",
|
||||||
|
Flags: []cli.Flag{
|
||||||
|
cli.DurationFlag{
|
||||||
|
Name: "seconds,s",
|
||||||
|
Usage: "duration for collection (seconds)",
|
||||||
|
Value: 30 * time.Second,
|
||||||
|
},
|
||||||
|
},
|
||||||
Action: func(context *cli.Context) error {
|
Action: func(context *cli.Context) error {
|
||||||
client := getPProfClient(context)
|
client := getPProfClient(context)
|
||||||
|
|
||||||
output, err := httpGetRequest(client, "/debug/pprof/profile")
|
seconds := context.Duration("seconds").Seconds()
|
||||||
|
output, err := httpGetRequest(client, fmt.Sprintf("/debug/pprof/profile?seconds=%v", seconds))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
17
vendor/github.com/containerd/containerd/cmd/ctr/commands/tasks/metrics.go
generated
vendored
17
vendor/github.com/containerd/containerd/cmd/ctr/commands/tasks/metrics.go
generated
vendored
@ -89,10 +89,19 @@ var metricsCommand = cli.Command{
|
|||||||
fmt.Fprintf(w, "%s\t%s\t\n\n", metric.ID, metric.Timestamp)
|
fmt.Fprintf(w, "%s\t%s\t\n\n", metric.ID, metric.Timestamp)
|
||||||
|
|
||||||
fmt.Fprintf(w, "METRIC\tVALUE\t\n")
|
fmt.Fprintf(w, "METRIC\tVALUE\t\n")
|
||||||
fmt.Fprintf(w, "memory.usage_in_bytes\t%d\t\n", data.Memory.Usage.Usage)
|
if data.Memory != nil {
|
||||||
fmt.Fprintf(w, "memory.stat.cache\t%d\t\n", data.Memory.TotalCache)
|
fmt.Fprintf(w, "memory.usage_in_bytes\t%d\t\n", data.Memory.Usage.Usage)
|
||||||
fmt.Fprintf(w, "cpuacct.usage\t%d\t\n", data.CPU.Usage.Total)
|
fmt.Fprintf(w, "memory.limit_in_bytes\t%d\t\n", data.Memory.Usage.Limit)
|
||||||
fmt.Fprintf(w, "cpuacct.usage_percpu\t%v\t\n", data.CPU.Usage.PerCPU)
|
fmt.Fprintf(w, "memory.stat.cache\t%d\t\n", data.Memory.TotalCache)
|
||||||
|
}
|
||||||
|
if data.CPU != nil {
|
||||||
|
fmt.Fprintf(w, "cpuacct.usage\t%d\t\n", data.CPU.Usage.Total)
|
||||||
|
fmt.Fprintf(w, "cpuacct.usage_percpu\t%v\t\n", data.CPU.Usage.PerCPU)
|
||||||
|
}
|
||||||
|
if data.Pids != nil {
|
||||||
|
fmt.Fprintf(w, "pids.current\t%v\t\n", data.Pids.Current)
|
||||||
|
fmt.Fprintf(w, "pids.limit\t%v\t\n", data.Pids.Limit)
|
||||||
|
}
|
||||||
return w.Flush()
|
return w.Flush()
|
||||||
case formatJSON:
|
case formatJSON:
|
||||||
marshaledJSON, err := json.MarshalIndent(data, "", " ")
|
marshaledJSON, err := json.MarshalIndent(data, "", " ")
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user