Documentation ¶
Index ¶
Constants ¶
const (
// ApplicationV1_1 is the capabilties string for standard new non-backwards compatible fabric v1.1 application capabilities.
ApplicationV1_1 = "V1.1"
)
const (
// ChannelV1_1 is the capabilties string for standard new non-backwards compatible fabric v1.1 channel capabilities.
ChannelV1_1 = "V1.1"
)
const (
// OrdererV1_1 is the capabilties string for standard new non-backwards compatible fabric v1.1 orderer capabilities.
OrdererV1_1 = "V1.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationProvider ¶
type ApplicationProvider struct {
// contains filtered or unexported fields
}
ApplicationProvider provides capabilities information for application level config.
func NewApplicationProvider ¶
func NewApplicationProvider(capabilities map[string]*cb.Capability) *ApplicationProvider
NewApplicationProvider creates a application capabilities provider.
func (*ApplicationProvider) ForbidDuplicateTXIdInBlock ¶
func (ap *ApplicationProvider) ForbidDuplicateTXIdInBlock() bool
ForbidDuplicateTXIdInBlock 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
func (*ApplicationProvider) HasCapability ¶
func (ap *ApplicationProvider) HasCapability(capability string) bool
HasCapability returns true if the capability is supported by this binary.
func (*ApplicationProvider) LifecycleViaConfig ¶
func (ap *ApplicationProvider) LifecycleViaConfig() bool
LifecycleViaConfig returns true if chaincode lifecycle should be managed via the resources config tree rather than via the deprecated v1.0 endorser tx mechanism.
func (ApplicationProvider) Supported ¶
func (r ApplicationProvider) Supported() error
Supported checks that all of the required capabilities are supported by this binary.
func (*ApplicationProvider) Type ¶
func (ap *ApplicationProvider) Type() string
Type returns a descriptive string for logging purposes.
type ChannelProvider ¶
type ChannelProvider struct {
// contains filtered or unexported fields
}
ChannelProvider provides capabilities information for channel level config.
func NewChannelProvider ¶
func NewChannelProvider(capabilities map[string]*cb.Capability) *ChannelProvider
NewChannelProvider creates a channel capabilities provider.
func (*ChannelProvider) HasCapability ¶
func (cp *ChannelProvider) HasCapability(capability string) bool
HasCapability returns true if the capability is supported by this binary.
func (*ChannelProvider) MSPVersion ¶
func (cp *ChannelProvider) MSPVersion() msp.MSPVersion
MSPVersion returns the level of MSP support required by this channel.
func (ChannelProvider) Supported ¶
func (r ChannelProvider) Supported() error
Supported checks that all of the required capabilities are supported by this binary.
func (*ChannelProvider) Type ¶
func (cp *ChannelProvider) Type() string
Type returns a descriptive string for logging purposes.
type OrdererProvider ¶
type OrdererProvider struct {
// contains filtered or unexported fields
}
OrdererProvider provides capabilities information for orderer level config.
func NewOrdererProvider ¶
func NewOrdererProvider(capabilities map[string]*cb.Capability) *OrdererProvider
NewOrdererProvider creates an orderer capabilities provider.
func (*OrdererProvider) HasCapability ¶
func (cp *OrdererProvider) HasCapability(capability string) bool
HasCapability returns true if the capability is supported by this binary.
func (*OrdererProvider) Resubmission ¶
func (cp *OrdererProvider) Resubmission() bool
Resubmission specifies whether the v1.0 non-deterministic commitment of tx should be fixed by re-submitting the re-validated tx.
func (*OrdererProvider) SetChannelModPolicyDuringCreate ¶
func (cp *OrdererProvider) SetChannelModPolicyDuringCreate() bool
SetChannelModPolicyDuringCreate specifies whether the v1.0 undesirable behavior of setting the /Channel group's mod_policy to "" should be fixed or not.
func (OrdererProvider) Supported ¶
func (r OrdererProvider) Supported() error
Supported checks that all of the required capabilities are supported by this binary.
func (*OrdererProvider) Type ¶
func (cp *OrdererProvider) Type() string
Type returns a descriptive string for logging purposes.