web

package
v0.0.0-...-178e1e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2017 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWeb

func StartWeb(c *provisioner.Configuration)

StartWeb initializes the web UI

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL