types_deprecated.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package types
  2. import (
  3. "github.com/docker/docker/api/types/checkpoint"
  4. "github.com/docker/docker/api/types/system"
  5. )
  6. // CheckpointCreateOptions holds parameters to create a checkpoint from a container.
  7. //
  8. // Deprecated: use [checkpoint.CreateOptions].
  9. type CheckpointCreateOptions = checkpoint.CreateOptions
  10. // CheckpointListOptions holds parameters to list checkpoints for a container
  11. //
  12. // Deprecated: use [checkpoint.ListOptions].
  13. type CheckpointListOptions = checkpoint.ListOptions
  14. // CheckpointDeleteOptions holds parameters to delete a checkpoint from a container
  15. //
  16. // Deprecated: use [checkpoint.DeleteOptions].
  17. type CheckpointDeleteOptions = checkpoint.DeleteOptions
  18. // Checkpoint represents the details of a checkpoint when listing endpoints.
  19. //
  20. // Deprecated: use [checkpoint.Summary].
  21. type Checkpoint = checkpoint.Summary
  22. // Info contains response of Engine API:
  23. // GET "/info"
  24. //
  25. // Deprecated: use [system.Info].
  26. type Info = system.Info
  27. // Commit holds the Git-commit (SHA1) that a binary was built from, as reported
  28. // in the version-string of external tools, such as containerd, or runC.
  29. //
  30. // Deprecated: use [system.Commit].
  31. type Commit = system.Commit
  32. // PluginsInfo is a temp struct holding Plugins name
  33. // registered with docker daemon. It is used by [system.Info] struct
  34. //
  35. // Deprecated: use [system.PluginsInfo].
  36. type PluginsInfo = system.PluginsInfo
  37. // NetworkAddressPool is a temp struct used by [system.Info] struct.
  38. //
  39. // Deprecated: use [system.NetworkAddressPool].
  40. type NetworkAddressPool = system.NetworkAddressPool
  41. // Runtime describes an OCI runtime.
  42. //
  43. // Deprecated: use [system.Runtime].
  44. type Runtime = system.Runtime
  45. // SecurityOpt contains the name and options of a security option.
  46. //
  47. // Deprecated: use [system.SecurityOpt].
  48. type SecurityOpt = system.SecurityOpt
  49. // KeyValue holds a key/value pair.
  50. //
  51. // Deprecated: use [system.KeyValue].
  52. type KeyValue = system.KeyValue
  53. // DecodeSecurityOptions decodes a security options string slice to a type safe
  54. // [system.SecurityOpt].
  55. //
  56. // Deprecated: use [system.DecodeSecurityOptions].
  57. func DecodeSecurityOptions(opts []string) ([]system.SecurityOpt, error) {
  58. return system.DecodeSecurityOptions(opts)
  59. }