device.go 884 B

123456789101112131415161718192021222324252627
  1. /*
  2. * HCS API
  3. *
  4. * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  5. *
  6. * API version: 2.1
  7. * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
  8. */
  9. package hcsschema
  10. type DeviceType string
  11. const (
  12. ClassGUID DeviceType = "ClassGuid"
  13. DeviceInstanceID DeviceType = "DeviceInstance"
  14. GPUMirror DeviceType = "GpuMirror"
  15. )
  16. type Device struct {
  17. // The type of device to assign to the container.
  18. Type DeviceType `json:"Type,omitempty"`
  19. // The interface class guid of the device interfaces to assign to the container. Only used when Type is ClassGuid.
  20. InterfaceClassGuid string `json:"InterfaceClassGuid,omitempty"`
  21. // The location path of the device to assign to the container. Only used when Type is DeviceInstanceID.
  22. LocationPath string `json:"LocationPath,omitempty"`
  23. }