mock

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApiError

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

MockApiError is a mock of ApiError interface.

func NewMockApiError

func NewMockApiError(ctrl *gomock.Controller) *MockApiError

NewMockApiError creates a new mock instance.

func (*MockApiError) BadRequestError

func (m *MockApiError) BadRequestError(in string) jsonapi.Option

BadRequestError mocks base method.

func (*MockApiError) EXPECT

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

func (*MockApiError) ForbiddenError

func (m *MockApiError) ForbiddenError(ktx kontext.Context, entityType, reason string) jsonapi.Option

ForbiddenError mocks base method.

func (*MockApiError) InternalServerError

func (m *MockApiError) InternalServerError(ktx kontext.Context) jsonapi.Option

InternalServerError mocks base method.

func (*MockApiError) NotFoundError

func (m *MockApiError) NotFoundError(ktx kontext.Context, entityType string) jsonapi.Option

NotFoundError mocks base method.

func (*MockApiError) UnauthorizedError

func (m *MockApiError) UnauthorizedError() jsonapi.Option

UnauthorizedError mocks base method.

func (*MockApiError) ValidationError

func (m *MockApiError) ValidationError(msg string) jsonapi.Option

ValidationError mocks base method.

type MockApiErrorMockRecorder

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

MockApiErrorMockRecorder is the mock recorder for MockApiError.

func (*MockApiErrorMockRecorder) BadRequestError

func (mr *MockApiErrorMockRecorder) BadRequestError(in interface{}) *gomock.Call

BadRequestError indicates an expected call of BadRequestError.

func (*MockApiErrorMockRecorder) ForbiddenError

func (mr *MockApiErrorMockRecorder) ForbiddenError(ktx, entityType, reason interface{}) *gomock.Call

ForbiddenError indicates an expected call of ForbiddenError.

func (*MockApiErrorMockRecorder) InternalServerError

func (mr *MockApiErrorMockRecorder) InternalServerError(ktx interface{}) *gomock.Call

InternalServerError indicates an expected call of InternalServerError.

func (*MockApiErrorMockRecorder) NotFoundError

func (mr *MockApiErrorMockRecorder) NotFoundError(ktx, entityType interface{}) *gomock.Call

NotFoundError indicates an expected call of NotFoundError.

func (*MockApiErrorMockRecorder) UnauthorizedError

func (mr *MockApiErrorMockRecorder) UnauthorizedError() *gomock.Call

UnauthorizedError indicates an expected call of UnauthorizedError.

func (*MockApiErrorMockRecorder) ValidationError

func (mr *MockApiErrorMockRecorder) ValidationError(msg interface{}) *gomock.Call

ValidationError indicates an expected call of ValidationError.

type MockApp

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

MockApp is a mock of App interface.

func NewMockApp

func NewMockApp(ctrl *gomock.Controller) *MockApp

NewMockApp creates a new mock instance.

func (*MockApp) Controller

func (m *MockApp) Controller() module.Controller

Controller mocks base method.

func (*MockApp) EXPECT

func (m *MockApp) EXPECT() *MockAppMockRecorder

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

type MockAppMockRecorder

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

MockAppMockRecorder is the mock recorder for MockApp.

func (*MockAppMockRecorder) Controller

func (mr *MockAppMockRecorder) Controller() *gomock.Call

Controller indicates an expected call of Controller.

type MockCommandController

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

MockCommandController is a mock of CommandController interface.

func NewMockCommandController

func NewMockCommandController(ctrl *gomock.Controller) *MockCommandController

NewMockCommandController creates a new mock instance.

func (*MockCommandController) EXPECT

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

func (*MockCommandController) Example

func (m *MockCommandController) Example() string

Example mocks base method.

func (*MockCommandController) Run

func (m *MockCommandController) Run(cmd *cobra.Command, args []string)

Run mocks base method.

func (*MockCommandController) Short

func (m *MockCommandController) Short() string

Short mocks base method.

func (*MockCommandController) Use

func (m *MockCommandController) Use() string

Use mocks base method.

type MockCommandControllerMockRecorder

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

MockCommandControllerMockRecorder is the mock recorder for MockCommandController.

