{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package capabilities\n\n## Constants\n\n```go\nconst (\n\n\t// ApplicationV1_1 is the capabilties string for standard new non-backwards compatible fabric v1.1 application capabilities.\n\tApplicationV1_1 = \"V1_1\"\n\n\t// ApplicationV1_2 is the capabilties string for standard new non-backwards compatible fabric v1.2 application capabilities.\n\tApplicationV1_2 = \"V1_2\"\n\n\t// ApplicationV1_3 is the capabilties string for standard new non-backwards compatible fabric v1.3 application capabilities.\n\tApplicationV1_3 = \"V1_3\"\n\n\t// ApplicationV1_4_2 is the capabilties string for standard new non-backwards compatible fabric v1.4.2 application capabilities.\n\tApplicationV1_4_2 = \"V1_4_2\"\n\n\t// ApplicationPvtDataExperimental is the capabilties string for private data using the experimental feature of collections/sideDB.\n\tApplicationPvtDataExperimental = \"V1_1_PVTDATA_EXPERIMENTAL\"\n\n\t// ApplicationResourcesTreeExperimental is the capabilties string for private data using the experimental feature of collections/sideDB.\n\tApplicationResourcesTreeExperimental = \"V1_1_RESOURCETREE_EXPERIMENTAL\"\n)\n```\n\n```go\nconst (\n\n\t// ChannelV1_1 is the capabilities string for standard new non-backwards compatible fabric v1.1 channel capabilities.\n\tChannelV1_1 = \"V1_1\"\n\n\t// ChannelV1_3 is the capabilities string for standard new non-backwards compatible fabric v1.3 channel capabilities.\n\tChannelV1_3 = \"V1_3\"\n\n\t// ChannelV1_4_2 is the capabilities string for standard new non-backwards compatible fabric v1.4.2 channel capabilities.\n\tChannelV1_4_2 = \"V1_4_2\"\n\n\t// ChannelV1_4_3 is the capabilities string for standard new non-backwards compatible fabric v1.4.3 channel capabilities.\n\tChannelV1_4_3 = \"V1_4_3\"\n)\n```\n\n```go\nconst (\n\n\t// OrdererV1_1 is the capabilities string for standard new non-backwards compatible Fabric v1.1 orderer capabilities.\n\tOrdererV1_1 = \"V1_1\"\n\n\t// OrdererV1_4_2 is the capabilities string for standard new non-backwards compatible Fabric v1.4.2 orderer capabilities.\n\tOrdererV1_4_2 = \"V1_4_2\"\n)\n```\n\n## Types\n\n```go\ntype ApplicationProvider struct {\n\t// contains filtered or unexported fields\n}\n```\nApplicationProvider provides capabilities information for application level config.\n\n```go\nfunc NewApplicationProvider(capabilities map[string]*cb.Capability) *ApplicationProvider\n```\nNewApplicationProvider creates a application capabilities provider.\n\n```go\nfunc (ap *ApplicationProvider) ACLs() bool\n```\nACLs returns whether ACLs may be specified in the channel application config\n\n```go\nfunc (ap ApplicationProvider) CollectionUpgrade() bool\n```\nCollectionUpgrade returns true if this channel is configured to allow updates to existing collection or add new collections through chaincode upgrade (as introduced in v1.2)\n\n```go\nfunc (ap *ApplicationProvider) FabToken() bool\n```\nThere is no fabtoken support in v1.4, so always return false\n\n```go\nfunc (ap *ApplicationProvider) ForbidDuplicateTXIdInBlock() bool\n```\nForbidDuplicateTXIdInBlock specifies whether two transactions with the same TXId are permitted in the same block or whether we mark the second one as TxValidationCode\\_DUPLICATE\\_TXID\n\n```go\nfunc (ap *ApplicationProvider) HasCapability(capability string) bool\n```\nHasCapability returns true if the capability is supported by this binary.\n\n```go\nfunc (ap *ApplicationProvider) KeyLevelEndorsement() bool\n```\nKeyLevelEndorsement returns true if this channel supports endorsement policies expressible at a ledger key granularity, as described in FAB-8812\n\n```go\nfunc (ap *ApplicationProvider) MetadataLifecycle() bool\n```\nMetadataLifecycle indicates whether the peer should use the deprecated and problematic v1.0/v1.1/v1.2 lifecycle, or whether it should use the newer per channel peer local chaincode metadata package approach planned for release with Fabric v1.3\n\n```go\nfunc (ap *ApplicationProvider) PrivateChannelData() bool\n```\nPrivateChannelData returns true if support for private channel data (a.k.a. collections) is enabled. In v1.1, the private channel data is experimental and has to be enabled explicitly. In v1.2, the private channel data is enabled by default.\n\n```go\nfunc (ap *ApplicationProvider) StorePvtDataOfInvalidTx() bool\n```\nStorePvtDataOfInvalidTx returns true if the peer needs to store the pvtData of invalid transactions.\n\n```go\nfunc (r ApplicationProvider) Supported() error\n```\nSupported checks that all of the required capabilities are supported by this binary.\n\n```go\nfunc (ap *ApplicationProvider) Type() string\n```\nType returns a descriptive string for logging purposes.\n\n```go\nfunc (ap *ApplicationProvider) V1_1Validation() bool\n```\nV1\\_1Validation returns true is this channel is configured to perform stricter validation of transactions (as introduced in v1.1).\n\n```go\nfunc (ap *ApplicationProvider) V1_2Validation() bool\n```\nV1\\_2Validation returns true if this channel is configured to perform stricter validation of transactions (as introduced in v1.2).\n\n```go\nfunc (ap *ApplicationProvider) V1_3Validation() bool\n```\nV1\\_3Validation returns true if this channel is configured to perform stricter validation of transactions (as introduced in v1.3).\n\n```go\ntype ChannelProvider struct {\n\t// contains filtered or unexported fields\n}\n```\nChannelProvider provides capabilities information for channel level config.\n\n```go\nfunc NewChannelProvider(capabilities map[string]*cb.Capability) *ChannelProvider\n```\nNewChannelProvider creates a channel capabilities provider.\n\n```go\nfunc (cp *ChannelProvider) ConsensusTypeMigration() bool\n```\nConsensusTypeMigration return true if consensus-type migration is supported and permitted in both orderer and peer.\n\n```go\nfunc (cp *ChannelProvider) HasCapability(capability string) bool\n```\nHasCapability returns true if the capability is supported by this binary.\n\n```go\nfunc (cp *ChannelProvider) MSPVersion() msp.MSPVersion\n```\nMSPVersion returns the level of MSP support required by this channel.\n\n```go\nfunc (cp *ChannelProvider) OrgSpecificOrdererEndpoints() bool\n```\nOrgSpecificOrdererEndpoints allows for individual orderer orgs to specify their external addresses for their OSNs.\n\n```go\nfunc (r ChannelProvider) Supported() error\n```\nSupported checks that all of the required capabilities are supported by this binary.\n\n```go\nfunc (cp *ChannelProvider) Type() string\n```\nType returns a descriptive string for logging purposes.\n\n```go\ntype OrdererProvider struct {\n\t// contains filtered or unexported fields\n}\n```\nOrdererProvider provides capabilities information for orderer level config.\n\n```go\nfunc NewOrdererProvider(capabilities map[string]*cb.Capability) *OrdererProvider\n```\nNewOrdererProvider creates an orderer capabilities provider.\n\n```go\nfunc (cp *OrdererProvider) ConsensusTypeMigration() bool\n```\nConsensusTypeMigration checks whether the orderer permits a consensus-type migration.\n\nA Kafka-based Ordering Service Node requires these capabilities in order to receive and process a config update with consensus-type migration change. Migration is supported from Kafka to Raft only. If not present, these config updates will be rejected.\n\n```go\nfunc (cp *OrdererProvider) ExpirationCheck() bool\n```\nExpirationCheck specifies whether the orderer checks for identity expiration checks when validating messages\n\n```go\nfunc (cp *OrdererProvider) HasCapability(capability string) bool\n```\nHasCapability returns true if the capability is supported by this binary.\n\n```go\nfunc (cp *OrdererProvider) PredictableChannelTemplate() bool\n```\nPredictableChannelTemplate specifies whether the v1.0 undesirable behavior of setting the /Channel group's mod\\_policy to \"\" and copying versions from the channel config should be fixed or not.\n\n```go\nfunc (cp *OrdererProvider) Resubmission() bool\n```\nResubmission specifies whether the v1.0 non-deterministic commitment of tx should be fixed by re-submitting the re-validated tx.\n\n```go\nfunc (r OrdererProvider) Supported() error\n```\nSupported checks that all of the required capabilities are supported by this binary.\n\n```go\nfunc (cp *OrdererProvider) Type() string\n```\nType returns a descriptive string for logging purposes.\n\n","path":"github.com/eric-erki/https-hyperledger.org/common/capabilities","name":"capabilities","synopsis":"","isRedistributable":true}
