MCPcopy
hub / github.com/hyperledger/fabric / Stop

Method Stop

integration/nwo/runner/couchdb.go:301–319  ·  view source on GitHub ↗

Stop stops and removes the CouchDB container

()

Source from the content-addressed store, hash-verified

299
300// Stop stops and removes the CouchDB container
301func (c *CouchDB) Stop() error {
302 c.mutex.Lock()
303 if c.stopped {
304 c.mutex.Unlock()
305 return errors.Errorf("container %s already stopped", c.containerID)
306 }
307 c.stopped = true
308 c.mutex.Unlock()
309
310 t := 0
311 _, err := c.Client.ContainerStop(context.Background(), c.containerID, dcli.ContainerStopOptions{
312 Timeout: &t,
313 })
314 if err != nil {
315 return err
316 }
317
318 return nil
319}

Callers 2

RunMethod · 0.95
StartCouchDBFunction · 0.95

Calls 4

LockMethod · 0.80
UnlockMethod · 0.80
ContainerStopMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected