node

package
v0.6.0-rc Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNodeFailErrMocked

func CreateNodeFailErrMocked(t *testing.T, nodeIn *types.Node) *types.Node

CreateNodeFailErrMocked test mocked function

func CreateNodeFailJSONMocked

func CreateNodeFailJSONMocked(t *testing.T, nodeIn *types.Node) *types.Node

CreateNodeFailJSONMocked test mocked function

func CreateNodeFailStatusMocked

func CreateNodeFailStatusMocked(t *testing.T, nodeIn *types.Node) *types.Node

CreateNodeFailStatusMocked test mocked function

func CreateNodeMocked

func CreateNodeMocked(t *testing.T, nodeIn *types.Node) *types.Node

CreateNodeMocked test mocked function

func DeleteNodeFailErrMocked

func DeleteNodeFailErrMocked(t *testing.T, nodeIn *types.Node)

DeleteNodeFailErrMocked test mocked function

func DeleteNodeFailStatusMocked

func DeleteNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)

DeleteNodeFailStatusMocked test mocked function

func DeleteNodeMocked

func DeleteNodeMocked(t *testing.T, nodeIn *types.Node)

DeleteNodeMocked test mocked function

func GetNodeListFailErrMocked

func GetNodeListFailErrMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node

GetNodeListFailErrMocked test mocked function

func GetNodeListFailJSONMocked

func GetNodeListFailJSONMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node

GetNodeListFailJSONMocked test mocked function

func GetNodeListFailStatusMocked

func GetNodeListFailStatusMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node

GetNodeListFailStatusMocked test mocked function

func GetNodeListMocked

func GetNodeListMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node

GetNodeListMocked test mocked function

func RestartNodeFailErrMocked

func RestartNodeFailErrMocked(t *testing.T, nodeIn *types.Node)

RestartNodeFailErrMocked test mocked function

func RestartNodeFailStatusMocked

func RestartNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)

RestartNodeFailStatusMocked test mocked function

func RestartNodeMocked

func RestartNodeMocked(t *testing.T, nodeIn *types.Node)

RestartNodeMocked test mocked function

func StartNodeFailErrMocked

func StartNodeFailErrMocked(t *testing.T, nodeIn *types.Node)

StartNodeFailErrMocked test mocked function

func StartNodeFailStatusMocked

func StartNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)

StartNodeFailStatusMocked test mocked function

func StartNodeMocked

func StartNodeMocked(t *testing.T, nodeIn *types.Node)

StartNodeMocked test mocked function

func StopNodeFailErrMocked

func StopNodeFailErrMocked(t *testing.T, nodeIn *types.Node)

StopNodeFailErrMocked test mocked function

func StopNodeFailStatusMocked

func StopNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)

StopNodeFailStatusMocked test mocked function

func StopNodeMocked

func StopNodeMocked(t *testing.T, nodeIn *types.Node)

StopNodeMocked test mocked function

Types

type NodeService

type NodeService struct {
	// contains filtered or unexported fields
}

NodeService manages node operations

func NewNodeService

func NewNodeService(concertoService utils.ConcertoService) (*NodeService, error)

NewNodeService returns a Concerto node service

func (*NodeService) CreateNode

func (cl *NodeService) CreateNode(nodeVector *map[string]interface{}) (node *types.Node, err error)

CreateNode creates a node

func (*NodeService) DeleteNode

func (cl *NodeService) DeleteNode(ID string) (err error)

DeleteNode deletes a node by its ID

func (*NodeService) GetNodeList

func (cl *NodeService) GetNodeList() (nodes []types.Node, err error)

GetNodeList returns the list of nodes as an array of Node

func (*NodeService) RestartNode

func (cl *NodeService) RestartNode(nodeVector *map[string]interface{}, ID string) (err error)

RestartNode empties a node by its ID

func (*NodeService) StartNode

func (cl *NodeService) StartNode(nodeVector *map[string]interface{}, ID string) (err error)

StartNode starts a node by its ID

func (*NodeService) StopNode

func (cl *NodeService) StopNode(nodeVector *map[string]interface{}, ID string) (err error)

StopNode stops a node by its ID

Jump to

Keyboard shortcuts

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