(context *cli.Context, notifySocketHost, id string)
| 26 | } |
| 27 | |
| 28 | func newNotifySocket(context *cli.Context, notifySocketHost, id string) *notifySocket { |
| 29 | if notifySocketHost == "" { |
| 30 | return nil |
| 31 | } |
| 32 | |
| 33 | root := filepath.Join(context.GlobalString("root"), id) |
| 34 | socketPath := filepath.Join(root, "notify", "notify.sock") |
| 35 | |
| 36 | notifySocket := ¬ifySocket{ |
| 37 | socket: nil, |
| 38 | host: notifySocketHost, |
| 39 | socketPath: socketPath, |
| 40 | } |
| 41 | |
| 42 | return notifySocket |
| 43 | } |
| 44 | |
| 45 | func (s *notifySocket) Close() error { |
| 46 | return s.socket.Close() |
no outgoing calls
no test coverage detected
searching dependent graphs…