Merge pull request #6032 from thaJeztah/deprecate_ListOpts_GetAll

opts: deprecate ListOpts.GetAll in favor of ListOpts.GetSlice
This commit is contained in:
Sebastiaan van Stijn
2025-04-23 15:56:38 +02:00
committed by GitHub

View File

@ -80,6 +80,8 @@ func (opts *ListOpts) GetMap() map[string]struct{} {
}
// GetAll returns the values of slice.
//
// Deprecated: use [ListOpts.GetSlice] instead. This method will be removed in a future release.
func (opts *ListOpts) GetAll() []string {
return *opts.values
}