serviceindex

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceIndex

type ServiceIndex struct {

	// Callback functions
	OnMemberAdded   ServiceMatchCallback
	OnMemberRemoved ServiceMatchCallback

	OnAlive func()
	// contains filtered or unexported fields
}

func NewServiceIndex

func NewServiceIndex() *ServiceIndex

func (*ServiceIndex) DeleteEndpointSlice

func (idx *ServiceIndex) DeleteEndpointSlice(key model.ResourceKey)

func (*ServiceIndex) DeleteIPSet

func (idx *ServiceIndex) DeleteIPSet(id string)

func (*ServiceIndex) OnUpdate

func (idx *ServiceIndex) OnUpdate(update api.Update) (_ bool)

OnUpdate makes ServiceIndex compatible with the Dispatcher. It accepts updates for endpoint slices and passes them through to the Update/Delete methods.

func (*ServiceIndex) RegisterWith

func (idx *ServiceIndex) RegisterWith(allUpdDispatcher *dispatcher.Dispatcher)

func (*ServiceIndex) UpdateEndpointSlice

func (idx *ServiceIndex) UpdateEndpointSlice(es *discovery.EndpointSlice)

func (*ServiceIndex) UpdateIPSet

func (idx *ServiceIndex) UpdateIPSet(id string, serviceName string)

type ServiceMatchCallback

type ServiceMatchCallback func(ipSetID string, member labelindex.IPSetMember)

Jump to

Keyboard shortcuts

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