Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionOp ¶
type ActionOp int
const ( // Reboot the NUC OpReboot ActionOp = iota // Fetch a file from an internet source OpFetch // Verify the checksum of a file OpVerify // Extract a tar archive OpExtract // Delete files or directories from disk OpDelete // Execute a command on the NUC OpExec // Put a file to an internet destination OpPut // Perform an Update OpUpdate )
type Asset ¶
type DeleteData ¶
type DeleteData struct {
Path string `json:"path"`
}
type ExtractData ¶
type Ping ¶
type Ping struct {
MACAddress string `json:"mac_addr"`
Version VersionInfo `json:"version_info"`
HasErrors bool `json:"has_errors"`
}
type PingResponse ¶
type PingResponse struct {
Actions []ResponseAction `json:"actions,omitempty"`
}
type ResponseAction ¶
type ResponseAction struct {
Op ActionOp `json:"op"`
// This is why we don't just submodule the payloads package
Data json.RawMessage `json:"data,omitempty"`
}
type UpdateData ¶
type UpdateData struct {
Version Version `json:"version"`
}
type VerifyData ¶
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.