insights

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeshInsightKey added in v1.8.1

func MeshInsightKey(mesh string) model.ResourceKey

func NewResyncer

func NewResyncer(config *Config) component.Component

NewResyncer creates a new Component that periodically updates insights for various policies (right now only for Mesh and services).

It operates with 2 timeouts: MinResyncTimeout and MaxResyncTimeout. Component guarantees resync won't happen more often than MinResyncTimeout. It also guarantees during MaxResyncTimeout at least one resync will happen. MinResyncTimeout is provided by RateLimiter. MaxResyncTimeout is provided by goroutine with Ticker, it runs resync every t = MaxResyncTimeout - MinResyncTimeout.

func ServiceInsightKey added in v1.8.1

func ServiceInsightKey(mesh string) model.ResourceKey

func Setup

func Setup(rt runtime.Runtime) error

Types

type Config

type Config struct {
	Registry           registry.TypeRegistry
	ResourceManager    manager.ResourceManager
	EventReaderFactory events.ListenerFactory
	MinResyncTimeout   time.Duration
	MaxResyncTimeout   time.Duration
	Tick               func(d time.Duration) <-chan time.Time
	RateLimiterFactory func() *rate.Limiter
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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