mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 06:04:38 +00:00
feat: add host-managed backend ssh key injection
This commit is contained in:
parent
a12f54ba5d
commit
9acbf232eb
4 changed files with 138 additions and 4 deletions
|
|
@ -56,13 +56,17 @@ func New(cfg appconfig.Config, store store.Store, runtime Runtime) (*Daemon, err
|
|||
return nil, fmt.Errorf("create daemon dir %q: %w", dir, err)
|
||||
}
|
||||
}
|
||||
return &Daemon{
|
||||
daemon := &Daemon{
|
||||
config: cfg,
|
||||
store: store,
|
||||
runtime: runtime,
|
||||
machineLocks: make(map[contracthost.MachineID]*sync.Mutex),
|
||||
artifactLocks: make(map[string]*sync.Mutex),
|
||||
}, nil
|
||||
}
|
||||
if err := daemon.ensureBackendSSHKeyPair(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return daemon, nil
|
||||
}
|
||||
|
||||
func (d *Daemon) Health(ctx context.Context) (*contracthost.HealthResponse, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue