serviceregistry

package
v0.0.0-...-6c25587 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 114

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryController

type DiscoveryController interface {
	model.Controller
	model.ServiceDiscovery
}

type Instance

type Instance interface {
	model.Controller
	model.ServiceDiscovery

	// Provider backing this service registry (i.e. Kubernetes etc.)
	Provider() provider.ID

	// Cluster for which the service registry applies. Only needed for multicluster systems.
	Cluster() cluster.ID
}

Instance of a service registry. A single service registry combines the capabilities of service discovery and the controller for managing asynchronous events.

type Simple

type Simple struct {
	ProviderID provider.ID
	ClusterID  cluster.ID

	DiscoveryController
}

Simple Instance implementation, where fields are set individually.

func (Simple) Cluster

func (r Simple) Cluster() cluster.ID

func (Simple) Provider

func (r Simple) Provider() provider.ID

Directories

Path Synopsis
controller/ambient
nolint: gocritic
nolint: gocritic
util

Jump to

Keyboard shortcuts

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