mesh

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMeshSnapshot

func GetMeshSnapshot(ctx context.Context, meshName string, rm manager.ReadOnlyResourceManager, types []core_model.ResourceType, ipFunc lookup.LookupIPFunc) (*meshSnapshot, error)

Types

type Cache

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

Cache is needed to share and cache Hashes among goroutines which reconcile Dataplane's state. Calculating hash is a heavy operation that requires fetching all the resources belonging to the Mesh.

func NewCache

func NewCache(
	rm manager.ReadOnlyResourceManager,
	expirationTime time.Duration,
	types []core_model.ResourceType,
	ipFunc lookup.LookupIPFunc,
	metrics metrics.Metrics,
) (*Cache, error)

func (*Cache) GetHash

func (c *Cache) GetHash(ctx context.Context, mesh string) (string, error)

Jump to

Keyboard shortcuts

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