Discover Packages
github.com/kumahq/kuma
pkg
xds
cache
cla
package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Jun 30, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Cache NewCache(rm, zone, expirationTime, ipFunc, metrics) (c) GetCLA(ctx, meshName, meshHash, cluster, apiVersion)
Documentation
¶
Cache is needed to share and cache ClusterLoadAssignments among goroutines
which reconcile Dataplane's state. In scope of one mesh ClusterLoadAssignment
will be the same for each service so no need to reconcile for each dataplane.
func NewCache (
rm manager.ReadOnlyResourceManager,
zone string , expirationTime time.Duration,
ipFunc lookup.LookupIPFunc,
metrics metrics.Metrics,
) (*Cache, error )
func (c *Cache) GetCLA(ctx context.Context, meshName, meshHash string , cluster envoy_common.Cluster, apiVersion envoy_common.APIVersion) (proto.Message, error )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.