bootstrap

package
v0.0.0-...-8f3cd9b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) (proto.Message, error)

New returns a new bootstrap protobuf.

Types

type APIVersion

type APIVersion = envoy_config_core_v3.ApiVersion

APIVersion ...

const (
	ApiVersion_AUTO APIVersion = envoy_config_core_v3.ApiVersion_AUTO //nolint
	ApiVersion_V2   APIVersion = envoy_config_core_v3.ApiVersion_V2   //nolint
	ApiVersion_V3   APIVersion = envoy_config_core_v3.ApiVersion_V3   //nolint
)

type Address

type Address = envoy_config_core_v3.Address

Address ...

func NewAddress

func NewAddress(addr string) (*Address, error)

NewAddress parses the addr string into a Envoy Address that can subsequently be used in an Option. If the address contains ":", it is assumed to be a socket "address:port" spec, otherwise is it the path to a pipe.

type Bootstrap

Bootstrap ...

type Option

type Option func(*Bootstrap, map[string]string)

Option ...

func AdminAccessLog

func AdminAccessLog(path string) Option

AdminAccessLog set the access log path for the admin endpoint.

func AdminAddress

func AdminAddress(addr *Address) Option

AdminAddress sets the address the admin server will listen on.

func EnableIncrementalDiscovery

func EnableIncrementalDiscovery() Option

EnableIncrementalDiscovery enables incremental (Delta) xDS.

func ManagementAddress

func ManagementAddress(addr *Address) Option

ManagementAddress sets the address to connect to the xDS management server.

func ManagementClusterName

func ManagementClusterName(name string) Option

ManagementClusterName sets the name of the xDS management cluster. This is the name that must be subsequently used to build ConfigSource messages in Envoy resources.

func NodeCluster

func NodeCluster(s string) Option

NodeCluster sets the envoy node Cluster name.

func NodeID

func NodeID(s string) Option

NodeID sets the envoy node ID.

func ResourceVersion

func ResourceVersion(vers APIVersion) Option

ResourceVersion sets the default resource API version Envoy will ask for.

func SetNodeOnFirstMessageOnly

func SetNodeOnFirstMessageOnly(value bool) Option

SetNodeOnFirstMessageOnly tells Envoy to only send the Node message once.

Jump to

Keyboard shortcuts

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