mocks

package
v0.0.0-...-17e45d3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMiddlewareMock

type AppMiddlewareMock struct {
	AuthorizationStub func(http.Handler) http.Handler

	CORSProtectionStub func(http.Handler) http.Handler

	LogRequestsStub func(http.Handler) http.Handler

	ReadinesslivenessProbeStub func(http.Handler) http.Handler

	SetupMiddlewareStub func(*runtime.ServeMux) *http.ServeMux
	// contains filtered or unexported fields
}

func (*AppMiddlewareMock) Authorization

func (fake *AppMiddlewareMock) Authorization(arg1 http.Handler) http.Handler

func (*AppMiddlewareMock) AuthorizationArgsForCall

func (fake *AppMiddlewareMock) AuthorizationArgsForCall(i int) http.Handler

func (*AppMiddlewareMock) AuthorizationCallCount

func (fake *AppMiddlewareMock) AuthorizationCallCount() int

func (*AppMiddlewareMock) AuthorizationCalls

func (fake *AppMiddlewareMock) AuthorizationCalls(stub func(http.Handler) http.Handler)

func (*AppMiddlewareMock) AuthorizationReturns

func (fake *AppMiddlewareMock) AuthorizationReturns(result1 http.Handler)

func (*AppMiddlewareMock) AuthorizationReturnsOnCall

func (fake *AppMiddlewareMock) AuthorizationReturnsOnCall(i int, result1 http.Handler)

func (*AppMiddlewareMock) CORSProtection

func (fake *AppMiddlewareMock) CORSProtection(arg1 http.Handler) http.Handler

func (*AppMiddlewareMock) CORSProtectionArgsForCall

func (fake *AppMiddlewareMock) CORSProtectionArgsForCall(i int) http.Handler

func (*AppMiddlewareMock) CORSProtectionCallCount

func (fake *AppMiddlewareMock) CORSProtectionCallCount() int

func (*AppMiddlewareMock) CORSProtectionCalls

func (fake *AppMiddlewareMock) CORSProtectionCalls(stub func(http.Handler) http.Handler)

func (*AppMiddlewareMock) CORSProtectionReturns

func (fake *AppMiddlewareMock) CORSProtectionReturns(result1 http.Handler)

func (*AppMiddlewareMock) CORSProtectionReturnsOnCall

func (fake *AppMiddlewareMock) CORSProtectionReturnsOnCall(i int, result1 http.Handler)

func (*AppMiddlewareMock) Invocations

func (fake *AppMiddlewareMock) Invocations() map[string][][]interface{}

func (*AppMiddlewareMock) LogRequests

func (fake *AppMiddlewareMock) LogRequests(arg1 http.Handler) http.Handler

func (*AppMiddlewareMock) LogRequestsArgsForCall

func (fake *AppMiddlewareMock) LogRequestsArgsForCall(i int) http.Handler

func (*AppMiddlewareMock) LogRequestsCallCount

func (fake *AppMiddlewareMock) LogRequestsCallCount() int

func (*AppMiddlewareMock) LogRequestsCalls

func (fake *AppMiddlewareMock) LogRequestsCalls(stub func(http.Handler) http.Handler)

func (*AppMiddlewareMock) LogRequestsReturns

func (fake *AppMiddlewareMock) LogRequestsReturns(result1 http.Handler)

func (*AppMiddlewareMock) LogRequestsReturnsOnCall

func (fake *AppMiddlewareMock) LogRequestsReturnsOnCall(i int, result1 http.Handler)

func (*AppMiddlewareMock) ReadinesslivenessProbe

func (fake *AppMiddlewareMock) ReadinesslivenessProbe(arg1 http.Handler) http.Handler

func (*AppMiddlewareMock) ReadinesslivenessProbeArgsForCall

func (fake *AppMiddlewareMock) ReadinesslivenessProbeArgsForCall(i int) http.Handler

func (*AppMiddlewareMock) ReadinesslivenessProbeCallCount

func (fake *AppMiddlewareMock) ReadinesslivenessProbeCallCount() int

func (*AppMiddlewareMock) ReadinesslivenessProbeCalls

func (fake *AppMiddlewareMock) ReadinesslivenessProbeCalls(stub func(http.Handler) http.Handler)

func (*AppMiddlewareMock) ReadinesslivenessProbeReturns

func (fake *AppMiddlewareMock) ReadinesslivenessProbeReturns(result1 http.Handler)

func (*AppMiddlewareMock) ReadinesslivenessProbeReturnsOnCall

func (fake *AppMiddlewareMock) ReadinesslivenessProbeReturnsOnCall(i int, result1 http.Handler)

func (*AppMiddlewareMock) SetupMiddleware

func (fake *AppMiddlewareMock) SetupMiddleware(arg1 *runtime.ServeMux) *http.ServeMux

func (*AppMiddlewareMock) SetupMiddlewareArgsForCall

func (fake *AppMiddlewareMock) SetupMiddlewareArgsForCall(i int) *runtime.ServeMux

