types_deprecated.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package types
  2. import (
  3. "github.com/docker/docker/api/types/checkpoint"
  4. "github.com/docker/docker/api/types/image"
  5. "github.com/docker/docker/api/types/swarm"
  6. "github.com/docker/docker/api/types/system"
  7. )
  8. // CheckpointCreateOptions holds parameters to create a checkpoint from a container.
  9. //
  10. // Deprecated: use [checkpoint.CreateOptions].
  11. type CheckpointCreateOptions = checkpoint.CreateOptions
  12. // CheckpointListOptions holds parameters to list checkpoints for a container
  13. //
  14. // Deprecated: use [checkpoint.ListOptions].
  15. type CheckpointListOptions = checkpoint.ListOptions
  16. // CheckpointDeleteOptions holds parameters to delete a checkpoint from a container
  17. //
  18. // Deprecated: use [checkpoint.DeleteOptions].
  19. type CheckpointDeleteOptions = checkpoint.DeleteOptions
  20. // Checkpoint represents the details of a checkpoint when listing endpoints.
  21. //
  22. // Deprecated: use [checkpoint.Summary].
  23. type Checkpoint = checkpoint.Summary
  24. // Info contains response of Engine API:
  25. // GET "/info"
  26. //
  27. // Deprecated: use [system.Info].
  28. type Info = system.Info
  29. // Commit holds the Git-commit (SHA1) that a binary was built from, as reported
  30. // in the version-string of external tools, such as containerd, or runC.
  31. //
  32. // Deprecated: use [system.Commit].
  33. type Commit = system.Commit
  34. // PluginsInfo is a temp struct holding Plugins name
  35. // registered with docker daemon. It is used by [system.Info] struct
  36. //
  37. // Deprecated: use [system.PluginsInfo].
  38. type PluginsInfo = system.PluginsInfo
  39. // NetworkAddressPool is a temp struct used by [system.Info] struct.
  40. //
  41. // Deprecated: use [system.NetworkAddressPool].
  42. type NetworkAddressPool = system.NetworkAddressPool
  43. // Runtime describes an OCI runtime.
  44. //
  45. // Deprecated: use [system.Runtime].
  46. type Runtime = system.Runtime
  47. // SecurityOpt contains the name and options of a security option.
  48. //
  49. // Deprecated: use [system.SecurityOpt].
  50. type SecurityOpt = system.SecurityOpt
  51. // KeyValue holds a key/value pair.
  52. //
  53. // Deprecated: use [system.KeyValue].
  54. type KeyValue = system.KeyValue
  55. // ImageDeleteResponseItem image delete response item.
  56. //
  57. // Deprecated: use [image.DeleteResponse].
  58. type ImageDeleteResponseItem = image.DeleteResponse
  59. // ImageSummary image summary.
  60. //
  61. // Deprecated: use [image.Summary].
  62. type ImageSummary = image.Summary
  63. // ImageMetadata contains engine-local data about the image.
  64. //
  65. // Deprecated: use [image.Metadata].
  66. type ImageMetadata = image.Metadata
  67. // ServiceCreateResponse contains the information returned to a client
  68. // on the creation of a new service.
  69. //
  70. // Deprecated: use [swarm.ServiceCreateResponse].
  71. type ServiceCreateResponse = swarm.ServiceCreateResponse
  72. // ServiceUpdateResponse service update response.
  73. //
  74. // Deprecated: use [swarm.ServiceUpdateResponse].
  75. type ServiceUpdateResponse = swarm.ServiceUpdateResponse
  76. // DecodeSecurityOptions decodes a security options string slice to a type safe
  77. // [system.SecurityOpt].
  78. //
  79. // Deprecated: use [system.DecodeSecurityOptions].
  80. func DecodeSecurityOptions(opts []string) ([]system.SecurityOpt, error) {
  81. return system.DecodeSecurityOptions(opts)
  82. }