Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceJSON ¶
type DeviceJSON struct { CanUpgrade bool `json:"can_upgrade"` Essid string `json:"essid"` Firmware string `json:"firmware"` FirstSeenAt int64 `json:"first_seen_at"` HasConfig bool `json:"has_config"` Hostname string `json:"hostname"` IPAddress string `json:"ip_address"` IPAddresses map[string][]string `json:"ip_addresses"` LastSeenAt int64 `json:"last_seen_at"` MacAddress string `json:"mac_address"` Model string `json:"model"` Platform string `json:"platform"` Status string `json:"status"` UpSince int64 `json:"up_since"` WirelessMode string `json:"wireless_mode"` }
DeviceJSON wraps a provisioner.Device into JSON presentation
func MakeDeviceJSON ¶
func MakeDeviceJSON(dev *provisioner.Device) *DeviceJSON
MakeDeviceJSON transforms a Device into a DeviceJSON
func WrapDeviceJSON ¶
func WrapDeviceJSON(devices []*provisioner.Device) []*DeviceJSON
WrapDeviceJSON transforms a list of Devices into a list of DeviceJSONs
Click to show internal directories.
Click to hide internal directories.