types_deprecated.go 2.6 KB

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