MCPcopy
hub / github.com/istio/istio / Generator

Interface Generator

pkg/test/framework/components/echo/util/traffic/generator.go:49–56  ·  view source on GitHub ↗

Generator of traffic between echo instances. Every time interval (as defined by Config.Interval), a grpc request is sent to the source pod, causing it to send a request to the destination echo server. Results are captured for each request for later processing.

Source from the content-addressed store, hash-verified

47// causing it to send a request to the destination echo server. Results are
48// captured for each request for later processing.
49type Generator interface {
50 // Start sending traffic.
51 Start() Generator
52
53 // Stop sending traffic and wait for any in-flight requests to complete.
54 // Returns the Result
55 Stop() Result
56}
57
58// NewGenerator returns a new Generator with the given configuration.
59func NewGenerator(t test.Failer, cfg Config) Generator {

Callers 9

connectMethod · 0.65
newInstanceFunction · 0.65
main.goFile · 0.65
waitUntilReadyMethod · 0.65
FullProfileFunction · 0.65
StartFunction · 0.65
TestZtunnelRestartFunction · 0.95
StartMethod · 0.65
StopMethod · 0.65

Implementers 7

fakeServercni/pkg/nodeagent/helpers_test.go
CniPluginServercni/pkg/nodeagent/cni-watcher.go
Servercni/pkg/nodeagent/server.go
NetServercni/pkg/nodeagent/net_linux.go
meshDataplanecni/pkg/nodeagent/server_unspecified.g
generatorpkg/test/framework/components/echo/uti
MockOpenIDDiscoveryServerpilot/pkg/model/test/mockopenidserver.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…