projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
13497: Rename SystemNodes to NodeProfiles in config.
[arvados.git]
/
sdk
/
go
/
arvados
/
container.go
diff --git
a/sdk/go/arvados/container.go
b/sdk/go/arvados/container.go
index 7d39d678f8ec02c52f6446461c4de9f8e95c142a..daafc4995448524f7fe3794b9facd13e01480823 100644
(file)
--- a/
sdk/go/arvados/container.go
+++ b/
sdk/go/arvados/container.go
@@
-4,9
+4,12
@@
package arvados
package arvados
+import "time"
+
// Container is an arvados#container resource.
type Container struct {
UUID string `json:"uuid"`
// 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"`
Command []string `json:"command"`
ContainerImage string `json:"container_image"`
Cwd string `json:"cwd"`
@@
-31,16
+34,19
@@
type Mount struct {
Path string `json:"path"`
Content interface{} `json:"content"`
ExcludeFromOutput bool `json:"exclude_from_output"`
Path string `json:"path"`
Content interface{} `json:"content"`
ExcludeFromOutput bool `json:"exclude_from_output"`
- Capacity int64 `json:capacity`
+ 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
}
// 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 int
64
`json:"ram"`
+ VCPUs int
`json:"vcpus"`
+ KeepCacheRAM int
64
`json:"keep_cache_ram"`
}
// SchedulingParameters specify a container's scheduling parameters
}
// SchedulingParameters specify a container's scheduling parameters