Documentation ¶
Index ¶
- func CancelTask(host, id string) error
- func CreateTask(host string, t *models.Task) (string, error)
- func DisableNode(host, id string) error
- func EnableNode(host string, n *models.Node) (id string, err error)
- func GetNodeInfo(host string) (*models.Info, error)
- func GetTask(host, id string) (*models.Task, error)
- func ListNodes(host string) ([]*models.Node, error)
- func ListTasks(host string) (*models.ListTasksResponse, error)
- type APIError
- type NetworkError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
CreateTask submits a task to be executed and return its ID
func DisableNode ¶
DisableNode deactivates a computing note on master server
func EnableNode ¶
EnableNode activates a computing node on master server.
func GetNodeInfo ¶
GetNodeInfo retrieves server information
Types ¶
type NetworkError ¶
type NetworkError struct {
// contains filtered or unexported fields
}
NetworkError hapens when something went wrong with network connection.
Click to show internal directories.
Click to hide internal directories.