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

Function NewSwiftStorage

db/db.go:182–194  ·  view source on GitHub ↗
(env e2e.Environment, name string, opts ...Option)

Source from the content-addressed store, hash-verified

180}
181
182func NewSwiftStorage(env e2e.Environment, name string, opts ...Option) *e2emon.InstrumentedRunnable {
183 o := options{image: "bouncestorage/swift-aio:55ba4331"}
184 for _, opt := range opts {
185 opt(&o)
186 }
187
188 return e2emon.AsInstrumented(env.Runnable(name).WithPorts(map[string]int{AccessPortName: 8080}).Init(
189 e2e.StartOptions{
190 Image: o.image,
191 Readiness: e2e.NewHTTPReadinessProbe(AccessPortName, "/", 404, 404),
192 },
193 ), AccessPortName)
194}
195
196func NewMemcached(env e2e.Environment, name string, opts ...Option) e2e.Runnable {
197 o := options{image: "memcached:1.6.1"}

Callers

nothing calls this directly

Calls 5

NewHTTPReadinessProbeFunction · 0.92
InitMethod · 0.65
WithPortsMethod · 0.65
RunnableMethod · 0.65
optStruct · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…