-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-1648] Enable BCCSP configuration w. JSON/YAML
Require call to func InitFactories(config *FactoryOpts) That takes a config file appropriate for json.Unmarshall() and viper.UnmarshallKey() Removed ability from factory.go to get BCCSP instances on new Opts. Factory API is now: func GetDefault() (bccsp.BCCSP, error) func GetBCCSP(name string) (bccsp.BCCSP, error) InitFactories reads the config, initializes a hashmap for GetBCCSP and initializes pointer for GetDefault() To break up this change into digestible pieces, this change calls InitFactories(nil) as a workaround. Next set of changes will deal with modifying yaml files and calling InitFactories() with real data Change-Id: I7c68e52c75fc6751c7e758bf06dcaa88219aa6a9 Signed-off-by: Volodymyr Paprotski <vpaprots@ca.ibm.com>
- Loading branch information
Volodymyr Paprotski
committed
Feb 19, 2017
1 parent
ef962ca
commit 5159e6e
Showing
15 changed files
with
277 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.