Documentation ¶
Index ¶
- func CreateNodeFailErrMocked(t *testing.T, nodeIn *types.Node) *types.Node
- func CreateNodeFailJSONMocked(t *testing.T, nodeIn *types.Node) *types.Node
- func CreateNodeFailStatusMocked(t *testing.T, nodeIn *types.Node) *types.Node
- func CreateNodeMocked(t *testing.T, nodeIn *types.Node) *types.Node
- func DeleteNodeFailErrMocked(t *testing.T, nodeIn *types.Node)
- func DeleteNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)
- func DeleteNodeMocked(t *testing.T, nodeIn *types.Node)
- func GetNodeListFailErrMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node
- func GetNodeListFailJSONMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node
- func GetNodeListFailStatusMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node
- func GetNodeListMocked(t *testing.T, nodesIn *[]types.Node) *[]types.Node
- func RestartNodeFailErrMocked(t *testing.T, nodeIn *types.Node)
- func RestartNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)
- func RestartNodeMocked(t *testing.T, nodeIn *types.Node)
- func StartNodeFailErrMocked(t *testing.T, nodeIn *types.Node)
- func StartNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)
- func StartNodeMocked(t *testing.T, nodeIn *types.Node)
- func StopNodeFailErrMocked(t *testing.T, nodeIn *types.Node)
- func StopNodeFailStatusMocked(t *testing.T, nodeIn *types.Node)
- func StopNodeMocked(t *testing.T, nodeIn *types.Node)
- type NodeService
- func (cl *NodeService) CreateNode(nodeVector *map[string]interface{}) (node *types.Node, err error)
- func (cl *NodeService) DeleteNode(ID string) (err error)
- func (cl *NodeService) GetNodeList() (nodes []types.Node, err error)
- func (cl *NodeService) RestartNode(nodeVector *map[string]interface{}, ID string) (err error)
- func (cl *NodeService) StartNode(nodeVector *map[string]interface{}, ID string) (err error)
- func (cl *NodeService) StopNode(nodeVector *map[string]interface{}, ID string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodeFailErrMocked ¶
CreateNodeFailErrMocked test mocked function
func CreateNodeFailJSONMocked ¶
CreateNodeFailJSONMocked test mocked function
func CreateNodeFailStatusMocked ¶
CreateNodeFailStatusMocked test mocked function
func CreateNodeMocked ¶
CreateNodeMocked test mocked function
func DeleteNodeFailErrMocked ¶
DeleteNodeFailErrMocked test mocked function
func DeleteNodeFailStatusMocked ¶
DeleteNodeFailStatusMocked test mocked function
func DeleteNodeMocked ¶
DeleteNodeMocked test mocked function
func GetNodeListFailErrMocked ¶
GetNodeListFailErrMocked test mocked function
func GetNodeListFailJSONMocked ¶
GetNodeListFailJSONMocked test mocked function
func GetNodeListFailStatusMocked ¶
GetNodeListFailStatusMocked test mocked function
func GetNodeListMocked ¶
GetNodeListMocked test mocked function
func RestartNodeFailErrMocked ¶
RestartNodeFailErrMocked test mocked function
func RestartNodeFailStatusMocked ¶
RestartNodeFailStatusMocked test mocked function
func RestartNodeMocked ¶
RestartNodeMocked test mocked function
func StartNodeFailErrMocked ¶
StartNodeFailErrMocked test mocked function
func StartNodeFailStatusMocked ¶
StartNodeFailStatusMocked test mocked function
func StartNodeMocked ¶
StartNodeMocked test mocked function
func StopNodeFailErrMocked ¶
StopNodeFailErrMocked test mocked function
func StopNodeFailStatusMocked ¶
StopNodeFailStatusMocked 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