Help us shape the future of Go! Take the 2026 Go Developer Survey

bootstrap

package
v1.22.7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEnvoyResources

func FromEnvoyResources(resources *EnvoyResources) (string, error)

func FromFilter

func FromFilter(filterName string, msg proto.Message) (string, error)

FromFilter accepts a filter name and typed config for that filter, contructs a static bootstrap config containing a single vhost with typed per-filter config matching the arguments, marshals it to json, and returns the stringified json or any error if it occurred.

func FromSnapshot

func FromSnapshot(
	ctx context.Context,
	snap envoycache.Snapshot,
) (string, error)

FromSnapshot accepts an xds Snapshot and converts it into valid bootstrap json.

Types

type EnvoyResources

type EnvoyResources struct {
	Clusters  []*envoy_config_cluster_v3.Cluster
	Listeners []*envoy_config_listener_v3.Listener
	Secrets   []*envoy_extensions_transport_sockets_tls_v3.Secret
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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