gocharm help

Vasiliy Tolstov v.tolstov at selfip.ru
Fri Apr 24 13:33:02 UTC 2015

2015-04-23 20:31 GMT+03:00 roger peppe <roger.peppe at canonical.com>:
> Ah! After looking at your code, I think I might know what your
> question means. Do you mean "If I call RegisterRelation, why
> does gocharm not generate relation hooks for that relation?".
> If so, the answer is that gocharm only generates a hook stub when
> you've called RegisterHook for that hook (it can't know
> *which* hooks you want to be called. RegisterRelation just
> registers the relation; it doesn't say that you're interested in hook
> invocations
> for that relation. See charmbits/httprelation for an example
> of how to implement a relation.

Thanks for all answers.
Offtopic question - does you know something like chef/puppet but
written in go ?=)

Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru

More information about the Juju mailing list