Help us shape the future of Go! Take the 2026 Go Developer Survey

endpoint

package
v1.18.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointInfoSource

type EndpointInfoSource interface {
	GetPolicyNames() []string
	GetID() uint64
	GetIPv4Address() string
	GetIPv6Address() string
	GetNamedPort(ingress bool, name string, proto u8proto.U8proto) 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, proxyPort uint16, ingress, request bool, verdict accesslog.FlowVerdict)

	// GetPolicyVersionHandle returns the selector cache version handle held for Endpoint's
	// desired policy, if any.
	// Must be called with Endpoint's read lock taken.
	GetPolicyVersionHandle() *versioned.VersionHandle

	// GetListenerProxyPort returns the proxy port for the given listener reference.
	// Returns zero if the proxy port does not exist (yet).
	GetListenerProxyPort(listener string) uint16
}

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`.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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