func (*AppMiddlewareMock) SetupMiddlewareCallCount

func (fake *AppMiddlewareMock) SetupMiddlewareCallCount() int

func (*AppMiddlewareMock) SetupMiddlewareCalls

func (fake *AppMiddlewareMock) SetupMiddlewareCalls(stub func(*runtime.ServeMux) *http.ServeMux)

func (*AppMiddlewareMock) SetupMiddlewareReturns

func (fake *AppMiddlewareMock) SetupMiddlewareReturns(result1 *http.ServeMux)

func (*AppMiddlewareMock) SetupMiddlewareReturnsOnCall

func (fake *AppMiddlewareMock) SetupMiddlewareReturnsOnCall(i int, result1 *http.ServeMux)

type AuthCheckerMock

type AuthCheckerMock struct {
	CheckAccessStub func(string) (bool, error)
	// contains filtered or unexported fields
}

func (*AuthCheckerMock) CheckAccess

func (fake *AuthCheckerMock) CheckAccess(arg1 string) (bool, error)

func (*AuthCheckerMock) CheckAccessArgsForCall

func (fake *AuthCheckerMock) CheckAccessArgsForCall(i int) string

func (*AuthCheckerMock) CheckAccessCallCount

func (fake *AuthCheckerMock) CheckAccessCallCount() int

func (*AuthCheckerMock) CheckAccessCalls

func (fake *AuthCheckerMock) CheckAccessCalls(stub func(string) (bool, error))

func (*AuthCheckerMock) CheckAccessReturns

func (fake *AuthCheckerMock) CheckAccessReturns(result1 bool, result2 error)

func (*AuthCheckerMock) CheckAccessReturnsOnCall

func (fake *AuthCheckerMock) CheckAccessReturnsOnCall(i int, result1 bool, result2 error)

func (*AuthCheckerMock) Invocations

func (fake *AuthCheckerMock) Invocations() map[string][][]interface{}

type HandlerServiceMock

type HandlerServiceMock struct {
	AddRoleStub func(context.Context, *api_v1_users.AddRoleRequest) error

	AuthStub func(context.Context, *api_v1_users.AuthRequest) (*api_v1_users.AuthResponse, error)

	CreateUserStub func(context.Context, *api_v1_users.CreateUserRequest) error
	// contains filtered or unexported fields
}

func (*HandlerServiceMock) AddRole

func (*HandlerServiceMock) AddRoleArgsForCall

func (fake *HandlerServiceMock) AddRoleArgsForCall(i int) (context.Context, *api_v1_users.AddRoleRequest)

func (*HandlerServiceMock) AddRoleCallCount

func (fake *HandlerServiceMock) AddRoleCallCount() int

func (*HandlerServiceMock) AddRoleCalls

func (fake *HandlerServiceMock) AddRoleCalls(stub func(context.Context, *api_v1_users.AddRoleRequest) error)

func (*HandlerServiceMock) AddRoleReturns

func (fake *HandlerServiceMock) AddRoleReturns(result1 error)

func (*HandlerServiceMock) AddRoleReturnsOnCall

func (fake *HandlerServiceMock) AddRoleReturnsOnCall(i int, result1 error)

func (*HandlerServiceMock) Auth

func (*HandlerServiceMock) AuthArgsForCall

func (fake *HandlerServiceMock) AuthArgsForCall(i int) (context.Context, *api_v1_users.AuthRequest)

func (*HandlerServiceMock) AuthCallCount

func (fake *HandlerServiceMock) AuthCallCount() int

func (*HandlerServiceMock) AuthCalls

func (*HandlerServiceMock) AuthReturns

func (fake *HandlerServiceMock) AuthReturns(result1 *api_v1_users.AuthResponse, result2 error)

func (*HandlerServiceMock) AuthReturnsOnCall

func (fake *HandlerServiceMock) AuthReturnsOnCall(i int, result1 *api_v1_users.AuthResponse, result2 error)

func (*HandlerServiceMock) CreateUser

func (fake *HandlerServiceMock) CreateUser(arg1 context.Context, arg2 *api_v1_users.CreateUserRequest) error

func (*HandlerServiceMock) CreateUserArgsForCall

func (fake *HandlerServiceMock) CreateUserArgsForCall(i int) (context.Context, *api_v1_users.CreateUserRequest)

func (*HandlerServiceMock) CreateUserCallCount

func (fake *HandlerServiceMock) CreateUserCallCount() int

func (*HandlerServiceMock) CreateUserCalls

func (fake *HandlerServiceMock) CreateUserCalls(stub func(context.Context, *api_v1_users.CreateUserRequest) error)

func (*HandlerServiceMock) CreateUserReturns

func (fake *HandlerServiceMock) CreateUserReturns(result1 error)

func (*HandlerServiceMock) CreateUserReturnsOnCall

func (fake *HandlerServiceMock) CreateUserReturnsOnCall(i int, result1 error)

func (*HandlerServiceMock) Invocations

func (fake *HandlerServiceMock) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

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