Documentation
¶
Index ¶
- type Client
- func (c *Client) Credentials() Credentials
- func (c *Client) FetchConfig(ctx context.Context) (DeviceConfig, error)
- func (c *Client) FetchServiceAccess(ctx context.Context) (ServiceAccess, error)
- func (c *Client) Heartbeat(ctx context.Context) error
- func (c *Client) Introspect(ctx context.Context, token string) (Introspection, error)
- func (c *Client) RedeemKey(ctx context.Context, key string) (Credentials, error)
- func (c *Client) ReportInstance(ctx context.Context, report InstanceReport) (ReportResult, error)
- func (c *Client) SetCredentials(creds Credentials) error
- type ClientOptions
- type ConnectionState
- type CredentialStore
- type Credentials
- type Device
- type DeviceConfig
- type DeviceKind
- type Endpoint
- type FileStore
- type HTTPError
- type Instance
- type InstanceReport
- type Introspection
- type MCPConfig
- type MCPEndpoint
- type Manager
- func (m *Manager) Connect(ctx context.Context, pairingKey string) error
- func (m *Manager) Disconnect() error
- func (m *Manager) SetSyncInterval(interval time.Duration)
- func (m *Manager) Start(ctx context.Context) error
- func (m *Manager) Status() Status
- func (m *Manager) Sync(ctx context.Context) error
- type ManagerOptions
- type ReportResult
- type ServiceAccess
- type Status
- type SyncFunc
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ClientOptions) (*Client, error)
func (*Client) Credentials ¶
func (c *Client) Credentials() Credentials
func (*Client) FetchConfig ¶
func (c *Client) FetchConfig(ctx context.Context) (DeviceConfig, error)
func (*Client) FetchServiceAccess ¶
func (c *Client) FetchServiceAccess(ctx context.Context) (ServiceAccess, error)
func (*Client) Introspect ¶
func (*Client) ReportInstance ¶
func (c *Client) ReportInstance(ctx context.Context, report InstanceReport) (ReportResult, error)
func (*Client) SetCredentials ¶
func (c *Client) SetCredentials(creds Credentials) error
type ClientOptions ¶
type ConnectionState ¶
type ConnectionState string
const ( StateDisconnected ConnectionState = "disconnected" StateConnecting ConnectionState = "connecting" StateConnected ConnectionState = "connected" StateDegraded ConnectionState = "degraded" )
type CredentialStore ¶
type CredentialStore interface {
Load() (Credentials, error)
Save(Credentials) error
Delete() error
}
type Credentials ¶
type Device ¶
type Device struct {
ID string `json:"id"`
Name string `json:"name"`
Kind DeviceKind `json:"kind"`
ClientType string `json:"clientType"`
}
type DeviceConfig ¶
type DeviceKind ¶
type DeviceKind string
const ( DeviceKindClient DeviceKind = "client" DeviceKindService DeviceKind = "service" )
type FileStore ¶
type FileStore struct{ Path string }
func (FileStore) Load ¶
func (s FileStore) Load() (Credentials, error)
func (FileStore) Save ¶
func (s FileStore) Save(creds Credentials) error
type InstanceReport ¶
type Introspection ¶
type MCPConfig ¶
type MCPConfig struct {
Dante *MCPEndpoint `json:"dante,omitempty"`
}
type MCPEndpoint ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(opts ManagerOptions) (*Manager, error)
func (*Manager) Disconnect ¶
func (*Manager) SetSyncInterval ¶ added in v0.1.1
type ManagerOptions ¶
type ReportResult ¶
type ServiceAccess ¶
Click to show internal directories.
Click to hide internal directories.