...

Source file src/github.com/Microsoft/hcsshim/internal/uvm/capabilities.go

Documentation: github.com/Microsoft/hcsshim/internal/uvm

     1  //go:build windows
     2  
     3  package uvm
     4  
     5  import "github.com/Microsoft/hcsshim/internal/hcs/schema1"
     6  
     7  // SignalProcessSupported returns `true` if the guest supports the capability to
     8  // signal a process.
     9  //
    10  // This support was added RS5+ guests.
    11  func (uvm *UtilityVM) SignalProcessSupported() bool {
    12  	return uvm.guestCaps.SignalProcessSupported
    13  }
    14  
    15  func (uvm *UtilityVM) DeleteContainerStateSupported() bool {
    16  	if uvm.gc == nil {
    17  		return false
    18  	}
    19  	return uvm.guestCaps.DeleteContainerStateSupported
    20  }
    21  
    22  // Capabilities returns the protocol version and the guest defined capabilities.
    23  // This should only be used for testing.
    24  func (uvm *UtilityVM) Capabilities() (uint32, schema1.GuestDefinedCapabilities) {
    25  	return uvm.protocol, uvm.guestCaps
    26  }
    27  

View as plain text