X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9f35a3cf10e5d261d83556d5b33f242966101f02..0eb72b526bf8bbb011551ecf019f604e17a534f1:/sdk/go/arvados/container.go diff --git a/sdk/go/arvados/container.go b/sdk/go/arvados/container.go index e5050cb79c..7d39d678f8 100644 --- a/sdk/go/arvados/container.go +++ b/sdk/go/arvados/container.go @@ -1,39 +1,52 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + package arvados // Container is an arvados#container resource. type Container struct { - UUID string `json:"uuid"` - Command []string `json:"command"` - ContainerImage string `json:"container_image"` - Cwd string `json:"cwd"` - Environment map[string]string `json:"environment"` - LockedByUUID string `json:"locked_by_uuid"` - Mounts map[string]Mount `json:"mounts"` - Output string `json:"output"` - OutputPath string `json:"output_path"` - Priority int `json:"priority"` - RuntimeConstraints RuntimeConstraints `json:"runtime_constraints"` - State ContainerState `json:"state"` + UUID string `json:"uuid"` + Command []string `json:"command"` + ContainerImage string `json:"container_image"` + Cwd string `json:"cwd"` + Environment map[string]string `json:"environment"` + LockedByUUID string `json:"locked_by_uuid"` + Mounts map[string]Mount `json:"mounts"` + Output string `json:"output"` + OutputPath string `json:"output_path"` + Priority int `json:"priority"` + RuntimeConstraints RuntimeConstraints `json:"runtime_constraints"` + State ContainerState `json:"state"` + SchedulingParameters SchedulingParameters `json:"scheduling_parameters"` } // Mount is special behavior to attach to a filesystem path or device. type Mount struct { - Kind string `json:"kind"` - Writable bool `json:"writable"` - PortableDataHash string `json:"portable_data_hash"` - UUID string `json:"uuid"` - DeviceType string `json:"device_type"` - Path string `json:"path"` - Content interface{} `json:"content"` + Kind string `json:"kind"` + Writable bool `json:"writable"` + PortableDataHash string `json:"portable_data_hash"` + UUID string `json:"uuid"` + DeviceType string `json:"device_type"` + Path string `json:"path"` + Content interface{} `json:"content"` + ExcludeFromOutput bool `json:"exclude_from_output"` + Capacity int64 `json:capacity` } // RuntimeConstraints specify a container's compute resources (RAM, // CPU) and network connectivity. type RuntimeConstraints struct { - API *bool - RAM int `json:"ram"` - VCPUs int `json:"vcpus"` - Partition []string `json:"partition"` + API *bool + RAM int `json:"ram"` + VCPUs int `json:"vcpus"` + KeepCacheRAM int `json:"keep_cache_ram"` +} + +// SchedulingParameters specify a container's scheduling parameters +// such as Partitions +type SchedulingParameters struct { + Partitions []string `json:"partitions"` } // ContainerList is an arvados#containerList resource.