MCPcopy Create free account
hub / github.com/efficientgo/e2e / Environment

Interface Environment

env.go:68–83  ·  view source on GitHub ↗

Environment defines how to run Runnable in isolated area e.g via docker in isolated docker network.

Source from the content-addressed store, hash-verified

66
67// Environment defines how to run Runnable in isolated area e.g via docker in isolated docker network.
68type Environment interface {
69 // Name returns environment name.
70 Name() string
71 // SharedDir returns host directory that will be shared with all runnables.
72 SharedDir() string
73 // HostAddr returns host address that is available from runnables.
74 HostAddr() string
75 // Runnable returns runnable builder which can build runnables that can be started and stopped within this environment.
76 Runnable(name string) RunnableBuilder
77 // AddListener registers given listener to be notified on environment runnable changes.
78 AddListener(listener EnvironmentListener)
79 // AddCloser registers function to be invoked on close, before all containers are sent kill signal.
80 AddCloser(func())
81 // Close shutdowns isolated environment and cleans its resources.
82 Close()
83}
84
85type EnvironmentListener interface {
86 OnRunnableChange(started []Runnable) error

Callers 23

TestDockerEnvironmentFunction · 0.65
StartFunction · 0.65
StartFunction · 0.65
ContainerizeFunction · 0.65
TestDockerEnvironmentFunction · 0.65
NewParcaFunction · 0.65
TestExampleAppFunction · 0.65
deployWithMonitoringFunction · 0.65
TestExampleFunction · 0.65
NewPrometheusFunction · 0.65
newCadvisorFunction · 0.65
StartFunction · 0.65

Implementers 1

DockerEnvironmentenv_docker.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…