X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31d76600cdb691251d0823cc6be601d958b4e1a4..f777c74882e6b0f52b15f62d1d6251cd180979e4:/sdk/go/arvados/container.go diff --git a/sdk/go/arvados/container.go b/sdk/go/arvados/container.go index 36d9af1a26..daafc49954 100644 --- a/sdk/go/arvados/container.go +++ b/sdk/go/arvados/container.go @@ -1,8 +1,15 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + 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"` @@ -27,15 +34,19 @@ type Mount struct { Path string `json:"path"` Content interface{} `json:"content"` ExcludeFromOutput bool `json:"exclude_from_output"` + Capacity int64 `json:"capacity"` + Commit string `json:"commit"` // only if kind=="git_tree" + RepositoryName string `json:"repository_name"` // only if kind=="git_tree" + GitURL string `json:"git_url"` // only if kind=="git_tree" } // 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"` - KeepCacheRAM int `json:"keep_cache_ram"` + RAM int64 `json:"ram"` + VCPUs int `json:"vcpus"` + KeepCacheRAM int64 `json:"keep_cache_ram"` } // SchedulingParameters specify a container's scheduling parameters