mocks

package
v0.0.0-...-b0339d0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommand

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

MockCommand is a mock of Command interface

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance

func (*MockCommand) AddAppToNode

func (m *MockCommand) AddAppToNode(nodeId, appId string) error

AddAppToNode mocks base method

func (*MockCommand) AddNode

func (m *MockCommand) AddNode(id, ip, status string, config map[string]interface{}, apps []string) (map[string]interface{}, error)

AddNode mocks base method

func (*MockCommand) DeleteAppFromNode

func (m *MockCommand) DeleteAppFromNode(nodeId, appId string) error

DeleteAppFromNode mocks base method

func (*MockCommand) DeleteNode

func (m *MockCommand) DeleteNode(nodeId string) error

DeleteNode mocks base method

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCommand) GetNode

func (m *MockCommand) GetNode(nodeId string) (map[string]interface{}, error)

GetNode mocks base method

func (*MockCommand) GetNodeByAppID

func (m *MockCommand) GetNodeByAppID(nodeId, appId string) (map[string]interface{}, error)

GetNodeByAppID mocks base method

func (*MockCommand) GetNodeByIP

func (m *MockCommand) GetNodeByIP(ip string) (map[string]interface{}, error)

GetNodeByIP mocks base method

func (*MockCommand) GetNodes

func (m *MockCommand) GetNodes(queryOptional ...map[string]interface{}) ([]map[string]interface{}, error)

GetNodes mocks base method

func (*MockCommand) UpdateNodeAddress

func (m *MockCommand) UpdateNodeAddress(nodeId, host, port string) error

UpdateNodeAddress mocks base method

func (*MockCommand) UpdateNodeConfiguration

func (m *MockCommand) UpdateNodeConfiguration(nodeId string, config map[string]interface{}) error

UpdateNodeConfiguration mocks base method

func (*MockCommand) UpdateNodeStatus

func (m *MockCommand) UpdateNodeStatus(nodeId, status string) error

UpdateNodeStatus mocks base method

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand

func (*MockCommandMockRecorder) AddAppToNode

func (mr *MockCommandMockRecorder) AddAppToNode(nodeId, appId interface{}) *gomock.Call

AddAppToNode indicates an expected call of AddAppToNode

func (*MockCommandMockRecorder) AddNode

func (mr *MockCommandMockRecorder) AddNode(id, ip, status, config, apps interface{}) *gomock.Call

AddNode indicates an expected call of AddNode

func (*MockCommandMockRecorder) DeleteAppFromNode

func (mr *MockCommandMockRecorder) DeleteAppFromNode(nodeId, appId interface{}) *gomock.Call

DeleteAppFromNode indicates an expected call of DeleteAppFromNode

func (*MockCommandMockRecorder) DeleteNode

func (mr *MockCommandMockRecorder) DeleteNode(nodeId interface{}) *gomock.Call

DeleteNode indicates an expected call of DeleteNode

func (*MockCommandMockRecorder) GetNode

func (mr *MockCommandMockRecorder) GetNode(nodeId interface{}) *gomock.Call

GetNode indicates an expected call of GetNode

func (*MockCommandMockRecorder) GetNodeByAppID

func (mr *MockCommandMockRecorder) GetNodeByAppID(nodeId, appId interface{}) *gomock.Call

GetNodeByAppID indicates an expected call of GetNodeByAppID

func (*MockCommandMockRecorder) GetNodeByIP

func (mr *MockCommandMockRecorder) GetNodeByIP(ip interface{}) *gomock.Call

GetNodeByIP indicates an expected call of GetNodeByIP

func (*MockCommandMockRecorder) GetNodes

func (mr *MockCommandMockRecorder) GetNodes(queryOptional ...interface{}) *gomock.Call

GetNodes indicates an expected call of GetNodes

func (*MockCommandMockRecorder) UpdateNodeAddress

func (mr *MockCommandMockRecorder) UpdateNodeAddress(nodeId, host, port interface{}) *gomock.Call

UpdateNodeAddress indicates an expected call of UpdateNodeAddress

func (*MockCommandMockRecorder) UpdateNodeConfiguration

func (mr *MockCommandMockRecorder) UpdateNodeConfiguration(nodeId, config interface{}) *gomock.Call

UpdateNodeConfiguration indicates an expected call of UpdateNodeConfiguration

func (*MockCommandMockRecorder) UpdateNodeStatus

func (mr *MockCommandMockRecorder) UpdateNodeStatus(nodeId, status interface{}) *gomock.Call

UpdateNodeStatus indicates an expected call of UpdateNodeStatus

Jump to

Keyboard shortcuts

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