Documentation
¶
Overview ¶
Package unifi provides programmatic access to UniFi hardware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAuthFile = filepath.Join(os.Getenv("HOME"), ".unifi-auth")
DefaultAuthFile is a default place to store authentication information. Pass this to FileAuthStore if an alternate path isn't required.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is an interface to a UniFi controller.
func (*API) EnableWirelessNetwork ¶
func (*API) ListWirelessNetworks ¶
func (api *API) ListWirelessNetworks(site string) ([]WirelessNetwork, error)
func (*API) WriteConfig ¶
WriteConfig writes the configuration to the configured AuthStore.
type AuthStore ¶
An AuthStore is an interface for loading and saving authentication information. See FileAuthStore for a file-based implementation.
func FileAuthStore ¶
FileAuthStore returns an AuthStore that stores authentication information in a named file.
Click to show internal directories.
Click to hide internal directories.