Device represents a LXD container device
Clone returns a copy of the Device.
Validate accepts a map of field/validation functions to run against the device's config.
DeviceNamed contains the name of a device and its config.
Devices represents a set of LXD container devices
NewDevices creates a new Devices set from a native map[string]map[string]string set.
Clone returns a copy of the Devices set.
CloneNative returns a copy of the Devices set as a native map[string]map[string]string type.
Contains checks if a given device exists in the set and if it's identical to that provided
Reversed returns the name of all devices in the set, sorted reversed.
Sorted returns the name of all devices in the set, sorted properly.
Update returns the difference between two sets
DevicesSortable is a sortable slice of device names and config.