docker.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2016 Google Inc. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Types used for docker containers.
  15. package v1
  16. type DockerStatus struct {
  17. Version string `json:"version"`
  18. APIVersion string `json:"api_version"`
  19. KernelVersion string `json:"kernel_version"`
  20. OS string `json:"os"`
  21. Hostname string `json:"hostname"`
  22. RootDir string `json:"root_dir"`
  23. Driver string `json:"driver"`
  24. DriverStatus map[string]string `json:"driver_status"`
  25. ExecDriver string `json:"exec_driver"`
  26. NumImages int `json:"num_images"`
  27. NumContainers int `json:"num_containers"`
  28. }
  29. type DockerImage struct {
  30. ID string `json:"id"`
  31. RepoTags []string `json:"repo_tags"` // repository name and tags.
  32. Created int64 `json:"created"` // unix time since creation.
  33. VirtualSize int64 `json:"virtual_size"`
  34. Size int64 `json:"size"`
  35. }