Documentation ¶
Index ¶
- Constants
- Variables
- func ByteArrayToMap(data []byte) map[string]interface{}
- func CreateJSONData(data string) map[string]string
- func DisplayOutput(data []byte, rawjson bool)
- func ExecCommand(basepath string, endpoint string, serverOverride string, get bool, ...)
- func FilterProperties(data []byte, filter []string) []byte
- func GenerateURI(basepath string, endpoint string, serverOverride string) string
- func RestCall(uri string, bGet bool, payload string) []byte
Constants ¶
View Source
const HassioServer = "hassio"
HassioServer uri to connect to hass.io with
Variables ¶
View Source
var DebugEnabled = false
DebugEnabled set by global --debug (-d) flag
Functions ¶
func ByteArrayToMap ¶
func CreateJSONData ¶
func DisplayOutput ¶
func ExecCommand ¶
func ExecCommand(basepath string, endpoint string, serverOverride string, get bool, Options string, Filter string, RawJSON bool)
ExecCommand Used to execute the remote calls for each of the managing commands
func FilterProperties ¶
func GenerateURI ¶
GenerateURI Creates the API URI from the server and the endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.