controlplane

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package controlplane contains the HTTP and gRPC base servers and the xDS gRPC implementation for envoy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	GRPCListener    net.Listener
	GRPCServer      *grpc.Server
	HTTPListener    net.Listener
	MetricsListener net.Listener
	MetricsRouter   *mux.Router
	DebugListener   net.Listener
	DebugRouter     *mux.Router
	Builder         *envoyconfig.Builder
	EventsMgr       *events.Manager
	// contains filtered or unexported fields
}

A Server is the control-plane gRPC and HTTP servers.

func NewServer

func NewServer(cfg *config.Config, metricsMgr *config.MetricsManager, eventsMgr *events.Manager) (*Server, error)

NewServer creates a new Server. Listener ports are chosen by the OS.

func (*Server) EnableAuthenticate added in v0.18.0

func (srv *Server) EnableAuthenticate(svc Service) error

EnableAuthenticate enables the authenticate service.

func (*Server) EnableProxy added in v0.18.0

func (srv *Server) EnableProxy(svc Service) error

EnableProxy enables the proxy service.

func (*Server) OnConfigChange added in v0.10.0

func (srv *Server) OnConfigChange(ctx context.Context, cfg *config.Config) error

OnConfigChange updates the pomerium config options.

func (*Server) Run

func (srv *Server) Run(ctx context.Context) error

Run runs the control-plane gRPC and HTTP servers.

func (*Server) StreamAccessLogs

StreamAccessLogs receives logs from envoy and prints them to stdout.

type Service added in v0.18.0

type Service interface {
	Mount(r *mux.Router)
}

A Service can be mounted on the control plane.

Directories

Path Synopsis
Package xdsmgr implements a resource discovery manager for envoy.
Package xdsmgr implements a resource discovery manager for envoy.

Jump to

Keyboard shortcuts

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