turingpi

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TimeOut int = 10

HostURL - Default Hashicups URL const HostURL string = "http://localhost:19090"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ApiURI     string
	HTTPClient *http.Client
}

func NewClient

func NewClient(endpoint string) (*Client, error)

func (*Client) GetSDCard

func (c *Client) GetSDCard() (SDCard, error)

GetSDCard - Returns Turing Pi BMC SD card status.

type SDCard

type SDCard struct {
	Total int64 `json:"total"`
	Free  int64 `json:"free"`
	Use   int64 `json:"use"`
}

type SDCardResponse

type SDCardResponse struct {
	Response []SDCard `json:"response"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL