Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpointInfo ¶
func NewEndpointInfo(baseInfo *k8sproxy.BaseEndpointInfo) k8sproxy.Endpoint
NewEndpointInfo returns a new k8sproxy.Endpoint which abstracts an endpointsInfo.
func NewGroupCounter ¶
func NewGroupCounter() *groupCounter
func NewServiceInfo ¶
func NewServiceInfo(port *corev1.ServicePort, service *corev1.Service, baseInfo *k8sproxy.BaseServiceInfo) k8sproxy.ServicePort
NewServiceInfo returns a new k8sproxy.ServicePort which abstracts a serviceInfo.
Types ¶
type EndpointsMap ¶
type EndpointsMap map[k8sproxy.ServicePortName]map[string]k8sproxy.Endpoint
type GroupCounter ¶
type GroupCounter interface { // Get generates a global unique group ID for a specific service. // If the group ID of the service has been generated, then return the // prior one. The bool return value indicates whether the groupID is newly // generated. Get(svcPortName k8sproxy.ServicePortName) (binding.GroupIDType, bool) // Recycle removes a Service Group ID mapping. The recycled groupID can be // reused. Recycle(svcPortName k8sproxy.ServicePortName) bool }
GroupCounter generates and manages global unique group ID.
type ServiceInfo ¶
type ServiceInfo struct { *k8sproxy.BaseServiceInfo // cache for performance OFProtocol openflow.Protocol }
ServiceInfo is the internal struct for caching service information.
Click to show internal directories.
Click to hide internal directories.