api_conversion

package
v1.16.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MatchingNamespaceEnv = "HEADER_SECRET_REF_NS_MATCHES_US"

Variables

This section is empty.

Functions

func CheckForbiddenCustomHeaders added in v1.14.14

func CheckForbiddenCustomHeaders(header envoycore_sk.HeaderValue) error

CheckForbiddenCustomHeaders checks whether the custom header is allowed to be modified as per https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers

func ToEnvoyDatadogConfiguration

func ToEnvoyDatadogConfiguration(glooDatadogConfig *envoytracegloo.DatadogConfig, clusterName string) (*envoytrace.DatadogConfig, error)

func ToEnvoyHeaderValueOptionList

func ToEnvoyHeaderValueOptionList(option []*envoycore_sk.HeaderValueOption, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HeaderValueOption, error)

func ToEnvoyHeaderValueOptions

func ToEnvoyHeaderValueOptions(option *envoycore_sk.HeaderValueOption, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HeaderValueOption, error)

func ToEnvoyHealthCheck

func ToEnvoyHealthCheck(check *envoycore_gloo.HealthCheck, secrets *v1.SecretList, secretOptions HeaderSecretOptions) (*envoy_config_core_v3.HealthCheck, error)

func ToEnvoyHealthCheckList

func ToEnvoyHealthCheckList(check []*envoycore_gloo.HealthCheck, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HealthCheck, error)

func ToEnvoyInt64Range

func ToEnvoyInt64Range(int64Range *envoytype_gloo.Int64Range) *envoy_type_v3.Int64Range

func ToEnvoyInt64RangeList

func ToEnvoyInt64RangeList(int64Range []*envoytype_gloo.Int64Range) []*envoy_type_v3.Int64Range

func ToEnvoyOpenCensusConfiguration added in v1.12.37

func ToEnvoyOpenCensusConfiguration(glooOpenCensusConfig *envoytracegloo.OpenCensusConfig) (*envoytrace.OpenCensusConfig, error)

func ToEnvoyOpenTelemetryonfiguration added in v1.12.36

func ToEnvoyOpenTelemetryonfiguration(glooOpenTelemetryConfig *envoytracegloo.OpenTelemetryConfig, clusterName string) (*envoytrace.OpenTelemetryConfig, error)

func ToEnvoyZipkinConfiguration

func ToEnvoyZipkinConfiguration(glooZipkinConfig *envoytracegloo.ZipkinConfig, clusterName string) (*envoytrace.ZipkinConfig, error)

func ToGlooHealthCheckList

func ToGlooHealthCheckList(check []*envoy_config_core_v3.HealthCheck) ([]*envoycore_gloo.HealthCheck, error)

func ToGlooInt64Range

func ToGlooInt64Range(int64Range *envoy_type_v3.Int64Range) *envoytype_gloo.Int64Range

func ToGlooInt64RangeList

func ToGlooInt64RangeList(int64Range []*envoy_type_v3.Int64Range) []*envoytype_gloo.Int64Range

func ToGlooQueryParameterMatchers

func ToGlooQueryParameterMatchers(queryParamMatchers []*envoy_config_route_v3.QueryParameterMatcher) []*envoyroute_gloo.QueryParameterMatcher

func ToGlooRouteMatch

func ToGlooRouteMatch(routeMatch *envoy_config_route_v3.RouteMatch) *envoyroute_gloo.RouteMatch

todo consider movinng this to solo-projects used in enterprise code

Types

type HeaderSecretOptions added in v1.14.13

type HeaderSecretOptions struct {
	EnforceNamespaceMatch bool
	// this will be ignored unless EnforceNamespaceMatch is true
	UpstreamNamespace string
}

HeaderSecretOptions is used to pass around information about whether/how to enforce that secrets and upstream namespace must match

Jump to

Keyboard shortcuts

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