docker.go 705 B

123456789101112131415161718192021222324
  1. /*
  2. * @Author: LinkLeong link@icewhale.com
  3. * @Date: 2021-12-08 18:10:25
  4. * @LastEditors: LinkLeong
  5. * @LastEditTime: 2022-07-13 10:49:16
  6. * @FilePath: /CasaOS/model/docker.go
  7. * @Description:
  8. * @Website: https://www.casaos.io
  9. * Copyright (c) 2022 by icewhale, All Rights Reserved.
  10. */
  11. package model
  12. type DockerStatsModel struct {
  13. Icon string `json:"icon"`
  14. Title string `json:"title"`
  15. Data interface{} `json:"data"`
  16. Previous interface{} `json:"previous"`
  17. }
  18. // reference - https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
  19. type DockerDaemonConfigurationModel struct {
  20. // e.g. `/var/lib/docker`
  21. Root string `json:"data-root,omitempty"`
  22. }