proxy

package
v1.11.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSProxier

type DNSProxier interface {
	GetRules(uint16) (restore.DNSRules, error)
	RemoveRestoredRules(uint16)
	UpdateAllowed(endpointID uint64, destPort uint16, newRules policy.L7DataMap) error
	GetBindPort() uint16
	SetRejectReply(string)
	RestoreRules(op *endpoint.Endpoint)
}

type MockFQDNProxy

type MockFQDNProxy struct{}

func (MockFQDNProxy) GetBindPort

func (m MockFQDNProxy) GetBindPort() uint16

func (MockFQDNProxy) GetRules

func (m MockFQDNProxy) GetRules(u uint16) (restore.DNSRules, error)

func (MockFQDNProxy) RemoveRestoredRules

func (m MockFQDNProxy) RemoveRestoredRules(u uint16)

func (MockFQDNProxy) RestoreRules

func (m MockFQDNProxy) RestoreRules(op *endpoint.Endpoint)

func (MockFQDNProxy) SetRejectReply

func (m MockFQDNProxy) SetRejectReply(s string)

func (MockFQDNProxy) UpdateAllowed

func (m MockFQDNProxy) UpdateAllowed(endpointID uint64, destPort uint16, newRules policy.L7DataMap) error

Jump to

Keyboard shortcuts

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