Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct {
Region string `json:"region"` // Geographic region
DataCenter string `json:"data_center"` // Data center identifier
Room string `json:"room"` // Room identifier
Position string `json:"position"` // Specific position within room
}
Location represents location information for devices
func New ¶
New creates a Location from JSON bytes Returns a Location with "" values if unmarshaling fails
func (*Location) BuildPatchedLocation ¶
BuildPatchedLocation builds a patched location from the current location and the input location. It goes through the patchable fields and builds the patched location. If there is no change on patchable fields, it returns nil.
Click to show internal directories.
Click to hide internal directories.