Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockApiError
- func (m *MockApiError) BadRequestError(in string) jsonapi.Option
- func (m *MockApiError) EXPECT() *MockApiErrorMockRecorder
- func (m *MockApiError) ForbiddenError(ktx kontext.Context, entityType, reason string) jsonapi.Option
- func (m *MockApiError) InternalServerError(ktx kontext.Context) jsonapi.Option
- func (m *MockApiError) NotFoundError(ktx kontext.Context, entityType string) jsonapi.Option
- func (m *MockApiError) UnauthorizedError() jsonapi.Option
- func (m *MockApiError) ValidationError(msg string) jsonapi.Option
- type MockApiErrorMockRecorder
- func (mr *MockApiErrorMockRecorder) BadRequestError(in interface{}) *gomock.Call
- func (mr *MockApiErrorMockRecorder) ForbiddenError(ktx, entityType, reason interface{}) *gomock.Call
- func (mr *MockApiErrorMockRecorder) InternalServerError(ktx interface{}) *gomock.Call
- func (mr *MockApiErrorMockRecorder) NotFoundError(ktx, entityType interface{}) *gomock.Call
- func (mr *MockApiErrorMockRecorder) UnauthorizedError() *gomock.Call
- func (mr *MockApiErrorMockRecorder) ValidationError(msg interface{}) *gomock.Call
- type MockApp
- type MockAppMockRecorder
- type MockCommandController
- type MockCommandControllerMockRecorder
- type MockConfig
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) BasicAuthPassword() *gomock.Call
- func (mr *MockConfigMockRecorder) BasicAuthUsername() *gomock.Call
- func (mr *MockConfigMockRecorder) Dump() *gomock.Call
- func (mr *MockConfigMockRecorder) Port() *gomock.Call
- func (mr *MockConfigMockRecorder) ProxyHost() *gomock.Call
- type MockController
- func (m *MockController) EXPECT() *MockControllerMockRecorder
- func (m *MockController) InjectCommand(command ...module.CommandController)
- func (m *MockController) InjectDownstream(downstream ...module.DownstreamController)
- func (m *MockController) InjectHTTP(http ...module.HttpController)
- func (m *MockController) InjectMetric(http ...module.MetricController)
- func (m *MockController) ListDownstream() []module.DownstreamController
- func (m *MockController) ListMetric() []module.MetricController
- type MockControllerMockRecorder
- func (mr *MockControllerMockRecorder) InjectCommand(command ...interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) InjectDownstream(downstream ...interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) InjectHTTP(http ...interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) InjectMetric(http ...interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) ListDownstream() *gomock.Call
- func (mr *MockControllerMockRecorder) ListMetric() *gomock.Call
- type MockDownstreamController
- type MockDownstreamControllerMockRecorder
- type MockHttpController
- type MockHttpControllerMockRecorder
- type MockMetricController
- func (m *MockMetricController) EXPECT() *MockMetricControllerMockRecorder
- func (m *MockMetricController) Inc(metricName string, labels map[string]string) error
- func (m *MockMetricController) InjectCounter(metricName string, labels ...string)
- func (m *MockMetricController) InjectHistogram(metricName string, labels ...string)
- func (m *MockMetricController) Observe(metricName string, value float64, labels map[string]string) error
- type MockMetricControllerMockRecorder
- func (mr *MockMetricControllerMockRecorder) Inc(metricName, labels interface{}) *gomock.Call
- func (mr *MockMetricControllerMockRecorder) InjectCounter(metricName interface{}, labels ...interface{}) *gomock.Call
- func (mr *MockMetricControllerMockRecorder) InjectHistogram(metricName interface{}, labels ...interface{}) *gomock.Call
- func (mr *MockMetricControllerMockRecorder) Observe(metricName, value, labels interface{}) *gomock.Call
- type MockPlugin
- type MockPluginMockRecorder
- type MockRouterCompiler
- type MockRouterCompilerMockRecorder
- type MockRouterForwarder
- type MockRouterForwarderMockRecorder
- type MockRouterPath
- type MockRouterPathMockRecorder
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 ¶
func (m *MockApiError) EXPECT() *MockApiErrorMockRecorder
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 ¶
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 ¶
func (m *MockCommandController) EXPECT() *MockCommandControllerMockRecorder
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 ¶
func (mr *MockCommandControllerMockRecorder) Example() *gomock.Call
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 ¶
func (mr *MockCommandControllerMockRecorder) Short() *gomock.Call
Short indicates an expected call of Short.
func (*MockCommandControllerMockRecorder) Use ¶
func (mr *MockCommandControllerMockRecorder) Use() *gomock.Call
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) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockController) EXPECT() *MockControllerMockRecorder
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 ¶
func (m *MockDownstreamController) EXPECT() *MockDownstreamControllerMockRecorder
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 ¶
func (mr *MockDownstreamControllerMockRecorder) Name() *gomock.Call
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 ¶
func (m *MockHttpController) EXPECT() *MockHttpControllerMockRecorder
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 ¶
func (mr *MockHttpControllerMockRecorder) Method() *gomock.Call
Method indicates an expected call of Method.
func (*MockHttpControllerMockRecorder) Path ¶
func (mr *MockHttpControllerMockRecorder) Path() *gomock.Call
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 ¶
func (m *MockMetricController) EXPECT() *MockMetricControllerMockRecorder
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.
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) EXPECT ¶
func (m *MockPlugin) EXPECT() *MockPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockRouterCompiler) EXPECT() *MockRouterCompilerMockRecorder
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 ¶
func (m *MockRouterForwarder) EXPECT() *MockRouterForwarderMockRecorder
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 ¶
func (m *MockRouterPath) EXPECT() *MockRouterPathMockRecorder
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.