bootstrap

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package bootstrap implements functionality related to Envoy's bootstrap config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFromConfig

func BuildFromConfig(config Config) (*xds_bootstrap.Bootstrap, error)

BuildFromConfig builds and returns an Envoy Bootstrap object from the given config

Types

type Config

type Config struct {
	// Admin port is the Envoy admin port
	AdminPort uint32

	// XDSClusterName is the name of the XDS cluster to connect to
	XDSClusterName string

	// XDSHost is the hostname of the XDS cluster to connect to
	XDSHost string

	// XDSPort is the port of the XDS cluster to connect to
	XDSPort uint32

	// NodeID is the proxy's node ID
	NodeID string

	// TrustedCA is the trusted certificate authority used to validate the certificate
	// presented by the XDS cluster during a TLS handshake
	TrustedCA []byte

	// CertificateChain is the certificate used by the proxy to connect to the XDS cluster
	CertificateChain []byte

	// PrivateKey is the private key for the certificate used by the proxy to connect to the XDS cluster
	PrivateKey []byte
}

Config is the type used to represent the information needed to build the Envoy bootstrap config

Jump to

Keyboard shortcuts

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