Close ends the provisioner. It will mark any running jobs as failed.
()
| 664 | |
| 665 | // Close ends the provisioner. It will mark any running jobs as failed. |
| 666 | func (p *Server) Close() error { |
| 667 | p.opts.Logger.Info(p.closeContext, "closing provisionerd") |
| 668 | return p.closeWithError(nil) |
| 669 | } |
| 670 | |
| 671 | // closeWithError closes the provisioner; subsequent reads/writes will return the error err. |
| 672 | func (p *Server) closeWithError(err error) error { |
nothing calls this directly
no test coverage detected