cla

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

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

func NewCache(
	expirationTime time.Duration,
	metrics metrics.Metrics,
) (*Cache, error)

func (*Cache) GetCLA

func (c *Cache) GetCLA(ctx context.Context, meshName, meshHash string, cluster envoy_common.Cluster, apiVersion envoy_common.APIVersion, endpointMap xds.EndpointMap) (proto.Message, error)

Jump to

Keyboard shortcuts

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