wetware / pkg

Peer-to-peer cloud environment
https://wetware.run
Other
38 stars 7 forks source link

Introduce per-capability host modules. #152

Closed lthibault closed 1 year ago

lthibault commented 1 year ago

@mikelsr This PR ended up snowballing, so I'm cutting it off before it gets any larger. There are a few things going on:

  1. Package util/log graduates to log.
  2. I introduce an event system (see log.Event) that attaches debug context to errors.
  3. I move all the code pertaining to the guest/host rpc.Conn over to the system package.
  4. I introduce a plugin architecture based on host modules. Right now there is just a stub implementation in cap/view/module.go.

How hard would it be to rebase your open PRs on this branch?

lthibault commented 1 year ago

@mikelsr Marking as draft, as I've thought of a potential way to split this into smaller chunks.

lthibault commented 1 year ago

Superseded by #153