types_deprecated.go 3.4 KB

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