Documentation
¶
Index ¶
- func MobileGestaltEncrypt(key string) string
- type Client
- func (c *Client) Battery() (map[string]any, error)
- func (c *Client) Close() error
- func (c *Client) Diagnostics(diagnosticType string) error
- func (c *Client) Goodbye() error
- func (c *Client) IORegistry(plane, entryName, entryClass string) (*DiagnosticsResponse, error)
- func (c *Client) Info() (*Diagnostics, error)
- func (c *Client) MobileGestalt(keys ...string) (*DiagnosticsResponse, error)
- func (c *Client) Restart() error
- func (c *Client) Shutdown() error
- func (c *Client) Sleep() error
- type Diagnostics
- type DiagnosticsResponse
- type IORegistryRequest
- type MobileGesaltRequest
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MobileGestaltEncrypt ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Diagnostics ¶
func (*Client) IORegistry ¶
func (c *Client) IORegistry(plane, entryName, entryClass string) (*DiagnosticsResponse, error)
func (*Client) Info ¶
func (c *Client) Info() (*Diagnostics, error)
func (*Client) MobileGestalt ¶
func (c *Client) MobileGestalt(keys ...string) (*DiagnosticsResponse, error)
type Diagnostics ¶
type Diagnostics struct {
GasGauge struct {
CycleCount int `plist:"CycleCount,omitempty" json:"cycle_count,omitempty"`
DesignCapacity int `plist:"DesignCapacity,omitempty" json:"design_capacity,omitempty"`
FullChargeCapacity int `plist:"FullChargeCapacity,omitempty" json:"full_charge_capacity,omitempty"`
Status string `plist:"Status,omitempty" json:"status,omitempty"`
} `plist:"GasGauge,omitempty" json:"gas_gauge,omitempty"`
HDMI struct {
Connection string `plist:"Connection,omitempty" json:"connection,omitempty"`
Status string `plist:"Status,omitempty" json:"status,omitempty"`
} `plist:"HDMI,omitempty" json:"hdmi,omitempty"`
NAND struct {
Status string `plist:"Status,omitempty" json:"status,omitempty"`
} `plist:"NAND,omitempty" json:"nand,omitempty"`
WiFi struct {
Active string `plist:"Active,omitempty" json:"active,omitempty"`
Status string `plist:"Status,omitempty" json:"status,omitempty"`
} `plist:"WiFi,omitempty" json:"wifi,omitempty"`
}
func (Diagnostics) String ¶
func (d Diagnostics) String() string
type DiagnosticsResponse ¶
type IORegistryRequest ¶
type MobileGesaltRequest ¶
Click to show internal directories.
Click to hide internal directories.