envoy

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourcesEqual

func ResourcesEqual(a, b map[string]envoy.Resource) bool

ResourcesEqual validates that the given maps of "name - resource" pairs are equal. It uses proto.Equal() to assert the equality between two given envoy resources.

func TypeURL

func TypeURL(rType envoy.Type, version envoy.APIVersion) string

func Validate

func Validate(resource string, encoding envoy_serializer.Serialization, version envoy.APIVersion, rType envoy.Type) error

Types

type Generator

type Generator interface {
	New(rType envoy.Type) envoy.Resource
	NewTlsCertificateSecret(string, string, string) envoy.Resource
	NewValidationContextSecret(string, string) envoy.Resource
	NewSecretFromPath(string, string, string) envoy.Resource
	NewClusterLoadAssignment(string, ...envoy.UpstreamHost) envoy.Resource
}

Generator in an interface with methods to generate envoy resource structs

func NewGenerator

func NewGenerator(version envoy.APIVersion) Generator

NewGenerator returns a generator struct for the given API version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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