~frankban/juju-core/minimum-units-worker

Viewing all changes in revision 1315.

  • Committer: Tarmac
  • Author(s): Jeroen Vermeulen
  • Date: 2013-06-20 17:22:18 UTC
  • mfrom: (1310.2.7 session-certificate)
  • Revision ID: tarmac-20130620172218-jwl9sp71dmuqty4r
[r=jtv] Create temporary cert file for each ManagementAPI.

For now, each high-level function in the Azure provider will create its own storage contexts and management-API objects as needed.  In the case of the management API, that comes with a temporary file containing an Azure certificate.  (There is another way to pass the certificate to go-curl, but we want to avoid the complications and especially the unknowns at this point).

Once done with your request(s) to the management, you release it.  This cleans up the certificate file, but in the future it may also serve as a hook for connection pooling.  We'll treat optimization as a separate problem — it seems easy but this sort of thing often brings out creative tendencies that aren't worth the time just at the moment.  As long as we don't need any actual cleanup code for the storage-API side, we chose not to create a cleanup method there.  This is all internal detail after all; it doesn't affect any exported APIs.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: