actions

package
v0.0.0-...-0d671b9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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 Action

type Action interface {
	Execute(context.Context)
}

Action describe rule's Action methods

type ActionFactory

type ActionFactory interface {
	Create(models.Rule) (Action, error)
}

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

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

type UnsupportedTargetType struct {
	Action         Action
	TargetTypeName string
}

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

Jump to

Keyboard shortcuts

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