Versions in this module Expand all Collapse all v0 v0.2.0 Apr 6, 2026 Changes in this version + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type Board struct + BoardType string + CreatedAt string + CurrentSessionID *string + Device string + Disabled bool + ID string + Label string + PodID *string + SledVersion string + State string + type Client struct + APIKey string + BaseURL string + HTTP *http.Client + func New(baseURL, apiKey string) *Client + func (c *Client) CreateSession(boardType string) (*Session, error) + func (c *Client) DialSerialWS(ctx context.Context, sessionID string) (*websocket.Conn, error) + func (c *Client) EndSession(id string) (*Session, error) + func (c *Client) FindActiveSession() (*Session, error) + func (c *Client) FlashFirmware(sessionID, filePath string) error + func (c *Client) GetMe() (*User, error) + func (c *Client) GetSession(id string) (*Session, error) + func (c *Client) ListBoards() ([]Board, error) + func (c *Client) ListSessions() (*SessionsPage, error) + func (c *Client) PowerCycle(sessionID string) error + type Session struct + BoardID *string + BoardType string + CreatedAt string + CreditsUsed int + EndReason *string + EndedAt *string + ID string + StartedAt *string + State string + UserID string + type SessionsPage struct + Active []Session + Ended []Session + Limit int + Offset int + Total int + type User struct + BalanceCredits int + CreatedAt string + Email string + ID string + IsActive bool + IsAdmin bool + LastActiveAt string