runtime.go 594 B

1234567891011121314151617181920
  1. package system
  2. // Runtime describes an OCI runtime
  3. type Runtime struct {
  4. // "Legacy" runtime configuration for runc-compatible runtimes.
  5. Path string `json:"path,omitempty"`
  6. Args []string `json:"runtimeArgs,omitempty"`
  7. // Shimv2 runtime configuration. Mutually exclusive with the legacy config above.
  8. Type string `json:"runtimeType,omitempty"`
  9. Options map[string]interface{} `json:"options,omitempty"`
  10. }
  11. // RuntimeWithStatus extends [Runtime] to hold [RuntimeStatus].
  12. type RuntimeWithStatus struct {
  13. Runtime
  14. Status map[string]string `json:"status,omitempty"`
  15. }