types

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (*ServiceInfo) Equal

func (si *ServiceInfo) Equal(bSvcInfo *ServiceInfo) bool

Jump to

Keyboard shortcuts

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