github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/libcontainerd/types_windows.go (about) 1 package libcontainerd 2 3 import ( 4 "github.com/Microsoft/hcsshim" 5 "github.com/opencontainers/runtime-spec/specs-go" 6 ) 7 8 // Process contains information to start a specific application inside the container. 9 type Process specs.Process 10 11 // Summary contains a ProcessList item from HCS to support `top` 12 type Summary hcsshim.ProcessListItem 13 14 // StateInfo contains description about the new state container has entered. 15 type StateInfo struct { 16 CommonStateInfo 17 18 // Platform specific StateInfo 19 UpdatePending bool // Indicates that there are some update operations pending that should be completed by a servicing container. 20 } 21 22 // Stats contains statistics from HCS 23 type Stats hcsshim.Statistics 24 25 // Resources defines updatable container resource values. 26 type Resources struct{} 27 28 // ServicingOption is a CreateOption with a no-op application that signifies 29 // the container needs to be used for a Windows servicing operation. 30 type ServicingOption struct { 31 IsServicing bool 32 } 33 34 // FlushOption is a CreateOption that signifies if the container should be 35 // started with flushes ignored until boot has completed. This is an optimisation 36 // for first boot of a container. 37 type FlushOption struct { 38 IgnoreFlushesDuringBoot bool 39 } 40 41 // HyperVIsolationOption is a CreateOption that indicates whether the runtime 42 // should start the container as a Hyper-V container, and if so, the sandbox path. 43 type HyperVIsolationOption struct { 44 IsHyperV bool 45 SandboxPath string `json:",omitempty"` 46 } 47 48 // LayerOption is a CreateOption that indicates to the runtime the layer folder 49 // and layer paths for a container. 50 type LayerOption struct { 51 // LayerFolderPath is the path to the current layer folder. Empty for Hyper-V containers. 52 LayerFolderPath string `json:",omitempty"` 53 // Layer paths of the parent layers 54 LayerPaths []string 55 } 56 57 // NetworkEndpointsOption is a CreateOption that provides the runtime list 58 // of network endpoints to which a container should be attached during its creation. 59 type NetworkEndpointsOption struct { 60 Endpoints []string 61 AllowUnqualifiedDNSQuery bool 62 DNSSearchList []string 63 } 64 65 // CredentialsOption is a CreateOption that indicates the credentials from 66 // a credential spec to be used to the runtime 67 type CredentialsOption struct { 68 Credentials string 69 } 70 71 // Checkpoint holds the details of a checkpoint (not supported in windows) 72 type Checkpoint struct { 73 Name string 74 } 75 76 // Checkpoints contains the details of a checkpoint 77 type Checkpoints struct { 78 Checkpoints []*Checkpoint 79 }