istio: istio.io/istio/pilot/pkg/proxy/envoy Index | Files | Directories

package envoy

import "istio.io/istio/pilot/pkg/proxy/envoy"

Index

Package Files

discovery.go infra_auth.go

Constants

const (
    // Service accounts for Mixer and Pilot, these are hardcoded values at setup time
    PilotSvcAccName string = "istio-pilot-service-account"

    MixerSvcAccName string = "istio-mixer-service-account"
)

func GetSAN Uses

func GetSAN(ns string, identity string) string

GetPilotSAN returns the SAN used for pilot mTLS

type DiscoveryService Uses

type DiscoveryService struct {
    *model.Environment
    RestContainer *restful.Container
}

DiscoveryService publishes services, clusters, and routes for all proxies

func NewDiscoveryService Uses

func NewDiscoveryService(environment *model.Environment, o DiscoveryServiceOptions) (*DiscoveryService, error)

NewDiscoveryService creates an Envoy discovery service on a given port

func (*DiscoveryService) ListAllEndpoints Uses

func (ds *DiscoveryService) ListAllEndpoints(_ *restful.Request, response *restful.Response)

ListAllEndpoints responds with all Services and is not restricted to a single service-key Deprecated - may be used by debug tools, mapped to /v1/registration

func (*DiscoveryService) Register Uses

func (ds *DiscoveryService) Register(container *restful.Container)

Register adds routes a web service container. This is visible for testing purposes only.

type DiscoveryServiceOptions Uses

type DiscoveryServiceOptions struct {
    // The listening address for HTTP. If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    // a port number is automatically chosen.
    HTTPAddr string

    // The listening address for GRPC. If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    // a port number is automatically chosen.
    GrpcAddr string

    // The listening address for secure GRPC. If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    // a port number is automatically chosen.
    // "" means disabling secure GRPC, used in test.
    SecureGrpcAddr string

    // The listening address for the monitoring port. If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    // a port number is automatically chosen.
    MonitoringAddr string

    EnableProfiling bool
    EnableCaching   bool
}

DiscoveryServiceOptions contains options for create a new discovery service instance.

Directories

PathSynopsis
v2

Package envoy imports 9 packages (graph) and is imported by 7 packages. Updated 2019-10-03. Refresh now. Tools for package owners.