envoyfilter

package
v0.0.0-...-f2677c2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright Istio Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyClusterMerge

func ApplyClusterMerge(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper,
	c *cluster.Cluster, hosts []host.Name,
) (out *cluster.Cluster)

ApplyClusterMerge processes the MERGE operation and merges the supplied configuration to the matched clusters.

func ApplyListenerPatches

func ApplyListenerPatches(
	patchContext networking.EnvoyFilter_PatchContext,
	efw *model.EnvoyFilterWrapper,
	lis []*listener.Listener,
	skipAdds bool,
) (out []*listener.Listener)

ApplyListenerPatches applies patches to LDS output

func ApplyRouteConfigurationPatches

func ApplyRouteConfigurationPatches(
	patchContext networking.EnvoyFilter_PatchContext,
	proxy *model.Proxy,
	efw *model.EnvoyFilterWrapper,
	routeConfiguration *route.RouteConfiguration,
) (out *route.RouteConfiguration)

func IncrementEnvoyFilterErrorMetric

func IncrementEnvoyFilterErrorMetric(pt PatchType)

IncrementEnvoyFilterErrorMetric increments filter metric for errors.

func IncrementEnvoyFilterMetric

func IncrementEnvoyFilterMetric(name string, pt PatchType, applied bool)

IncrementEnvoyFilterMetric increments filter metric.

func InsertedClusters

InsertedClusters collects all clusters that are added via ADD operation and match the patch context.

func InsertedExtensionConfigurations

func InsertedExtensionConfigurations(efw *model.EnvoyFilterWrapper, names []string) []*core.TypedExtensionConfig

InsertedExtensionConfigurations returns extension configurations added via EnvoyFilter.

func RecordMetrics

func RecordMetrics()

func ShouldKeepCluster

func ShouldKeepCluster(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper, c *cluster.Cluster, hosts []host.Name) bool

ShouldKeepCluster checks if there is a REMOVE patch on the cluster, returns false if there is one so that it is removed.

Types

type PatchType

type PatchType string
const (
	Cluster        PatchType = "cluster"
	Listener       PatchType = "listener"
	ListenerFilter PatchType = "listenerfilter"
	FilterChain    PatchType = "filterchain"
	NetworkFilter  PatchType = "networkfilter"
	// nolint
	HttpFilter  PatchType = "httpfilter"
	Route       PatchType = "route"
	VirtualHost PatchType = "vhost"
	Bootstrap   PatchType = "bootstrap"
)

type Result

type Result string
const (
	Error   Result = "error"
	Applied Result = "applied"
)

Jump to

Keyboard shortcuts

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