types_deprecated.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package types
  2. import "github.com/docker/docker/api/types/system"
  3. // Info contains response of Engine API:
  4. // GET "/info"
  5. //
  6. // Deprecated: use [system.Info].
  7. type Info = system.Info
  8. // Commit holds the Git-commit (SHA1) that a binary was built from, as reported
  9. // in the version-string of external tools, such as containerd, or runC.
  10. //
  11. // Deprecated: use [system.Commit].
  12. type Commit = system.Commit
  13. // PluginsInfo is a temp struct holding Plugins name
  14. // registered with docker daemon. It is used by [system.Info] struct
  15. //
  16. // Deprecated: use [system.PluginsInfo].
  17. type PluginsInfo = system.PluginsInfo
  18. // NetworkAddressPool is a temp struct used by [system.Info] struct.
  19. //
  20. // Deprecated: use [system.NetworkAddressPool].
  21. type NetworkAddressPool = system.NetworkAddressPool
  22. // Runtime describes an OCI runtime.
  23. //
  24. // Deprecated: use [system.Runtime].
  25. type Runtime = system.Runtime
  26. // SecurityOpt contains the name and options of a security option.
  27. //
  28. // Deprecated: use [system.SecurityOpt].
  29. type SecurityOpt = system.SecurityOpt
  30. // KeyValue holds a key/value pair.
  31. //
  32. // Deprecated: use [system.KeyValue].
  33. type KeyValue = system.KeyValue
  34. // DecodeSecurityOptions decodes a security options string slice to a type safe
  35. // [system.SecurityOpt].
  36. //
  37. // Deprecated: use [system.DecodeSecurityOptions].
  38. func DecodeSecurityOptions(opts []string) ([]system.SecurityOpt, error) {
  39. return system.DecodeSecurityOptions(opts)
  40. }