Versions in this module Expand all Collapse all v0 v0.5.1 Sep 6, 2026 v0.5.0 Sep 5, 2026 Changes in this version + const OAuthScope + const RequestTimeout + type Client struct + func New(config Config) *Client + func (c *Client) List(ctx context.Context) ([]Device, error) + type Config struct + BaseURL *url.URL + ClientID string + ClientSecret string + Tailnet string + Transport http.RoundTripper + type Device struct + Addresses []string + ConnectedToControl bool + Hostname string + LastSeen *time.Time + Name string + NodeID string + NodeKey string + OS string + Tags []string + type ErrorKind string + const ErrorCanceled + const ErrorForbidden + const ErrorInvalidResponse + const ErrorRateLimited + const ErrorTimeout + const ErrorUnauthorized + const ErrorUnavailable + type Lister interface + List func(context.Context) ([]Device, error) + type RequestError struct + Kind ErrorKind + StatusCode int + func (e *RequestError) Error() string + func (e *RequestError) Unwrap() error