MCPcopy Create free account

hub / github.com/efficientgo/e2e / functions

Functions247 in github.com/efficientgo/e2e

↓ 23 callersMethodLog
(keyvals ...interface{})
logger.go:20
↓ 22 callersMethodName
()
env_docker.go:351
↓ 20 callersMethodInternalEndpoint
InternalEndpoint returns internal runnable endpoint (host:port) for given internal port. Internal means that it will be accessible only from runnable
env.go:128
↓ 19 callersMethodInit
Init transforms future into runnable.
env.go:135
↓ 19 callersMethodName
Name returns unique name for the Runnable instance.
env.go:116
↓ 19 callersMethodRunnable
Runnable returns runnable builder which can build runnables that can be started and stopped within this environment.
env.go:76
↓ 17 callersMethodDir
Dir returns the working directory path that is shared with the host and this runnable. The paths are exactly the same for runnable and host to enable
env.go:121
↓ 17 callersMethodWaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:35
↓ 16 callersMethodWithPorts
WithPorts adds ports to runnable, allowing caller to use `InternalEndpoint` and `Endpoint` methods by referencing port by name.
env.go:143
↓ 15 callersMethodEndpoint
Endpoint returns external runnable endpoint (host:port) for given port name. External means that it will be accessible only from host, but not from do
env.go:183
↓ 14 callersMethodString
()
monitoring/matchers/matcher.go:80
↓ 14 callersMethodexec
(cmd string, args ...string)
env_docker.go:722
↓ 13 callersFunctionNewCommand
(cmd string, args ...string)
env.go:241
↓ 12 callersFunctionWithWaitBackoff
WithWaitBackoff is an option to configure a backoff when waiting on a metric value.
monitoring/metrics.go:31
↓ 11 callersMethodClose
Close shutdowns isolated environment and cleans its resources.
env.go:82
↓ 9 callersFunctionEquals
Equals is an MetricValueExpectation function for WaitSumMetrics that returns true if given single sum is equals to given value.
monitoring/metrics.go:165
↓ 9 callersMethodIsRunning
()
env_docker.go:399
↓ 9 callersFunctionNewHTTPReadinessProbe
(portName string, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string
env.go:287
↓ 8 callersMethodIsRunning
IsRunning returns if runnable was started.
env.go:157
↓ 8 callersMethodStart
Start tells Runnable to start.
env.go:160
↓ 8 callersFunctionStartAndWaitReady
(runnables ...Runnable)
env.go:221
↓ 8 callersMethodWaitSumMetrics
(expected MetricValueExpectation, metricNames ...string)
monitoring/instrumented.go:34
↓ 8 callersMethodcontainerName
()
env_docker.go:564
↓ 7 callersMethodExec
Exec runs the provided command inside the same process context (e.g. in the running docker container). It returns error response from attempting to ru
env.go:177
↓ 6 callersFunctionMergeFlagsWithoutRemovingEmpty
(inputs ...map[string]string)
cli.go:23
↓ 6 callersMethodSharedDir
SharedDir returns host directory that will be shared with all runnables.
env.go:72
↓ 5 callersMethodBuildErr
()
env_docker.go:212
↓ 5 callersMethodFuture
Future returns future runnable
env.go:145
↓ 5 callersFunctionNew
New creates new, isolated docker environment.
env_docker.go:88
↓ 5 callersFunctionNewMatcher
NewMatcher returns a matcher object.
monitoring/matchers/matcher.go:55
↓ 4 callersFunctionAsInstrumented
AsInstrumented wraps e2e.Runnable with InstrumentedRunnable. If runnable is running during invocation AsInstrumented panics. NOTE(bwplotka): Caller is
monitoring/instrumented.go:87
↓ 4 callersMethodBuildErr
BuildErr returns error if runnable failed to build. If error happened during build all methods like Start, WaitReady, Kill and Stop will return this e
env.go:154
↓ 4 callersMethodKill
Kill tells Runnable to get killed immediately. It should be ok to Stop and Kill more than once, with next invokes being noop.
env.go:168
↓ 4 callersFunctionNewCommandWithoutEntrypoint
(cmd string, args ...string)
env.go:260
↓ 4 callersFunctionNewFailedRunnable
NewFailedRunnable returns runnable that failed in construction.
env_docker.go:205
↓ 4 callersMethodWaitReady
WaitReady waits until the Runnable is ready. It should return error if runnable is stopped in mean time or it was stopped before.
env.go:164
↓ 4 callersFunctionWithExecOptionStdout
WithExecOptionStdout sets stdout writer to be used when exec is performed. By default, it is streaming to the env logger.
env.go:200
↓ 4 callersMethodWrite
(p []byte)
logger.go:54
↓ 4 callersFunctionbuildMetricsOptions
(opts []MetricsOption)
monitoring/metrics.go:66
↓ 4 callersMethodexec
(ctx context.Context)
env.go:256
↓ 4 callersMethodexecContext
(ctx context.Context, cmd string, args ...string)
env_docker.go:727
↓ 3 callersFunctionBuildKingpinArgs
BuildKingpinArgs is like BuildArgs but with special handling of slice args. NOTE(bwplotka): flags with values as comma but not indented to be slice wi
cli.go:49
↓ 3 callersMethodStop
Stop tells Runnable to get gracefully stopped. It should be ok to Stop and Kill more than once, with next invokes being noop.
env.go:172
↓ 3 callersFunctiondockerNetworkContainerHost
dockerNetworkContainerHost return the host address of a container within the network.
env_docker.go:542
↓ 3 callersFunctionwgetFlagsCmd
(hostPort string)
env_docker_ext_test.go:19
↓ 2 callersMethodAddCloser
AddCloser registers function to be invoked on close, before all containers are sent kill signal.
env.go:80
↓ 2 callersMethodAddListener
AddListener registers given listener to be notified on environment runnable changes.
env.go:78
↓ 2 callersFunctionBuildArgs
(flags map[string]string)
cli.go:34
↓ 2 callersMethodClose
()
env_docker.go:714
↓ 2 callersMethodDir
()
env_docker.go:359
↓ 2 callersMethodGetMetadata
GetMetadata retrieves metadata by given key or return false if not found.
env.go:188
↓ 2 callersMethodHostAddr
HostAddr returns host address that is available from runnables.
env.go:74
↓ 2 callersMethodMetricTargets
()
monitoring/instrumented.go:32
↓ 2 callersMethodMetrics
()
monitoring/instrumented.go:126
↓ 2 callersFunctionNewCommandRunUntilStop
NewCommandRunUntilStop is a command that allows to keep container running.
env.go:269
↓ 2 callersFunctionNewRegexp
NewRegexp creates a new anchored Regexp and returns an error if the passed-in regular expression does not compile.
monitoring/promconfig/prometheus.go:175
↓ 2 callersFunctionNewTCPReadinessProbe
(portName string)
env.go:350
↓ 2 callersMethodOnRunnableChange
(started []Runnable)
env.go:86
↓ 2 callersMethodOpenUserInterfaceInBrowser
(paths ...string)
profiling/profiling.go:247
↓ 2 callersMethodSetConfigEncoded
(config []byte)
monitoring/monitoring.go:93
↓ 2 callersMethodSetMetadata
SetMetadata allows setting extra metadata describing runnable.
env.go:186
↓ 2 callersFunctionWithInstrumentedWaitBackoff
WithInstrumentedWaitBackoff allows customizing wait backoff when accessing metric endpoint.
monitoring/instrumented.go:75
↓ 2 callersMethodclose
()
env_docker.go:735
↓ 2 callersFunctionfilterMetrics
(metrics []*io_prometheus_client.Metric, opts metricsOptions)
monitoring/metrics.go:113
↓ 2 callersFunctiongenerateName
()
env_docker.go:54
↓ 2 callersFunctiongetDockerPortMapping
(out []byte)
env_docker.go:465
↓ 2 callersMethodmatchString
(s string)
monitoring/matchers/regexp.go:54
↓ 2 callersFunctionnewHTTPReadinessProbe
(portName, path, scheme string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...strin
env.go:297
↓ 2 callersMethodregisterStopped
(name string)
env_docker.go:250
↓ 2 callersMethodupdateConfig
(started map[string]Profiled)
profiling/profiling.go:113
↓ 2 callersMethodupdateConfig
(started map[string]Instrumented)
monitoring/monitoring.go:129
↓ 2 callersFunctionvalidateName
(name string)
env_docker.go:69
↓ 2 callersMethodwaitForRunning
()
env_docker.go:568
↓ 1 callersMethodMatches
Matches returns whether the matcher matches the given string value.
monitoring/matchers/matcher.go:85
↓ 1 callersFunctionMergeFlags
(inputs ...map[string]string)
cli.go:12
↓ 1 callersFunctionNewCmdReadinessProbe
(cmd Command)
env.go:377
↓ 1 callersFunctionNewLogger
(w io.Writer)
logger.go:29
↓ 1 callersFunctionNewParca
(env e2e.Environment, name string, image string, flagOverride map[string]string)
profiling/profiling.go:41
↓ 1 callersFunctionNewPrometheus
(env e2e.Environment, name string, image string, flagOverride map[string]string)
monitoring/monitoring.go:42
↓ 1 callersMethodProfileTargets
()
profiling/profiled.go:20
↓ 1 callersMethodReady
(runnable Runnable)
env.go:274
↓ 1 callersMethodReady
()
env_docker.go:551
↓ 1 callersFunctionRunUntilEndpointHit
RunUntilEndpointHit stalls current goroutine executions and prints the URL to local address. When URL is hit this function returns with nil to continu
interactive/interactive.go:45
↓ 1 callersFunctionRunUntilSignal
RunUntilSignal stops the current goroutine execution and watches for SIGINT, SIGKILL and SIGHUP signals. Once spotted it continues the execution. This
interactive/interactive.go:93
↓ 1 callersMethodSetConfig
(config promconfig.Config)
monitoring/monitoring.go:109
↓ 1 callersMethodSetScrapeConfigs
SetScrapeConfigs updates Parca with new configuration.
profiling/profiling.go:81
↓ 1 callersMethodSumMetrics
SumMetrics returns the sum of the values of each given metric names.
monitoring/instrumented_composite.go:78
↓ 1 callersMethodSumMetrics
(metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:36
↓ 1 callersMethodSumMetrics
SumMetrics returns the sum of the values of each given metric names.
monitoring/instrumented.go:181
↓ 1 callersFunctionSumValues
(values []float64)
monitoring/metrics.go:148
↓ 1 callersFunctionWaitMissingMetrics
WaitMissingMetrics is an option to wait whenever an expected metric is missing. If this option is not enabled, will return error on missing metrics.
monitoring/metrics.go:53
↓ 1 callersMethodWaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented_composite.go:50
↓ 1 callersMethodWaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:153
↓ 1 callersFunctionWithName
WithName injects custom name of environment which will be used as a network name. If the name is not unique across different e2e environments ran at t
env.go:55
↓ 1 callersMethodbuildDockerRunArgs
(name string, ports map[string]int, opts StartOptions)
env_docker.go:269
↓ 1 callersFunctiondeployWithMonitoring
(ctx context.Context)
examples/thanos/standalone.go:22
↓ 1 callersFunctiondockerNetworkContainerHostPort
dockerNetworkContainerHostPort return the host:port address of a container within the network.
env_docker.go:547
↓ 1 callersMethodexistDockerNetwork
()
env_docker.go:672
↓ 1 callersFunctiongetTmpDirectory
getTmpDirectory creates a temporary directory for shared integration test files, either in the working directory or a directory referenced by the E2E_
env_docker.go:686
↓ 1 callersFunctiongetValues
(metrics []*io_prometheus_client.Metric, opts metricsOptions)
monitoring/metrics.go:105
next →1–100 of 247, ranked by callers