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 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( expirationTime time.Duration, meshContextBuilder xds_context.MeshContextBuilder, ) (*Cache, error)
func (*Cache) GetMeshContext ¶
func (c *Cache) GetMeshContext(ctx context.Context, mesh string) (xds_context.MeshContext, error)
Click to show internal directories.
Click to hide internal directories.