proxy

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 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 restore.PortProto, newRules policy.L7DataMap) error
	GetBindPort() uint16
	SetRejectReply(string)
	RestoreRules(op *endpoint.Endpoint)
	Cleanup()
}

type MockFQDNProxy

type MockFQDNProxy struct{}

func (MockFQDNProxy) Cleanup

func (m MockFQDNProxy) Cleanup()

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 restore.PortProto, newRules policy.L7DataMap) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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