conv

package
v0.0.0-...-78a648b Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IstioFault       = "envoy.fault"
	IstioRouter      = "envoy.router"
	IstioCors        = "envoy.cors"
	MosnPayloadLimit = "mosn.payload_limit"
)

istio stream filter names, which is quite different from mosn

Variables

This section is empty.

Functions

func ConvertAddOrUpdateListeners

func ConvertAddOrUpdateListeners(listeners []*envoy_api_v2.Listener)

ConvertAddOrUpdateListeners converts listener configuration, used to add or update listeners

func ConvertAddOrUpdateRouters

func ConvertAddOrUpdateRouters(routers []*envoy_api_v2.RouteConfiguration)

ConvertAddOrUpdateRouters converts router configurationm, used to add or update routers

func ConvertClustersConfig

func ConvertClustersConfig(xdsClusters []*xdsapi.Cluster) []*v2.Cluster

func ConvertDeleteClusters

func ConvertDeleteClusters(clusters []*envoy_api_v2.Cluster)

ConvertDeleteClusters converts cluster configuration, used to delete cluster

func ConvertDeleteListeners

func ConvertDeleteListeners(listeners []*envoy_api_v2.Listener)

ConvertDeleteListeners converts listener configuration, used to delete listener

func ConvertEndpointsConfig

func ConvertEndpointsConfig(xdsEndpoint *xdsendpoint.LocalityLbEndpoints) []v2.Host

func ConvertListenerConfig

func ConvertListenerConfig(xdsListener *xdsapi.Listener) *v2.Listener

todo add streamfilters parse

func ConvertRouterConf

func ConvertRouterConf(routeConfigName string, xdsRouteConfig *xdsapi.RouteConfiguration) (*v2.RouterConfiguration, bool)

func ConvertUpdateClusters

func ConvertUpdateClusters(clusters []*envoy_api_v2.Cluster)

ConvertUpdateClusters converts cluster configuration, used to udpate cluster

func ConvertUpdateEndpoints

func ConvertUpdateEndpoints(loadAssignments []*envoy_api_v2.ClusterLoadAssignment) error

ConverUpdateEndpoints converts cluster configuration, used to udpate hosts

Types

This section is empty.

Jump to

Keyboard shortcuts

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