mockdnsproxy

package
v10.342.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mockdnsproxy is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDNSProxy

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

MockDNSProxy is a mock of DNSProxy interface nolint

func NewMockDNSProxy

func NewMockDNSProxy(ctrl *gomock.Controller) *MockDNSProxy

NewMockDNSProxy creates a new mock instance nolint

func (*MockDNSProxy) EXPECT

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

func (*MockDNSProxy) Enforce

func (m *MockDNSProxy) Enforce(ctx context.Context, contextID string, puInfo *policy.PUInfo) error

Enforce mocks base method nolint

func (*MockDNSProxy) HandleDNSResponsePacket

func (m *MockDNSProxy) HandleDNSResponsePacket(dnsPacketData []byte, sourceIP net.IP, sourcePort uint16, destIP net.IP, destPort uint16, puFromContextID func(string) (*pucontext.PUContext, error)) error

HandleDNSResponsePacket mocks base method nolint

func (*MockDNSProxy) StartDNSServer

func (m *MockDNSProxy) StartDNSServer(ctx context.Context, contextID, port string) error

StartDNSServer mocks base method nolint

func (*MockDNSProxy) SyncWithPlatformCache

func (m *MockDNSProxy) SyncWithPlatformCache(ctx context.Context, pctx *pucontext.PUContext) error

SyncWithPlatformCache mocks base method nolint

func (*MockDNSProxy) Unenforce

func (m *MockDNSProxy) Unenforce(ctx context.Context, contextID string) error

Unenforce mocks base method nolint

type MockDNSProxyMockRecorder

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

MockDNSProxyMockRecorder is the mock recorder for MockDNSProxy nolint

func (*MockDNSProxyMockRecorder) Enforce

func (mr *MockDNSProxyMockRecorder) Enforce(ctx, contextID, puInfo interface{}) *gomock.Call

Enforce indicates an expected call of Enforce nolint

func (*MockDNSProxyMockRecorder) HandleDNSResponsePacket

func (mr *MockDNSProxyMockRecorder) HandleDNSResponsePacket(dnsPacketData, sourceIP, sourcePort, destIP, destPort, puFromContextID interface{}) *gomock.Call

HandleDNSResponsePacket indicates an expected call of HandleDNSResponsePacket nolint

func (*MockDNSProxyMockRecorder) StartDNSServer

func (mr *MockDNSProxyMockRecorder) StartDNSServer(ctx, contextID, port interface{}) *gomock.Call

StartDNSServer indicates an expected call of StartDNSServer nolint

func (*MockDNSProxyMockRecorder) SyncWithPlatformCache

func (mr *MockDNSProxyMockRecorder) SyncWithPlatformCache(ctx, pctx interface{}) *gomock.Call

SyncWithPlatformCache indicates an expected call of SyncWithPlatformCache nolint

func (*MockDNSProxyMockRecorder) Unenforce

func (mr *MockDNSProxyMockRecorder) Unenforce(ctx, contextID interface{}) *gomock.Call

Unenforce indicates an expected call of Unenforce nolint

Jump to

Keyboard shortcuts

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