istio: istio.io/istio/pilot/pkg/serviceregistry Index | Files | Directories

package serviceregistry

import "istio.io/istio/pilot/pkg/serviceregistry"

Index

Package Files

instance.go providers.go

type Instance Uses

type Instance interface {
    model.Controller
    model.ServiceDiscovery

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

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

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

type ProviderID Uses

type ProviderID string

ProviderID defines underlying platform supporting service registry

const (
    // Mock is a service registry that contains 2 hard-coded test services
    Mock ProviderID = "Mock"
    // Kubernetes is a service registry backed by k8s API server
    Kubernetes ProviderID = "Kubernetes"
    // External is a service registry for externally provided ServiceEntries
    External = "External"
)

type Simple Uses

type Simple struct {
    ProviderID ProviderID
    ClusterID  string

    model.Controller
    model.ServiceDiscovery
}

Simple Instance implementation, where fields are set individually.

func (Simple) Cluster Uses

func (r Simple) Cluster() string

func (Simple) Provider Uses

func (r Simple) Provider() ProviderID

Directories

PathSynopsis
aggregate
kube
kube/controller
memory
mock
serviceentry

Package serviceregistry imports 1 packages (graph) and is imported by 24 packages. Updated 2021-01-25. Refresh now. Tools for package owners.