Documentation
¶
Index ¶
- Constants
- func ApiToMode(mode int64) (string, error)
- func ModeToApi(mode string) (int64, error)
- type Client
- func (c *Client) Get(params string) ([]byte, error)
- func (c *Client) GetNodeInfo() (NodeInfo, error)
- func (c *Client) GetPower() (Power, error)
- func (c *Client) GetSDCard() (SDCard, error)
- func (c *Client) GetUsb() (Usb, error)
- func (c *Client) Set(params string) ([]byte, error)
- func (c *Client) SetUsb(mode, node int64) (Result, error)
- type NodeInfo
- type NodeInfoResponse
- type Power
- type PowerResponse
- type Result
- type ResultError
- type ResultResponse
- type SDCard
- type SDCardResponse
- type Usb
- type UsbResponse
Constants ¶
View Source
const TimeOut int = 10
HostURL - Default Hashicups URL const HostURL string = "http://localhost:19090"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) GetNodeInfo ¶ added in v0.0.2
GetNodeInfo - Returns Turing Pi BMC SD card status.
type NodeInfoResponse ¶ added in v0.0.2
type NodeInfoResponse struct {
Response []NodeInfo `json:"response"`
}
type PowerResponse ¶ added in v0.0.2
type PowerResponse struct {
Response []Power `json:"response"`
}
type ResultError ¶ added in v0.0.3
type ResultError struct {
Reason string
}
func (*ResultError) Error ¶ added in v0.0.3
func (m *ResultError) Error() string
type ResultResponse ¶ added in v0.0.3
type ResultResponse struct {
Response []Result `json:"response"`
}
type SDCardResponse ¶
type SDCardResponse struct {
Response []SDCard `json:"response"`
}
type UsbResponse ¶ added in v0.0.2
type UsbResponse struct {
Response []Usb `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.