Skip to content

Commit bd549d7

Browse files
author
Jason Yellick
committed
[FAB-2107] Define application config schema
https://jira.hyperledger.org/browse/FAB-2107 Initial pass defining the structures which are currently populated into the application config. Change-Id: Ica72acd4ac95a7821f077e0e222b79fd5685d396 Signed-off-by: Jason Yellick <[email protected]>
1 parent f60d3af commit bd549d7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

common/configtx/handlers/application/sharedconfig.go

+22
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@ import (
2626
"github.com/op/go-logging"
2727
)
2828

29+
var orgSchema = &cb.ConfigGroupSchema{
30+
Groups: map[string]*cb.ConfigGroupSchema{},
31+
Values: map[string]*cb.ConfigValueSchema{
32+
"MSP": nil, // TODO, consolidate into a constant once common org code exists
33+
},
34+
Policies: map[string]*cb.ConfigPolicySchema{
35+
// TODO, set appropriately once hierarchical policies are implemented
36+
},
37+
}
38+
39+
var Schema = &cb.ConfigGroupSchema{
40+
Groups: map[string]*cb.ConfigGroupSchema{
41+
"": orgSchema,
42+
},
43+
Values: map[string]*cb.ConfigValueSchema{
44+
AnchorPeersKey: nil,
45+
},
46+
Policies: map[string]*cb.ConfigPolicySchema{
47+
// TODO, set appropriately once hierarchical policies are implemented
48+
},
49+
}
50+
2951
// Peer config keys
3052
const (
3153
// AnchorPeersKey is the cb.ConfigItem type key name for the AnchorPeers message

0 commit comments

Comments
 (0)