Skip to content

Commit

Permalink
[FAB-5556] Compatibility
Browse files Browse the repository at this point in the history
WIP - proto definitions to handle capability-base policy

Change-Id: I4f86bf925349788a56214ea0816f062dde922559
Signed-off-by: Binh Q. Nguyen <[email protected]>
  • Loading branch information
binhn committed Aug 30, 2017
1 parent 8a86221 commit 5e3d22c
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 17 deletions.
2 changes: 2 additions & 0 deletions protos/common/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 69 additions & 16 deletions protos/common/configuration.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions protos/common/configuration.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,25 @@ message OrdererAddresses {
message Consortium {
string name = 1;
}


// Capabilities message contains all the capabilities that a channel requires
// participant entities to comply with. The entity should drop off the channel
// if it can't fulfill any of the required capabilities.
// Capabilities is encoded into the configuaration as Values of each type
// Orderer, Channel, or Application.
// The key string should represent the capability name, and it must be unique
// within each type. For readability, it may be advisable to prefix the key with
// its type (eg app-acl)
message Capabilities {
map<string, Capability> capabilities = 1;
}

// Capability holds a set of options. We can add more as needed in the
// future. For now, whether it is required or not. If a configured capability
// is not required, it must be completely compatible with previous releases.
// Compatible features are not required to be encoded as capabilities; they
// only provide flexibility for the admins to control the features.
message Capability {
bool required = 1;
}
4 changes: 3 additions & 1 deletion protos/gossip/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e3d22c

Please sign in to comment.