github.com/hms58/moby@v1.13.1/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  
    20  	UpdatePending bool // Indicates that there are some update operations pending that should be completed by a servicing container.
    21  }
    22  
    23  // Stats contains statics from HCS
    24  type Stats hcsshim.Statistics
    25  
    26  // Resources defines updatable container resource values.
    27  type Resources struct{}
    28  
    29  // ServicingOption is a CreateOption with a no-op application that signifies
    30  // the container needs to be used for a Windows servicing operation.
    31  type ServicingOption struct {
    32  	IsServicing bool
    33  }
    34  
    35  // FlushOption is a CreateOption that signifies if the container should be
    36  // started with flushes ignored until boot has completed. This is an optimisation
    37  // for first boot of a container.
    38  type FlushOption struct {
    39  	IgnoreFlushesDuringBoot bool
    40  }
    41  
    42  // HyperVIsolationOption is a CreateOption that indicates whether the runtime
    43  // should start the container as a Hyper-V container, and if so, the sandbox path.
    44  type HyperVIsolationOption struct {
    45  	IsHyperV    bool
    46  	SandboxPath string `json:",omitempty"`
    47  }
    48  
    49  // LayerOption is a CreateOption that indicates to the runtime the layer folder
    50  // and layer paths for a container.
    51  type LayerOption struct {
    52  	// LayerFolder is the path to the current layer folder. Empty for Hyper-V containers.
    53  	LayerFolderPath string `json:",omitempty"`
    54  	// Layer paths of the parent layers
    55  	LayerPaths []string
    56  }
    57  
    58  // NetworkEndpointsOption is a CreateOption that provides the runtime list
    59  // of network endpoints to which a container should be attached during its creation.
    60  type NetworkEndpointsOption struct {
    61  	Endpoints                []string
    62  	AllowUnqualifiedDNSQuery bool
    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  }