envoyconfig

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 62 Imported by: 1

Documentation

Overview

Package envoyconfig contains a Builder for building Envoy configuration from Pomerium configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

A Builder builds envoy config from pomerium config.

func New

func New(
	localGRPCAddress string,
	localHTTPAddress string,
	localMetricsAddress string,
	fileManager *filemgr.Manager,
	reproxyHandler *reproxy.Handler,
) *Builder

New creates a new Builder.

func (*Builder) BuildBootstrapAdmin

func (b *Builder) BuildBootstrapAdmin(cfg *config.Config) (admin *envoy_config_bootstrap_v3.Admin, err error)

BuildBootstrapAdmin builds the admin config for the envoy bootstrap.

func (*Builder) BuildBootstrapLayeredRuntime added in v0.15.0

func (b *Builder) BuildBootstrapLayeredRuntime() (*envoy_config_bootstrap_v3.LayeredRuntime, error)

BuildBootstrapLayeredRuntime builds the layered runtime for the envoy bootstrap.

func (*Builder) BuildBootstrapStaticResources

func (b *Builder) BuildBootstrapStaticResources() (*envoy_config_bootstrap_v3.Bootstrap_StaticResources, error)

BuildBootstrapStaticResources builds the static resources for the envoy bootstrap. It includes the control plane cluster.

func (*Builder) BuildBootstrapStatsConfig

func (b *Builder) BuildBootstrapStatsConfig(cfg *config.Config) (*envoy_config_metrics_v3.StatsConfig, error)

BuildBootstrapStatsConfig builds a the stats config the envoy bootstrap.

func (*Builder) BuildClusters

func (b *Builder) BuildClusters(ctx context.Context, cfg *config.Config) ([]*envoy_config_cluster_v3.Cluster, error)

BuildClusters builds envoy clusters from the given config.

func (*Builder) BuildListeners

func (b *Builder) BuildListeners(ctx context.Context, cfg *config.Config) ([]*envoy_config_listener_v3.Listener, error)

BuildListeners builds envoy listeners from the given config.

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

An Endpoint is a URL with its corresponding Transport Socket.

func NewEndpoint

func NewEndpoint(u *url.URL, ts *envoy_config_core_v3.TransportSocket, weight uint32) Endpoint

NewEndpoint creates a new Endpoint.

func (Endpoint) TransportSocketName

func (e Endpoint) TransportSocketName() string

TransportSocketName return the name for this endpoint.

Directories

Path Synopsis
Package filemgr defines a Manager for managing files for the controlplane.
Package filemgr defines a Manager for managing files for the controlplane.

Jump to

Keyboard shortcuts

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