Documentation ¶
Overview ¶
Package actions is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionFactory ¶
ActionFactory is responsible of Aciton creation
func NewActionFactory ¶
func NewActionFactory(c2Client services.C2, errorChan chan<- error, logger log.FieldLogger) ActionFactory
NewActionFactory creates a new ActionFactory
type MockAction ¶
type MockAction struct {
// contains filtered or unexported fields
}
MockAction is a mock of Action interface
func NewMockAction ¶
func NewMockAction(ctrl *gomock.Controller) *MockAction
NewMockAction creates a new mock instance
func (*MockAction) EXPECT ¶
func (m *MockAction) EXPECT() *MockActionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAction) Execute ¶
func (m *MockAction) Execute(arg0 context.Context)
Execute mocks base method
type MockActionFactory ¶
type MockActionFactory struct {
// contains filtered or unexported fields
}
MockActionFactory is a mock of ActionFactory interface
func NewMockActionFactory ¶
func NewMockActionFactory(ctrl *gomock.Controller) *MockActionFactory
NewMockActionFactory creates a new mock instance
func (*MockActionFactory) Create ¶
func (m *MockActionFactory) Create(arg0 models.Rule) (Action, error)
Create mocks base method
func (*MockActionFactory) EXPECT ¶
func (m *MockActionFactory) EXPECT() *MockActionFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockActionFactoryMockRecorder ¶
type MockActionFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockActionFactoryMockRecorder is the mock recorder for MockActionFactory
func (*MockActionFactoryMockRecorder) Create ¶
func (mr *MockActionFactoryMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
type MockActionMockRecorder ¶
type MockActionMockRecorder struct {
// contains filtered or unexported fields
}
MockActionMockRecorder is the mock recorder for MockAction
func (*MockActionMockRecorder) Execute ¶
func (mr *MockActionMockRecorder) Execute(arg0 interface{}) *gomock.Call
Execute indicates an expected call of Execute
type UnsupportedTargetType ¶
UnsupportedTargetType is an error returned when trying to execute an action which doesn't support the given target type.
func (UnsupportedTargetType) Error ¶
func (e UnsupportedTargetType) Error() string