types_deprecated.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. // ContainerStartOptions holds parameters to start containers.
  78. //
  79. // Deprecated: use [container.StartOptions].
  80. type ContainerStartOptions = container.StartOptions
  81. // ResizeOptions holds parameters to resize a TTY.
  82. // It can be used to resize container TTYs and
  83. // exec process TTYs too.
  84. //
  85. // Deprecated: use [container.ResizeOptions].
  86. type ResizeOptions = container.ResizeOptions
  87. // ContainerAttachOptions holds parameters to attach to a container.
  88. //
  89. // Deprecated: use [container.AttachOptions].
  90. type ContainerAttachOptions = container.AttachOptions
  91. // ContainerCommitOptions holds parameters to commit changes into a container.
  92. //
  93. // Deprecated: use [container.CommitOptions].
  94. type ContainerCommitOptions = container.CommitOptions
  95. // ContainerListOptions holds parameters to list containers with.
  96. //
  97. // Deprecated: use [container.ListOptions].
  98. type ContainerListOptions = container.ListOptions
  99. // ContainerLogsOptions holds parameters to filter logs with.
  100. //
  101. // Deprecated: use [container.LogsOptions].
  102. type ContainerLogsOptions = container.LogsOptions
  103. // ContainerRemoveOptions holds parameters to remove containers.
  104. //
  105. // Deprecated: use [container.RemoveOptions].
  106. type ContainerRemoveOptions = container.RemoveOptions
  107. // DecodeSecurityOptions decodes a security options string slice to a type safe
  108. // [system.SecurityOpt].
  109. //
  110. // Deprecated: use [system.DecodeSecurityOptions].
  111. func DecodeSecurityOptions(opts []string) ([]system.SecurityOpt, error) {
  112. return system.DecodeSecurityOptions(opts)
  113. }