hotfix(vpn): inject cmder object for up/down commands and fix cleanup panic

This commit is contained in:
Quentin McGaw
2026-03-08 23:06:32 +00:00
parent 57c53bc19e
commit d98afce793
4 changed files with 10 additions and 13 deletions
+3 -5
View File
@@ -100,10 +100,12 @@ type PublicIPLoop interface {
ClearData() (err error)
}
type CmdStarter interface {
type Cmder interface {
Start(cmd *exec.Cmd) (
stdoutLines, stderrLines <-chan string,
waitError <-chan error, startErr error)
RunAndLog(ctx context.Context, command string,
logger command.Logger) (err error)
}
type HealthChecker interface {
@@ -121,7 +123,3 @@ type Service interface {
Start() (runError <-chan error, err error)
Stop() error
}
type Cmder interface {
RunAndLog(ctx context.Context, command string, logger command.Logger) (err error)
}