Process is a background process managed by the daemon.
| 14 | |
| 15 | // Process is a background process managed by the daemon. |
| 16 | type Process interface { |
| 17 | // Name for the background process |
| 18 | Name() string |
| 19 | // Start starts the background process. |
| 20 | // The process is expected to terminate when ctx is done. |
| 21 | Start(ctx context.Context) error |
| 22 | // Alive checks if the process is the alive. |
| 23 | Alive(ctx context.Context) error |
| 24 | // Dependencies are requirements for start to succeed. |
| 25 | // root should be true if root access is required for |
| 26 | // installing any of the dependencies. |
| 27 | Dependencies() (deps []Dependency, root bool) |
| 28 | } |
| 29 | |
| 30 | // Dir is the directory for daemon files. |
| 31 | func Dir() string { return filepath.Join(config.CurrentProfile().ConfigDir(), "daemon") } |
no outgoing calls
no test coverage detected