Skip to content

Commit

Permalink
[FAB-2107] Define application config schema
Browse files Browse the repository at this point in the history
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 <jyellick@us.ibm.com>
  • Loading branch information
Jason Yellick committed Feb 11, 2017
1 parent f60d3af commit bd549d7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions common/configtx/handlers/application/sharedconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ import (
"github.com/op/go-logging"
)

var orgSchema = &cb.ConfigGroupSchema{
Groups: map[string]*cb.ConfigGroupSchema{},
Values: map[string]*cb.ConfigValueSchema{
"MSP": nil, // TODO, consolidate into a constant once common org code exists
},
Policies: map[string]*cb.ConfigPolicySchema{
// TODO, set appropriately once hierarchical policies are implemented
},
}

var Schema = &cb.ConfigGroupSchema{
Groups: map[string]*cb.ConfigGroupSchema{
"": orgSchema,
},
Values: map[string]*cb.ConfigValueSchema{
AnchorPeersKey: nil,
},
Policies: map[string]*cb.ConfigPolicySchema{
// TODO, set appropriately once hierarchical policies are implemented
},
}

// Peer config keys
const (
// AnchorPeersKey is the cb.ConfigItem type key name for the AnchorPeers message
Expand Down

0 comments on commit bd549d7

Please sign in to comment.