mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
This tag of hcsshim brings in a couple welcome features/improvements. One being exposing a way to query for hns endpoint statistics (Packets received/sent etc.). This tag also contains some optimizations for querying whether a certain HCN feature is supported, which is a common workflow in kube-proxy on Windows. The first result from querying HCN is now cached so further calls can skip the hcn query as well as the version range parsing that was performed. This also gets rid of some redundant logs that used to hit everytime the version range parsing occurred. The Go-winio dep bump, and all of the ctrd deps are transitive only. Nothing new is needed/intended to be used. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
28 lines
876 B
Go
28 lines
876 B
Go
/*
|
|
* 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 DeviceType string
|
|
|
|
const (
|
|
ClassGUID DeviceType = "ClassGuid"
|
|
DeviceInstance DeviceType = "DeviceInstance"
|
|
GPUMirror DeviceType = "GpuMirror"
|
|
)
|
|
|
|
type Device struct {
|
|
// The type of device to assign to the container.
|
|
Type DeviceType `json:"Type,omitempty"`
|
|
// The interface class guid of the device interfaces to assign to the container. Only used when Type is ClassGuid.
|
|
InterfaceClassGuid string `json:"InterfaceClassGuid,omitempty"`
|
|
// The location path of the device to assign to the container. Only used when Type is DeviceInstance.
|
|
LocationPath string `json:"LocationPath,omitempty"`
|
|
}
|