...

Source file src/github.com/Microsoft/hcsshim/hcsshim.go

Documentation: github.com/Microsoft/hcsshim

     1  //go:build windows
     2  
     3  // Shim for the Host Compute Service (HCS) to manage Windows Server
     4  // containers and Hyper-V containers.
     5  
     6  package hcsshim
     7  
     8  import (
     9  	"golang.org/x/sys/windows"
    10  
    11  	"github.com/Microsoft/hcsshim/internal/hcserror"
    12  )
    13  
    14  //go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go hcsshim.go
    15  
    16  //sys SetCurrentThreadCompartmentId(compartmentId uint32) (hr error) = iphlpapi.SetCurrentThreadCompartmentId
    17  
    18  const (
    19  	// Specific user-visible exit codes
    20  	WaitErrExecFailed = 32767
    21  
    22  	ERROR_GEN_FAILURE          = windows.ERROR_GEN_FAILURE
    23  	ERROR_SHUTDOWN_IN_PROGRESS = windows.ERROR_SHUTDOWN_IN_PROGRESS
    24  	WSAEINVAL                  = windows.WSAEINVAL
    25  
    26  	// Timeout on wait calls
    27  	TimeoutInfinite = 0xFFFFFFFF
    28  )
    29  
    30  type HcsError = hcserror.HcsError
    31  

View as plain text