client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelTask

func CancelTask(host, id string) error

CancelTask cancels task by its ID.

func DisableNode

func DisableNode(host, id string) error

DisableNode disables worker nodes.

func EnableNode

func EnableNode(host string, n *models.Node) (id string, err error)

EnableNode subscribes or enables worker node.

func GetTask

func GetTask(host, id string) (*models.Task, error)

GetTask retrieves task information given its ID.

func ListNodes

func ListNodes(host string) ([]*models.Node, error)

ListNodes retrieves all worker nodes.

func ListTasks

func ListTasks(host string) (*models.ListTasksResponse, error)

ListTasks retrieves all tasks from server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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