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 ¶
- func ApplyClusterMerge(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper, ...) (out *cluster.Cluster)
- func ApplyListenerPatches(patchContext networking.EnvoyFilter_PatchContext, ...) (out []*listener.Listener)
- func ApplyRouteConfigurationPatches(patchContext networking.EnvoyFilter_PatchContext, proxy *model.Proxy, ...) (out *route.RouteConfiguration)
- func IncrementEnvoyFilterErrorMetric(pt PatchType)
- func IncrementEnvoyFilterMetric(name string, pt PatchType, applied bool)
- func InsertedClusters(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper) []*cluster.Cluster
- func InsertedExtensionConfigurations(efw *model.EnvoyFilterWrapper, names []string) []*core.TypedExtensionConfig
- func RecordMetrics()
- func ShouldKeepCluster(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper, ...) bool
- type PatchType
- type Result
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 ¶
IncrementEnvoyFilterMetric increments filter metric.
func InsertedClusters ¶
func InsertedClusters(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper) []*cluster.Cluster
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.