Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(daemon): daemon access for API extensions (#293)
The following PR provided Pebble derived projects to extend the supplied daemon HTTP API handlers. #265 However, currently such a handler cannot access the daemon, even though we added a daemon method to also expose the Overlord. func v1PostDevice( *daemon.Command, req *http.Request, _ *daemon.UserState) daemon.Response { : // Cannot access c.d (daemon is private) ovld := c.d.Overlord() : } This PR adds c.Daemon() to allow access inside externally defined HTTP API handlers.
- Loading branch information