func (s *UpgradeCharmStoreResourceSuite) SetUpSuite(c *gc.C) { s.charmStoreSuite.SetUpSuite(c) err := all.RegisterForServer() c.Assert(err, jc.ErrorIsNil) err = all.RegisterForClient() c.Assert(err, jc.ErrorIsNil) }
func init() { if err := components.RegisterForClient(); err != nil { log.Criticalf("unable to register client components: %v", err) os.Exit(1) } }