Descriptionapi: AddLocalCharm method to upload charms via API
This introduces api.Client.AddLocalCharm that takes
care of all the internals about uploading a local charm
through the API server. Because charm upload needs
authentication, caching of API client credentials
is introduced, so after Login succeeds the client
can upload charms without asking for credentials.
Also introduced a NotImplementedError, which is
returned by UploadCharm when the API server is
detected to not support charm uploads (needed for
1.16 compatibility later on).
Next, we'll use this instead of Conn.PutCharm in
deploy and upgrade-charm commands.
https://code.launchpad.net/~dimitern/juju-core/225-upload-charm-via-api/+merge/199251
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 9
Patch Set 2 : api: AddLocalCharm method to upload charms via API #Patch Set 3 : api: AddLocalCharm method to upload charms via API #
MessagesTotal messages: 6
|