-
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-6859] introduce capability for pvt channel data
This change set creates a capability for private channel data (using collections and SideDB). The capability is experimental for v1.1 and is enabled in the binary only if it was built with the experimental flag. Change-Id: I4b7e9a761507a6d617ee8c585f1b62da2e1f95e7 Signed-off-by: Alessandro Sorniotti <ale.linux@sopit.net>
- Loading branch information
Showing
6 changed files
with
70 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// +build experimental | ||
|
||
/* | ||
Copyright IBM Corp. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package capabilities | ||
|
||
// HasCapability returns true if the capability is supported by this binary. | ||
func (ap *ApplicationProvider) HasCapability(capability string) bool { | ||
switch capability { | ||
// Add new capability names here | ||
case ApplicationV1_1: | ||
return true | ||
case ApplicationPvtDataExperimental: | ||
return true | ||
default: | ||
return false | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// +build !experimental | ||
|
||
/* | ||
Copyright IBM Corp. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package capabilities | ||
|
||
// HasCapability returns true if the capability is supported by this binary. | ||
func (ap *ApplicationProvider) HasCapability(capability string) bool { | ||
switch capability { | ||
// Add new capability names here | ||
case ApplicationV1_1: | ||
return true | ||
case ApplicationPvtDataExperimental: | ||
return false | ||
default: | ||
return false | ||
} | ||
} |
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