Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointInfoSource ¶
type EndpointInfoSource interface {
GetID() uint64
GetIPv4Address() string
GetIPv6Address() string
HasSidecarProxy() bool
ConntrackNameLocked() string
GetNamedPort(ingress bool, name string, proto uint8) uint16
}
EndpointInfoSource returns information about an endpoint being proxied. The read lock must be held when calling any method.
type EndpointUpdater ¶
type EndpointUpdater interface {
EndpointInfoSource
// OnProxyPolicyUpdate is called when the proxy acknowledges that it
// has applied a policy.
OnProxyPolicyUpdate(policyRevision uint64)
// UpdateProxyStatistics updates the Endpoint's proxy statistics to account
// for a new observed flow with the given characteristics.
UpdateProxyStatistics(proxyType, l4Protocol string, port uint16, ingress, request bool, verdict accesslog.FlowVerdict)
// OnDNSPolicyUpdateLocked is called when the Endpoint's DNS policy has been updated.
// 'rules' is a fresh copy of the DNS rules passed to the callee.
OnDNSPolicyUpdateLocked(rules restore.DNSRules)
}
EndpointUpdater returns information about an endpoint being proxied and is called back to update the endpoint when proxy events occur. This is a subset of `Endpoint`.
Click to show internal directories.
Click to hide internal directories.