Versions in this module Expand all Collapse all v0 v0.1.2 Oct 10, 2026 v0.1.0 Oct 10, 2026 Changes in this version + const IfaceClusterNode + const IfaceDevice + const IfaceFwUpdate + const IfaceMagicLink + const IfaceUnsecure + const Port + var ErrAuth = errors.New("authentication failed") + func IsRouterError(err error) bool + type CertificateMismatchError struct + Got string + Want string + func (e *CertificateMismatchError) Error() string + type Client struct + func Dial(ctx context.Context, host, password string, opts ...Option) (*Client, error) + func DialWithHash(ctx context.Context, host string, hash []byte, opts ...Option) (*Client, error) + func (c *Client) Call(ctx context.Context, iface, method string, arg any) (any, error) + func (c *Client) CallDisconnecting(ctx context.Context, iface, method string, arg any) error + func (c *Client) CallJSON(ctx context.Context, iface, method string, arg any) (any, error) + func (c *Client) CertificateFingerprint() string + func (c *Client) Close() error + func (c *Client) Events(ctx context.Context) iter.Seq2[Event, error] + func (c *Client) PasswordHash() []byte + func (c *Client) Property(ctx context.Context, iface, name string) (any, error) + func (c *Client) SetProperty(ctx context.Context, iface, name string, value any) error + func (c *Client) Ubus(ctx context.Context, path, method string, args map[string]any) (any, error) + type Event struct + Interface string + Name string + Payload any + Time time.Time + type MAC net.HardwareAddr + func ParseMAC(s string) (MAC, error) + func (m *MAC) UnmarshalText(text []byte) error + func (m MAC) Equal(o MAC) bool + func (m MAC) MarshalText() ([]byte, error) + func (m MAC) String() string + type Option func(*Client) + func WithCertificateFingerprint(fp string) Option + func WithLogger(log *slog.Logger) Option + type RawMsgpack []byte + type Role string + const RoleMeshPoint + const RoleRouter + type RouterError struct + Code int + Msg string + func (e *RouterError) Error() string