func (*MockCommandControllerMockRecorder) Example

Example indicates an expected call of Example.

func (*MockCommandControllerMockRecorder) Run

func (mr *MockCommandControllerMockRecorder) Run(cmd, args interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockCommandControllerMockRecorder) Short

Short indicates an expected call of Short.

func (*MockCommandControllerMockRecorder) Use

Use indicates an expected call of Use.

type MockConfig

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

MockConfig is a mock of Config interface.

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance.

func (*MockConfig) BasicAuthPassword

func (m *MockConfig) BasicAuthPassword() string

BasicAuthPassword mocks base method.

func (*MockConfig) BasicAuthUsername

func (m *MockConfig) BasicAuthUsername() string

BasicAuthUsername mocks base method.

func (*MockConfig) Dump

func (m *MockConfig) Dump() string

Dump mocks base method.

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

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

func (*MockConfig) Port

func (m *MockConfig) Port() int

Port mocks base method.

func (*MockConfig) ProxyHost

func (m *MockConfig) ProxyHost() string

ProxyHost mocks base method.

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig.

func (*MockConfigMockRecorder) BasicAuthPassword

func (mr *MockConfigMockRecorder) BasicAuthPassword() *gomock.Call

BasicAuthPassword indicates an expected call of BasicAuthPassword.

func (*MockConfigMockRecorder) BasicAuthUsername

func (mr *MockConfigMockRecorder) BasicAuthUsername() *gomock.Call

BasicAuthUsername indicates an expected call of BasicAuthUsername.

func (*MockConfigMockRecorder) Dump

func (mr *MockConfigMockRecorder) Dump() *gomock.Call

Dump indicates an expected call of Dump.

func (*MockConfigMockRecorder) Port

func (mr *MockConfigMockRecorder) Port() *gomock.Call

Port indicates an expected call of Port.

func (*MockConfigMockRecorder) ProxyHost

func (mr *MockConfigMockRecorder) ProxyHost() *gomock.Call

ProxyHost indicates an expected call of ProxyHost.

type MockController

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

MockController is a mock of Controller interface.

func NewMockController

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) EXPECT

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

func (*MockController) InjectCommand

func (m *MockController) InjectCommand(command ...module.CommandController)

InjectCommand mocks base method.

func (*MockController) InjectDownstream

func (m *MockController) InjectDownstream(downstream ...module.DownstreamController)

InjectDownstream mocks base method.

func (*MockController) InjectHTTP

func (m *MockController) InjectHTTP(http ...module.HttpController)

InjectHTTP mocks base method.

func (*MockController) InjectMetric

func (m *MockController) InjectMetric(http ...module.MetricController)

InjectMetric mocks base method.

func (*MockController) ListDownstream

func (m *MockController) ListDownstream() []module.DownstreamController

ListDownstream mocks base method.

func (*MockController) ListMetric

func (m *MockController) ListMetric() []module.MetricController

ListMetric mocks base method.

type MockControllerMockRecorder

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

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) InjectCommand

func (mr *MockControllerMockRecorder) InjectCommand(command ...interface{}) *gomock.Call

InjectCommand indicates an expected call of InjectCommand.

func (*MockControllerMockRecorder) InjectDownstream

func (mr *MockControllerMockRecorder) InjectDownstream(downstream ...interface{}) *gomock.Call

InjectDownstream indicates an expected call of InjectDownstream.

func (*MockControllerMockRecorder) InjectHTTP

func (mr *MockControllerMockRecorder) InjectHTTP(http ...interface{}) *gomock.Call

InjectHTTP indicates an expected call of InjectHTTP.

func (*MockControllerMockRecorder) InjectMetric

func (mr *MockControllerMockRecorder) InjectMetric(http ...interface{}) *gomock.Call

InjectMetric indicates an expected call of InjectMetric.

func (*MockControllerMockRecorder) ListDownstream

func (mr *MockControllerMockRecorder) ListDownstream() *gomock.Call

ListDownstream indicates an expected call of ListDownstream.

func (*MockControllerMockRecorder) ListMetric

func (mr *MockControllerMockRecorder) ListMetric() *gomock.Call

ListMetric indicates an expected call of ListMetric.

