service_discovery

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyServiceDiscoveryManager

type DummyServiceDiscoveryManager struct{}

func (DummyServiceDiscoveryManager) GetEndpoints

func (d DummyServiceDiscoveryManager) GetEndpoints() ([]string, error)

func (DummyServiceDiscoveryManager) Run

type ServiceDiscoveryManager

type ServiceDiscoveryManager interface {
	// GetEndpoints get all endpoints list in the format `host:port`
	GetEndpoints() ([]string, error)

	// Run starts the service discovery manager
	Run() error
}

ServiceDiscoveryManager is used to discover all available endpoints.

func NewPodInformerServiceDiscoveryManager

func NewPodInformerServiceDiscoveryManager(ctx context.Context, client kubernetes.Interface,
	podSelector labels.Selector, portName string) ServiceDiscoveryManager

Jump to

Keyboard shortcuts

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