Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/efficientgo/e2e
/ functions
Functions
247 in github.com/efficientgo/e2e
⨍
Functions
247
◇
Types & classes
97
↓ 23 callers
Method
Log
(keyvals ...interface{})
logger.go:20
↓ 22 callers
Method
Name
()
env_docker.go:351
↓ 20 callers
Method
InternalEndpoint
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 callers
Method
Init
Init transforms future into runnable.
env.go:135
↓ 19 callers
Method
Name
Name returns unique name for the Runnable instance.
env.go:116
↓ 19 callers
Method
Runnable
Runnable returns runnable builder which can build runnables that can be started and stopped within this environment.
env.go:76
↓ 17 callers
Method
Dir
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 callers
Method
WaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:35
↓ 16 callers
Method
WithPorts
WithPorts adds ports to runnable, allowing caller to use `InternalEndpoint` and `Endpoint` methods by referencing port by name.
env.go:143
↓ 15 callers
Method
Endpoint
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 callers
Method
String
()
monitoring/matchers/matcher.go:80
↓ 14 callers
Method
exec
(cmd string, args ...string)
env_docker.go:722
↓ 13 callers
Function
NewCommand
(cmd string, args ...string)
env.go:241
↓ 12 callers
Function
WithWaitBackoff
WithWaitBackoff is an option to configure a backoff when waiting on a metric value.
monitoring/metrics.go:31
↓ 11 callers
Method
Close
Close shutdowns isolated environment and cleans its resources.
env.go:82
↓ 9 callers
Function
Equals
Equals is an MetricValueExpectation function for WaitSumMetrics that returns true if given single sum is equals to given value.
monitoring/metrics.go:165
↓ 9 callers
Method
IsRunning
()
env_docker.go:399
↓ 9 callers
Function
NewHTTPReadinessProbe
(portName string, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string
env.go:287
↓ 8 callers
Method
IsRunning
IsRunning returns if runnable was started.
env.go:157
↓ 8 callers
Method
Start
Start tells Runnable to start.
env.go:160
↓ 8 callers
Function
StartAndWaitReady
(runnables ...Runnable)
env.go:221
↓ 8 callers
Method
WaitSumMetrics
(expected MetricValueExpectation, metricNames ...string)
monitoring/instrumented.go:34
↓ 8 callers
Method
containerName
()
env_docker.go:564
↓ 7 callers
Method
Exec
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 callers
Function
MergeFlagsWithoutRemovingEmpty
(inputs ...map[string]string)
cli.go:23
↓ 6 callers
Method
SharedDir
SharedDir returns host directory that will be shared with all runnables.
env.go:72
↓ 5 callers
Method
BuildErr
()
env_docker.go:212
↓ 5 callers
Method
Future
Future returns future runnable
env.go:145
↓ 5 callers
Function
New
New creates new, isolated docker environment.
env_docker.go:88
↓ 5 callers
Function
NewMatcher
NewMatcher returns a matcher object.
monitoring/matchers/matcher.go:55
↓ 4 callers
Function
AsInstrumented
AsInstrumented wraps e2e.Runnable with InstrumentedRunnable. If runnable is running during invocation AsInstrumented panics. NOTE(bwplotka): Caller is
monitoring/instrumented.go:87
↓ 4 callers
Method
BuildErr
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 callers
Method
Kill
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 callers
Function
NewCommandWithoutEntrypoint
(cmd string, args ...string)
env.go:260
↓ 4 callers
Function
NewFailedRunnable
NewFailedRunnable returns runnable that failed in construction.
env_docker.go:205
↓ 4 callers
Method
WaitReady
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 callers
Function
WithExecOptionStdout
WithExecOptionStdout sets stdout writer to be used when exec is performed. By default, it is streaming to the env logger.
env.go:200
↓ 4 callers
Method
Write
(p []byte)
logger.go:54
↓ 4 callers
Function
buildMetricsOptions
(opts []MetricsOption)
monitoring/metrics.go:66
↓ 4 callers
Method
exec
(ctx context.Context)
env.go:256
↓ 4 callers
Method
execContext
(ctx context.Context, cmd string, args ...string)
env_docker.go:727
↓ 3 callers
Function
BuildKingpinArgs
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 callers
Method
Stop
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 callers
Function
dockerNetworkContainerHost
dockerNetworkContainerHost return the host address of a container within the network.
env_docker.go:542
↓ 3 callers
Function
wgetFlagsCmd
(hostPort string)
env_docker_ext_test.go:19
↓ 2 callers
Method
AddCloser
AddCloser registers function to be invoked on close, before all containers are sent kill signal.
env.go:80
↓ 2 callers
Method
AddListener
AddListener registers given listener to be notified on environment runnable changes.
env.go:78
↓ 2 callers
Function
BuildArgs
(flags map[string]string)
cli.go:34
↓ 2 callers
Method
Close
()
env_docker.go:714
↓ 2 callers
Method
Dir
()
env_docker.go:359
↓ 2 callers
Method
GetMetadata
GetMetadata retrieves metadata by given key or return false if not found.
env.go:188
↓ 2 callers
Method
HostAddr
HostAddr returns host address that is available from runnables.
env.go:74
↓ 2 callers
Method
MetricTargets
()
monitoring/instrumented.go:32
↓ 2 callers
Method
Metrics
()
monitoring/instrumented.go:126
↓ 2 callers
Function
NewCommandRunUntilStop
NewCommandRunUntilStop is a command that allows to keep container running.
env.go:269
↓ 2 callers
Function
NewRegexp
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 callers
Function
NewTCPReadinessProbe
(portName string)
env.go:350
↓ 2 callers
Method
OnRunnableChange
(started []Runnable)
env.go:86
↓ 2 callers
Method
OpenUserInterfaceInBrowser
(paths ...string)
profiling/profiling.go:247
↓ 2 callers
Method
SetConfigEncoded
(config []byte)
monitoring/monitoring.go:93
↓ 2 callers
Method
SetMetadata
SetMetadata allows setting extra metadata describing runnable.
env.go:186
↓ 2 callers
Function
WithInstrumentedWaitBackoff
WithInstrumentedWaitBackoff allows customizing wait backoff when accessing metric endpoint.
monitoring/instrumented.go:75
↓ 2 callers
Method
close
()
env_docker.go:735
↓ 2 callers
Function
filterMetrics
(metrics []*io_prometheus_client.Metric, opts metricsOptions)
monitoring/metrics.go:113
↓ 2 callers
Function
generateName
()
env_docker.go:54
↓ 2 callers
Function
getDockerPortMapping
(out []byte)
env_docker.go:465
↓ 2 callers
Method
matchString
(s string)
monitoring/matchers/regexp.go:54
↓ 2 callers
Function
newHTTPReadinessProbe
(portName, path, scheme string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...strin
env.go:297
↓ 2 callers
Method
registerStopped
(name string)
env_docker.go:250
↓ 2 callers
Method
updateConfig
(started map[string]Profiled)
profiling/profiling.go:113
↓ 2 callers
Method
updateConfig
(started map[string]Instrumented)
monitoring/monitoring.go:129
↓ 2 callers
Function
validateName
(name string)
env_docker.go:69
↓ 2 callers
Method
waitForRunning
()
env_docker.go:568
↓ 1 callers
Method
Matches
Matches returns whether the matcher matches the given string value.
monitoring/matchers/matcher.go:85
↓ 1 callers
Function
MergeFlags
(inputs ...map[string]string)
cli.go:12
↓ 1 callers
Function
NewCmdReadinessProbe
(cmd Command)
env.go:377
↓ 1 callers
Function
NewLogger
(w io.Writer)
logger.go:29
↓ 1 callers
Function
NewParca
(env e2e.Environment, name string, image string, flagOverride map[string]string)
profiling/profiling.go:41
↓ 1 callers
Function
NewPrometheus
(env e2e.Environment, name string, image string, flagOverride map[string]string)
monitoring/monitoring.go:42
↓ 1 callers
Method
ProfileTargets
()
profiling/profiled.go:20
↓ 1 callers
Method
Ready
(runnable Runnable)
env.go:274
↓ 1 callers
Method
Ready
()
env_docker.go:551
↓ 1 callers
Function
RunUntilEndpointHit
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 callers
Function
RunUntilSignal
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 callers
Method
SetConfig
(config promconfig.Config)
monitoring/monitoring.go:109
↓ 1 callers
Method
SetScrapeConfigs
SetScrapeConfigs updates Parca with new configuration.
profiling/profiling.go:81
↓ 1 callers
Method
SumMetrics
SumMetrics returns the sum of the values of each given metric names.
monitoring/instrumented_composite.go:78
↓ 1 callers
Method
SumMetrics
(metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:36
↓ 1 callers
Method
SumMetrics
SumMetrics returns the sum of the values of each given metric names.
monitoring/instrumented.go:181
↓ 1 callers
Function
SumValues
(values []float64)
monitoring/metrics.go:148
↓ 1 callers
Function
WaitMissingMetrics
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 callers
Method
WaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented_composite.go:50
↓ 1 callers
Method
WaitSumMetricsWithOptions
(expected MetricValueExpectation, metricNames []string, opts ...MetricsOption)
monitoring/instrumented.go:153
↓ 1 callers
Function
WithName
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 callers
Method
buildDockerRunArgs
(name string, ports map[string]int, opts StartOptions)
env_docker.go:269
↓ 1 callers
Function
deployWithMonitoring
(ctx context.Context)
examples/thanos/standalone.go:22
↓ 1 callers
Function
dockerNetworkContainerHostPort
dockerNetworkContainerHostPort return the host:port address of a container within the network.
env_docker.go:547
↓ 1 callers
Method
existDockerNetwork
()
env_docker.go:672
↓ 1 callers
Function
getTmpDirectory
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 callers
Function
getValues
(metrics []*io_prometheus_client.Metric, opts metricsOptions)
monitoring/metrics.go:105
next →
1–100 of 247, ranked by callers