Merge pull request openziti/fabric#279 from openziti/expose.loaded.identity

exposes controller.Identity() to avoid re-parses
This commit is contained in:
Andrew
2021-10-19 09:54:43 -04:00
committed by GitHub
+5
View File
@@ -35,6 +35,7 @@ import (
"github.com/openziti/fabric/xweb"
"github.com/openziti/foundation/channel2"
"github.com/openziti/foundation/common"
"github.com/openziti/foundation/identity/identity"
"github.com/openziti/foundation/profiler"
"github.com/openziti/foundation/util/concurrenz"
"github.com/sirupsen/logrus"
@@ -287,3 +288,7 @@ func (c *Controller) RegisterXWebHandlerFactory(x xweb.WebHandlerFactory) error
func (c *Controller) GetNetwork() *network.Network {
return c.network
}
func (c *Controller) Identity() identity.Identity {
return c.config.Id
}