mock

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 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 MockAuthorizer

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

MockAuthorizer is a mock of Authorizer interface.

func NewMockAuthorizer

func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer

NewMockAuthorizer creates a new mock instance.

func (*MockAuthorizer) EXPECT

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

func (*MockAuthorizer) IsNetworkAddressAuthorized

func (m *MockAuthorizer) IsNetworkAddressAuthorized(arg0, arg1 string) (bool, error)

IsNetworkAddressAuthorized mocks base method.

func (*MockAuthorizer) IsRequestAuthorized

func (m *MockAuthorizer) IsRequestAuthorized(arg0 *http.Request) bool

IsRequestAuthorized mocks base method.

func (*MockAuthorizer) IsResponseAuthorized

func (m *MockAuthorizer) IsResponseAuthorized(arg0 *http.Response) bool

IsResponseAuthorized mocks base method.

type MockAuthorizerMockRecorder

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

MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.

func (*MockAuthorizerMockRecorder) IsNetworkAddressAuthorized

func (mr *MockAuthorizerMockRecorder) IsNetworkAddressAuthorized(arg0, arg1 interface{}) *gomock.Call

IsNetworkAddressAuthorized indicates an expected call of IsNetworkAddressAuthorized.

func (*MockAuthorizerMockRecorder) IsRequestAuthorized

func (mr *MockAuthorizerMockRecorder) IsRequestAuthorized(arg0 interface{}) *gomock.Call

IsRequestAuthorized indicates an expected call of IsRequestAuthorized.

func (*MockAuthorizerMockRecorder) IsResponseAuthorized

func (mr *MockAuthorizerMockRecorder) IsResponseAuthorized(arg0 interface{}) *gomock.Call

IsResponseAuthorized indicates an expected call of IsResponseAuthorized.

Jump to

Keyboard shortcuts

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