Documentation
¶
Index ¶
- type DNSProxier
- type MockFQDNProxy
- func (m MockFQDNProxy) Cleanup()
- func (m MockFQDNProxy) GetBindPort() uint16
- func (m MockFQDNProxy) GetRules(*versioned.VersionHandle, uint16) (restore.DNSRules, error)
- func (m MockFQDNProxy) Listen(uint16) error
- func (m MockFQDNProxy) RemoveRestoredRules(u uint16)
- func (m MockFQDNProxy) RestoreRules(op *endpoint.Endpoint)
- func (m MockFQDNProxy) UpdateAllowed(endpointID uint64, destPort restore.PortProto, newRules policy.L7DataMap) (revert.RevertFunc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSProxier ¶
type DNSProxier interface {
GetRules(*versioned.VersionHandle, uint16) (restore.DNSRules, error)
RemoveRestoredRules(uint16)
UpdateAllowed(endpointID uint64, destPort restore.PortProto, newRules policy.L7DataMap) (revert.RevertFunc, error)
GetBindPort() uint16
RestoreRules(op *endpoint.Endpoint)
Cleanup()
Listen(port uint16) error
}
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(*versioned.VersionHandle, uint16) (restore.DNSRules, error)
func (MockFQDNProxy) Listen ¶ added in v1.18.0
func (m MockFQDNProxy) Listen(uint16) error
func (MockFQDNProxy) RemoveRestoredRules ¶
func (m MockFQDNProxy) RemoveRestoredRules(u uint16)
func (MockFQDNProxy) RestoreRules ¶
func (m MockFQDNProxy) RestoreRules(op *endpoint.Endpoint)
func (MockFQDNProxy) UpdateAllowed ¶
func (m MockFQDNProxy) UpdateAllowed(endpointID uint64, destPort restore.PortProto, newRules policy.L7DataMap) (revert.RevertFunc, error)
Click to show internal directories.
Click to hide internal directories.