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, Consul, 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"
    // Consul is a service registry backed by Consul
    Consul ProviderID = "Consul"
    // MCP is a service registry backed by MCP ServiceEntries
    MCP ProviderID = "MCP"
    // 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
consul
external
kube
kube/controllerpackage controller implements the shared and reusable library for Kubernetes
mcp
mock
synthetic/serviceentry

Package serviceregistry imports 1 packages (graph) and is imported by 25 packages. Updated 2020-03-30. Refresh now. Tools for package owners.