Merge branch 'master' of git.curoverse.com:arvados into 13330-cwl-intermediate-collec...
[arvados.git] / sdk / go / arvados / container.go
index 20d007c5c818daf3190b9852e840fd8a2f97d47e..210ed9981c07292ec3c1508da978eaac351acae7 100644 (file)
@@ -4,9 +4,12 @@
 
 package arvados
 
+import "time"
+
 // Container is an arvados#container resource.
 type Container struct {
        UUID                 string               `json:"uuid"`
+       CreatedAt            time.Time            `json:"created_at"`
        Command              []string             `json:"command"`
        ContainerImage       string               `json:"container_image"`
        Cwd                  string               `json:"cwd"`
@@ -49,7 +52,9 @@ type RuntimeConstraints struct {
 // SchedulingParameters specify a container's scheduling parameters
 // such as Partitions
 type SchedulingParameters struct {
-       Partitions []string `json:"partitions"`
+       Partitions  []string `json:"partitions"`
+       Preemptible bool     `json:"preemptible"`
+       MaxRunTime  int      `json:"max_run_time"`
 }
 
 // ContainerList is an arvados#containerList resource.