MCPcopy Create free account
hub / github.com/bytesizedhosting/bcd / Start

Method Start

plugins/base_rpc.go:22–42  ·  view source on GitHub ↗
(opts *ActionOpts, success *bool)

Source from the content-addressed store, hash-verified

20}
21
22func (self *BaseRPC) Start(opts *ActionOpts, success *bool) error {
23 containerId := opts.ContainerId
24 log.WithFields(log.Fields{
25 "container_id": containerId,
26 "name": self.base.GetName(),
27 }).Info("Starting container")
28
29 err := self.base.Start(&AppConfig{ContainerId: containerId})
30
31 if err != nil {
32 return err
33 }
34 *success = true
35
36 log.WithFields(log.Fields{
37 "container_id": containerId,
38 "name": self.base.GetName(),
39 }).Info("Container started")
40
41 return nil
42}
43
44func (self *BaseRPC) Status(opts *ActionOpts, state *docker.State) error {
45 containerId := opts.ContainerId

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.65
StartMethod · 0.65

Tested by

no test coverage detected