mirror of
https://github.com/moby/moby.git
synced 2026-08-05 07:30:57 +00:00
api/types: update deprecation notice on NetworkSettingsBase
container.NetworkSettingsBase is deprecated in v28.4, and scheduled for removal in v29. However, it contains three fields that aren't deprecated and that will be moved to NetworkSettings. Update the deprecation notice on NetworkSettingsBase to advise users to access NetworkSettingsBase's fields through NetworkSettings. Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -46,7 +46,8 @@ type NetworkSettings = container.NetworkSettings
|
||||
|
||||
// NetworkSettingsBase holds networking state for a container when inspecting it.
|
||||
//
|
||||
// Deprecated: use [container.NetworkSettingsBase].
|
||||
// Deprecated: [container.NetworkSettingsBase] will be removed in v29. Prefer
|
||||
// accessing the fields it contains through [container.NetworkSettings].
|
||||
type NetworkSettingsBase = container.NetworkSettingsBase //nolint:staticcheck // ignore SA1019: NetworkSettingsBase is deprecated in v28.4.
|
||||
|
||||
// DefaultNetworkSettings holds network information
|
||||
|
||||
Reference in New Issue
Block a user