Documentation ¶
Index ¶
- func GetCacheResources(endpoints []*corev3.Address, clusters []*clusterv3.Cluster, ...) (listenerRes []types.Resource, clusterRes []types.Resource, ...)
- func GetEnforcerAPI(adapterInternalAPI *model.AdapterInternalAPI, vhost string) *api.Api
- func GetEnforcerAPIOperation(operation model.Operation, isMockedAPI bool) *api.Operation
- func GetGlobalClusters() ([]*clusterv3.Cluster, []*corev3.Address)
- func GetProductionListener(gateway *gwapiv1.Gateway, resolvedListenerCerts map[string]map[string][]byte, ...) []*listenerv3.Listener
- func GetRouteConfigs(vhostToRouteArrayMap map[string][]*routev3.Route, routeConfigName string, ...) *routev3.RouteConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheResources ¶
func GetCacheResources(endpoints []*corev3.Address, clusters []*clusterv3.Cluster, listeners []*listenerv3.Listener, routeConfigs map[string]*routev3.RouteConfiguration) ( listenerRes []types.Resource, clusterRes []types.Resource, routeConfigRes []types.Resource, endpointRes []types.Resource)
GetCacheResources converts the envoy endpoints, clusters, routes, and listener to the resource type which is the format required for the Xds cache.
The returned resources are listeners, clusters, routeConfigurations, endpoints
func GetEnforcerAPI ¶
func GetEnforcerAPI(adapterInternalAPI *model.AdapterInternalAPI, vhost string) *api.Api
GetEnforcerAPI retrieves the ApiDS object model for a given swagger definition along with the vhost to deploy the API.
func GetEnforcerAPIOperation ¶
GetEnforcerAPIOperation builds the operation object expected by the proto definition
func GetGlobalClusters ¶
GetGlobalClusters generates initial internal clusters for given environment.
func GetProductionListener ¶
func GetProductionListener(gateway *gwapiv1.Gateway, resolvedListenerCerts map[string]map[string][]byte, gwLuaScript string) []*listenerv3.Listener
GetProductionListener generates the listener configurations.
The VirtualHost is named as "default". The provided set of envoy routes will be assigned under the virtual host
The RouteConfiguration is named as "default"
func GetRouteConfigs ¶
func GetRouteConfigs(vhostToRouteArrayMap map[string][]*routev3.Route, routeConfigName string, customRateLimitPolicies []*model.CustomRateLimitPolicy, vhostToSubscriptionAIRL map[string]bool, vhostToSubscriptionRL map[string]bool) *routev3.RouteConfiguration
GetRouteConfigs generates routesconfiguration configurations.
The VirtualHost is named as "default". The provided set of envoy routes will be assigned under the virtual host
The RouteConfiguration is named as "default"
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package envoyconf generates the envoyconfiguration for listeners, virtual hosts, routes, clusters, and endpoints.
|
Package envoyconf generates the envoyconfiguration for listeners, virtual hosts, routes, clusters, and endpoints. |
Package model contains the implementation of DTOs to convert OpenAPI/Swagger files and create a common model which can represent both types.
|
Package model contains the implementation of DTOs to convert OpenAPI/Swagger files and create a common model which can represent both types. |
Package utils holds the implementation for common utility functions
|
Package utils holds the implementation for common utility functions |