type MockDownstreamController

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

MockDownstreamController is a mock of DownstreamController interface.

func NewMockDownstreamController

func NewMockDownstreamController(ctrl *gomock.Controller) *MockDownstreamController

NewMockDownstreamController creates a new mock instance.

func (*MockDownstreamController) EXPECT

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

func (*MockDownstreamController) Intervene

func (m *MockDownstreamController) Intervene(c *gin.Context, proxyReq *http.Request, r module.RouterPath) error

Intervene mocks base method.

func (*MockDownstreamController) Name

func (m *MockDownstreamController) Name() string

Name mocks base method.

type MockDownstreamControllerMockRecorder

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

MockDownstreamControllerMockRecorder is the mock recorder for MockDownstreamController.

func (*MockDownstreamControllerMockRecorder) Intervene

func (mr *MockDownstreamControllerMockRecorder) Intervene(c, proxyReq, r interface{}) *gomock.Call

Intervene indicates an expected call of Intervene.

func (*MockDownstreamControllerMockRecorder) Name

Name indicates an expected call of Name.

type MockHttpController

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

MockHttpController is a mock of HttpController interface.

func NewMockHttpController

func NewMockHttpController(ctrl *gomock.Controller) *MockHttpController

NewMockHttpController creates a new mock instance.

func (*MockHttpController) Control

func (m *MockHttpController) Control(ktx kontext.Context, c *gin.Context)

Control mocks base method.

func (*MockHttpController) EXPECT

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

func (*MockHttpController) Method

func (m *MockHttpController) Method() string

Method mocks base method.

func (*MockHttpController) Path

func (m *MockHttpController) Path() string

Path mocks base method.

type MockHttpControllerMockRecorder

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

MockHttpControllerMockRecorder is the mock recorder for MockHttpController.

func (*MockHttpControllerMockRecorder) Control

func (mr *MockHttpControllerMockRecorder) Control(ktx, c interface{}) *gomock.Call

Control indicates an expected call of Control.

func (*MockHttpControllerMockRecorder) Method

Method indicates an expected call of Method.

func (*MockHttpControllerMockRecorder) Path

Path indicates an expected call of Path.

type MockMetricController

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

MockMetricController is a mock of MetricController interface.

func NewMockMetricController

func NewMockMetricController(ctrl *gomock.Controller) *MockMetricController

NewMockMetricController creates a new mock instance.

func (*MockMetricController) EXPECT

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

func (*MockMetricController) Inc

func (m *MockMetricController) Inc(metricName string, labels map[string]string) error

Inc mocks base method.

func (*MockMetricController) InjectCounter

func (m *MockMetricController) InjectCounter(metricName string, labels ...string)

InjectCounter mocks base method.

func (*MockMetricController) InjectHistogram

func (m *MockMetricController) InjectHistogram(metricName string, labels ...string)

InjectHistogram mocks base method.

func (*MockMetricController) Observe

func (m *MockMetricController) Observe(metricName string, value float64, labels map[string]string) error

Observe mocks base method.

type MockMetricControllerMockRecorder

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

MockMetricControllerMockRecorder is the mock recorder for MockMetricController.

func (*MockMetricControllerMockRecorder) Inc

func (mr *MockMetricControllerMockRecorder) Inc(metricName, labels interface{}) *gomock.Call

Inc indicates an expected call of Inc.

func (*MockMetricControllerMockRecorder) InjectCounter

func (mr *MockMetricControllerMockRecorder) InjectCounter(metricName interface{}, labels ...interface{}) *gomock.Call

InjectCounter indicates an expected call of InjectCounter.

func (*MockMetricControllerMockRecorder) InjectHistogram

func (mr *MockMetricControllerMockRecorder) InjectHistogram(metricName interface{}, labels ...interface{}) *gomock.Call

InjectHistogram indicates an expected call of InjectHistogram.

func (*MockMetricControllerMockRecorder) Observe

func (mr *MockMetricControllerMockRecorder) Observe(metricName, value, labels interface{}) *gomock.Call

Observe indicates an expected call of Observe.

type MockPlugin

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

MockPlugin is a mock of Plugin interface.

func NewMockPlugin

