MCPcopy
hub / github.com/abiosoft/colima / Process

Interface Process

daemon/process/process.go:16–28  ·  view source on GitHub ↗

Process is a background process managed by the daemon.

Source from the content-addressed store, hash-verified

14
15// Process is a background process managed by the daemon.
16type 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.
31func Dir() string { return filepath.Join(config.CurrentProfile().ConfigDir(), "daemon") }

Callers 8

DependencyMethod · 0.65
RunningMethod · 0.65
InstallMethod · 0.65
InstallMethod · 0.65
RunningMethod · 0.65
DependenciesFunction · 0.65
InstalledMethod · 0.65
InstallMethod · 0.65

Implementers 3

pingercmd/daemon/daemon_test.go
inotifyProcessdaemon/process/inotify/inotify.go
vmnetProcessdaemon/process/vmnet/vmnet.go

Calls

no outgoing calls

Tested by

no test coverage detected