go-netops/unifi/sites.go
Snider e1576b49c9
Some checks failed
Security Scan / security (push) Successful in 10s
Test / test (push) Failing after 1m17s
fix: update stale imports from monorepo extraction
core/go/pkg/cli → core/cli/pkg/cli
core/go/pkg/log → core/go-log
core/go/pkg/config → core/config

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 19:20:34 +00:00

17 lines
345 B
Go

package unifi
import (
uf "github.com/unpoller/unifi/v5"
log "forge.lthn.ai/core/go-log"
)
// GetSites returns all sites from the UniFi controller.
func (c *Client) GetSites() ([]*uf.Site, error) {
sites, err := c.api.GetSites()
if err != nil {
return nil, log.E("unifi.GetSites", "failed to fetch sites", err)
}
return sites, nil
}