~mfoord/juju-core/ha-rsyslog-shortcut-removal

Viewing all changes in revision 2739.

  • Committer: Tarmac
  • Author(s): John Arbash Meinel
  • Date: 2014-05-16 12:06:35 UTC
  • mfrom: (2715.2.7 typed-registry)
  • Revision ID: tarmac-20140516120635-28jnot7o6cn5jq58
[r=jameinel] utils/registry: TypedNameVersion registry

As part of getting API versioning in place, I was putting together some
Registry's in a couple of places. I realized I wanted 2 things that were
essentially identical code, just tracking slightly different object
types. So I put together an abstraction that still enforces the Type,
but is otherwise treats the input and output as a generic interface{}.

https://codereview.appspot.com/99180044/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: