unifi

package
v0.0.0-...-b542e7e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(username, site string, baseURL *url.URL) *Controller

func (*Controller) Devices

func (c *Controller) Devices(ctx context.Context) ([]*Device, error)

func (*Controller) ForceProvision

func (c *Controller) ForceProvision(ctx context.Context, mac net.HardwareAddr) error

func (*Controller) Login

func (c *Controller) Login(ctx context.Context, password string) error

func (*Controller) Sites

func (c *Controller) Sites(ctx context.Context) ([]*Site, error)

type Device

type Device struct {
	DeviceAddr
	ExtraPorts []DeviceAddr
}

type DeviceAddr

type DeviceAddr struct {
	Name string
	IP   net.IP
	MAC  net.HardwareAddr
}

type Site

type Site struct {
	Desc string
	Name string
}

Jump to

Keyboard shortcuts

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