stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
204 stars 109 forks source link

Use common generic fetch of collection objects #352

Closed stmcginnis closed 3 weeks ago

stmcginnis commented 3 weeks ago

This moves the minimum supported Go version to 1.18 to allow the use of gneerics in the code.

This adds a common function for getting all objects in a collection referenced by a link. This is used by most objects to retrieve a set of all objects of the given type. With the ability to use generics now, this eliminates a lot of repetitive code.