Getting the API server URL in workers
Andrew Wilkins
andrew.wilkins at canonical.com
Wed Sep 3 14:02:56 UTC 2014
I'm working on moving all tools downloads to download from the API server.
There will are a few APIs that return tools:
- Upgrader.Tools
- Client.FindTools
- Provisioner.FindTools
These APIs will need to return URLs pointing at the API server. I'm
intending to change the facade constructors to take a parameter struct, and
extend it with the API server's root URL (i.e.
https://<address>:<port>/environment/<uuid>),
where the address is the one used by the client to connect.
Any reason I should not go ahead and do that? This will probably make it
easier to slot in a "Restarter" or whatever as well.
Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140903/accd3839/attachment.html>
More information about the Juju-dev
mailing list