These changes include the unused.Meta type to hold metadata, and adds a Meta() unused.Meta function to both unused.Disk and unused.Provider interfaces.
While at it, when adding the implementations, the code will also pick some other attributes from the different providers to be used as metadata. If all providers would agree on a consistent way of having metadata, that would make this much easier.
These changes include the
unused.Meta
type to hold metadata, and adds aMeta() unused.Meta
function to bothunused.Disk
andunused.Provider
interfaces.While at it, when adding the implementations, the code will also pick some other attributes from the different providers to be used as metadata. If all providers would agree on a consistent way of having metadata, that would make this much easier.