func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin

NewMockPlugin creates a new mock instance.

func (*MockPlugin) Dump

func (m *MockPlugin) Dump() string

Dump mocks base method.

func (*MockPlugin) EXPECT

func (m *MockPlugin) EXPECT() *MockPluginMockRecorder

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

func (*MockPlugin) Exist

func (m *MockPlugin) Exist(plugin string) bool

Exist mocks base method.

func (*MockPlugin) List

func (m *MockPlugin) List() []string

List mocks base method.

func (*MockPlugin) Plugin

func (m *MockPlugin) Plugin(plugin string)

Plugin mocks base method.

type MockPluginMockRecorder

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

MockPluginMockRecorder is the mock recorder for MockPlugin.

func (*MockPluginMockRecorder) Dump

func (mr *MockPluginMockRecorder) Dump() *gomock.Call

Dump indicates an expected call of Dump.

func (*MockPluginMockRecorder) Exist

func (mr *MockPluginMockRecorder) Exist(plugin interface{}) *gomock.Call

Exist indicates an expected call of Exist.

func (*MockPluginMockRecorder) List

func (mr *MockPluginMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockPluginMockRecorder) Plugin

func (mr *MockPluginMockRecorder) Plugin(plugin interface{}) *gomock.Call

Plugin indicates an expected call of Plugin.

type MockRouterCompiler

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

MockRouterCompiler is a mock of RouterCompiler interface.

func NewMockRouterCompiler

func NewMockRouterCompiler(ctrl *gomock.Controller) *MockRouterCompiler

NewMockRouterCompiler creates a new mock instance.

func (*MockRouterCompiler) Compile

func (m *MockRouterCompiler) Compile(routesPath string) ([]entity.RouteObject, error)

Compile mocks base method.

func (*MockRouterCompiler) EXPECT

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

type MockRouterCompilerMockRecorder

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

MockRouterCompilerMockRecorder is the mock recorder for MockRouterCompiler.

func (*MockRouterCompilerMockRecorder) Compile

func (mr *MockRouterCompilerMockRecorder) Compile(routesPath interface{}) *gomock.Call

Compile indicates an expected call of Compile.

type MockRouterForwarder

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

MockRouterForwarder is a mock of RouterForwarder interface.

func NewMockRouterForwarder

func NewMockRouterForwarder(ctrl *gomock.Controller) *MockRouterForwarder

NewMockRouterForwarder creates a new mock instance.

func (*MockRouterForwarder) EXPECT

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

func (*MockRouterForwarder) Generate

func (m *MockRouterForwarder) Generate(engine *gin.Engine, metric module.MetricController, routeObjects []entity.RouteObject, downStreamPlugin []module.DownstreamController) error

Generate mocks base method.

type MockRouterForwarderMockRecorder

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

MockRouterForwarderMockRecorder is the mock recorder for MockRouterForwarder.

func (*MockRouterForwarderMockRecorder) Generate

func (mr *MockRouterForwarderMockRecorder) Generate(engine, metric, routeObjects, downStreamPlugin interface{}) *gomock.Call

Generate indicates an expected call of Generate.

type MockRouterPath

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

MockRouterPath is a mock of RouterPath interface.

func NewMockRouterPath

func NewMockRouterPath(ctrl *gomock.Controller) *MockRouterPath

NewMockRouterPath creates a new mock instance.

func (*MockRouterPath) EXPECT

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

func (*MockRouterPath) GetAuth

func (m *MockRouterPath) GetAuth() string

GetAuth mocks base method.

func (*MockRouterPath) GetScope

func (m *MockRouterPath) GetScope() string

GetScope mocks base method.

type MockRouterPathMockRecorder

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

MockRouterPathMockRecorder is the mock recorder for MockRouterPath.

func (*MockRouterPathMockRecorder) GetAuth

func (mr *MockRouterPathMockRecorder) GetAuth() *gomock.Call

GetAuth indicates an expected call of GetAuth.

func (*MockRouterPathMockRecorder) GetScope

func (mr *MockRouterPathMockRecorder) GetScope() *gomock.Call

GetScope indicates an expected call of GetScope.

Jump to

Keyboard shortcuts

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