labcloud

package
v0.0.0-...-5b9d851 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNode

func CreateNode(node Node) interface{}

CreateNode creates a new node, which has to be unique by its combination of MAC and serial number.

func Health

func Health() interface{}

Health returns the health of the API server.

func ReadNode

func ReadNode(ID string) interface{}

ReadNode reads the node identified by the ID.

func UpdateNode

func UpdateNode(ID string, node Node) interface{}

UpdateNode updates the node identified by the ID.

Types

type Node

type Node struct {
	MACAddress      string `json:"mac_address"`
	SerialNumber    string `json:"serial_number"`
	OperatingSystem string `json:"operating_system"`
}

Node describes a device that is managed by the LabCloud platform.

Jump to

Keyboard shortcuts

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