Versions in this module Expand all Collapse all v1 v1.5.6 Oct 3, 2021 Changes in this version + type ChannelCapabilities struct + ConsensusTypeMigrationStub func() bool + MSPVersionStub func() msp.MSPVersion + OrgSpecificOrdererEndpointsStub func() bool + SupportedStub func() error + func (fake *ChannelCapabilities) ConsensusTypeMigration() bool + func (fake *ChannelCapabilities) ConsensusTypeMigrationCallCount() int + func (fake *ChannelCapabilities) ConsensusTypeMigrationCalls(stub func() bool) + func (fake *ChannelCapabilities) ConsensusTypeMigrationReturns(result1 bool) + func (fake *ChannelCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool) + func (fake *ChannelCapabilities) Invocations() map[string][][]interface{} + func (fake *ChannelCapabilities) MSPVersion() msp.MSPVersion + func (fake *ChannelCapabilities) MSPVersionCallCount() int + func (fake *ChannelCapabilities) MSPVersionCalls(stub func() msp.MSPVersion) + func (fake *ChannelCapabilities) MSPVersionReturns(result1 msp.MSPVersion) + func (fake *ChannelCapabilities) MSPVersionReturnsOnCall(i int, result1 msp.MSPVersion) + func (fake *ChannelCapabilities) OrgSpecificOrdererEndpoints() bool + func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCallCount() int + func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCalls(stub func() bool) + func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturns(result1 bool) + func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturnsOnCall(i int, result1 bool) + func (fake *ChannelCapabilities) Supported() error + func (fake *ChannelCapabilities) SupportedCallCount() int + func (fake *ChannelCapabilities) SupportedCalls(stub func() error) + func (fake *ChannelCapabilities) SupportedReturns(result1 error) + func (fake *ChannelCapabilities) SupportedReturnsOnCall(i int, result1 error) + type ChannelConfig struct + BlockDataHashingStructureWidthStub func() uint32 + CapabilitiesStub func() channelconfig.ChannelCapabilities + HashingAlgorithmStub func() func(input []byte) []byte + OrdererAddressesStub func() []string + func (fake *ChannelConfig) BlockDataHashingStructureWidth() uint32 + func (fake *ChannelConfig) BlockDataHashingStructureWidthCallCount() int + func (fake *ChannelConfig) BlockDataHashingStructureWidthCalls(stub func() uint32) + func (fake *ChannelConfig) BlockDataHashingStructureWidthReturns(result1 uint32) + func (fake *ChannelConfig) BlockDataHashingStructureWidthReturnsOnCall(i int, result1 uint32) + func (fake *ChannelConfig) Capabilities() channelconfig.ChannelCapabilities + func (fake *ChannelConfig) CapabilitiesCallCount() int + func (fake *ChannelConfig) CapabilitiesCalls(stub func() channelconfig.ChannelCapabilities) + func (fake *ChannelConfig) CapabilitiesReturns(result1 channelconfig.ChannelCapabilities) + func (fake *ChannelConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.ChannelCapabilities) + func (fake *ChannelConfig) HashingAlgorithm() func(input []byte) []byte + func (fake *ChannelConfig) HashingAlgorithmCallCount() int + func (fake *ChannelConfig) HashingAlgorithmCalls(stub func() func(input []byte) []byte) + func (fake *ChannelConfig) HashingAlgorithmReturns(result1 func(input []byte) []byte) + func (fake *ChannelConfig) HashingAlgorithmReturnsOnCall(i int, result1 func(input []byte) []byte) + func (fake *ChannelConfig) Invocations() map[string][][]interface{} + func (fake *ChannelConfig) OrdererAddresses() []string + func (fake *ChannelConfig) OrdererAddressesCallCount() int + func (fake *ChannelConfig) OrdererAddressesCalls(stub func() []string) + func (fake *ChannelConfig) OrdererAddressesReturns(result1 []string) + func (fake *ChannelConfig) OrdererAddressesReturnsOnCall(i int, result1 []string) + type ConfigTXValidator struct + ChannelIDStub func() string + ConfigProtoStub func() *common.Config + ProposeConfigUpdateStub func(*common.Envelope) (*common.ConfigEnvelope, error) + SequenceStub func() uint64 + ValidateStub func(*common.ConfigEnvelope) error + func (fake *ConfigTXValidator) ChannelID() string + func (fake *ConfigTXValidator) ChannelIDCallCount() int + func (fake *ConfigTXValidator) ChannelIDCalls(stub func() string) + func (fake *ConfigTXValidator) ChannelIDReturns(result1 string) + func (fake *ConfigTXValidator) ChannelIDReturnsOnCall(i int, result1 string) + func (fake *ConfigTXValidator) ConfigProto() *common.Config + func (fake *ConfigTXValidator) ConfigProtoCallCount() int + func (fake *ConfigTXValidator) ConfigProtoCalls(stub func() *common.Config) + func (fake *ConfigTXValidator) ConfigProtoReturns(result1 *common.Config) + func (fake *ConfigTXValidator) ConfigProtoReturnsOnCall(i int, result1 *common.Config) + func (fake *ConfigTXValidator) Invocations() map[string][][]interface{} + func (fake *ConfigTXValidator) ProposeConfigUpdate(arg1 *common.Envelope) (*common.ConfigEnvelope, error) + func (fake *ConfigTXValidator) ProposeConfigUpdateArgsForCall(i int) *common.Envelope + func (fake *ConfigTXValidator) ProposeConfigUpdateCallCount() int + func (fake *ConfigTXValidator) ProposeConfigUpdateCalls(stub func(*common.Envelope) (*common.ConfigEnvelope, error)) + func (fake *ConfigTXValidator) ProposeConfigUpdateReturns(result1 *common.ConfigEnvelope, result2 error) + func (fake *ConfigTXValidator) ProposeConfigUpdateReturnsOnCall(i int, result1 *common.ConfigEnvelope, result2 error) + func (fake *ConfigTXValidator) Sequence() uint64 + func (fake *ConfigTXValidator) SequenceCallCount() int + func (fake *ConfigTXValidator) SequenceCalls(stub func() uint64) + func (fake *ConfigTXValidator) SequenceReturns(result1 uint64) + func (fake *ConfigTXValidator) SequenceReturnsOnCall(i int, result1 uint64) + func (fake *ConfigTXValidator) Validate(arg1 *common.ConfigEnvelope) error + func (fake *ConfigTXValidator) ValidateArgsForCall(i int) *common.ConfigEnvelope + func (fake *ConfigTXValidator) ValidateCallCount() int + func (fake *ConfigTXValidator) ValidateCalls(stub func(*common.ConfigEnvelope) error) + func (fake *ConfigTXValidator) ValidateReturns(result1 error) + func (fake *ConfigTXValidator) ValidateReturnsOnCall(i int, result1 error) + type OrdererCapabilities struct + ConsensusTypeMigrationStub func() bool + ExpirationCheckStub func() bool + PredictableChannelTemplateStub func() bool + ResubmissionStub func() bool + SupportedStub func() error + UseChannelCreationPolicyAsAdminsStub func() bool + func (fake *OrdererCapabilities) ConsensusTypeMigration() bool + func (fake *OrdererCapabilities) ConsensusTypeMigrationCallCount() int + func (fake *OrdererCapabilities) ConsensusTypeMigrationCalls(stub func() bool) + func (fake *OrdererCapabilities) ConsensusTypeMigrationReturns(result1 bool) + func (fake *OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool) + func (fake *OrdererCapabilities) ExpirationCheck() bool + func (fake *OrdererCapabilities) ExpirationCheckCallCount() int + func (fake *OrdererCapabilities) ExpirationCheckCalls(stub func() bool) + func (fake *OrdererCapabilities) ExpirationCheckReturns(result1 bool) + func (fake *OrdererCapabilities) ExpirationCheckReturnsOnCall(i int, result1 bool) + func (fake *OrdererCapabilities) Invocations() map[string][][]interface{} + func (fake *OrdererCapabilities) PredictableChannelTemplate() bool + func (fake *OrdererCapabilities) PredictableChannelTemplateCallCount() int + func (fake *OrdererCapabilities) PredictableChannelTemplateCalls(stub func() bool) + func (fake *OrdererCapabilities) PredictableChannelTemplateReturns(result1 bool) + func (fake *OrdererCapabilities) PredictableChannelTemplateReturnsOnCall(i int, result1 bool) + func (fake *OrdererCapabilities) Resubmission() bool + func (fake *OrdererCapabilities) ResubmissionCallCount() int + func (fake *OrdererCapabilities) ResubmissionCalls(stub func() bool) + func (fake *OrdererCapabilities) ResubmissionReturns(result1 bool) + func (fake *OrdererCapabilities) ResubmissionReturnsOnCall(i int, result1 bool) + func (fake *OrdererCapabilities) Supported() error + func (fake *OrdererCapabilities) SupportedCallCount() int + func (fake *OrdererCapabilities) SupportedCalls(stub func() error) + func (fake *OrdererCapabilities) SupportedReturns(result1 error) + func (fake *OrdererCapabilities) SupportedReturnsOnCall(i int, result1 error) + func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdmins() bool + func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount() int + func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls(stub func() bool) + func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns(result1 bool) + func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall(i int, result1 bool) + type OrdererConfig struct + BatchSizeStub func() *orderer.BatchSize + BatchTimeoutStub func() time.Duration + CapabilitiesStub func() channelconfig.OrdererCapabilities + ConsensusMetadataStub func() []byte + ConsensusStateStub func() orderer.ConsensusType_State + ConsensusTypeStub func() string + KafkaBrokersStub func() []string + MaxChannelsCountStub func() uint64 + OrganizationsStub func() map[string]channelconfig.OrdererOrg + func (fake *OrdererConfig) BatchSize() *orderer.BatchSize + func (fake *OrdererConfig) BatchSizeCallCount() int + func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize) + func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize) + func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize) + func (fake *OrdererConfig) BatchTimeout() time.Duration + func (fake *OrdererConfig) BatchTimeoutCallCount() int + func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration) + func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration) + func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration) + func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities + func (fake *OrdererConfig) CapabilitiesCallCount() int + func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities) + func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities) + func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities) + func (fake *OrdererConfig) ConsensusMetadata() []byte + func (fake *OrdererConfig) ConsensusMetadataCallCount() int + func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte) + func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte) + func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte) + func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State + func (fake *OrdererConfig) ConsensusStateCallCount() int + func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State) + func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State) + func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State) + func (fake *OrdererConfig) ConsensusType() string + func (fake *OrdererConfig) ConsensusTypeCallCount() int + func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string) + func (fake *OrdererConfig) ConsensusTypeReturns(result1 string) + func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string) + func (fake *OrdererConfig) Invocations() map[string][][]interface{} + func (fake *OrdererConfig) KafkaBrokers() []string + func (fake *OrdererConfig) KafkaBrokersCallCount() int + func (fake *OrdererConfig) KafkaBrokersCalls(stub func() []string) + func (fake *OrdererConfig) KafkaBrokersReturns(result1 []string) + func (fake *OrdererConfig) KafkaBrokersReturnsOnCall(i int, result1 []string) + func (fake *OrdererConfig) MaxChannelsCount() uint64 + func (fake *OrdererConfig) MaxChannelsCountCallCount() int + func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64) + func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64) + func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64) + func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg + func (fake *OrdererConfig) OrganizationsCallCount() int + func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg) + func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg) + func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg) + type Policy struct + EvaluateIdentitiesStub func([]msp.Identity) error + EvaluateSignedDataStub func([]*protoutil.SignedData) error + func (fake *Policy) EvaluateIdentities(arg1 []msp.Identity) error + func (fake *Policy) EvaluateIdentitiesArgsForCall(i int) []msp.Identity + func (fake *Policy) EvaluateIdentitiesCallCount() int + func (fake *Policy) EvaluateIdentitiesCalls(stub func([]msp.Identity) error) + func (fake *Policy) EvaluateIdentitiesReturns(result1 error) + func (fake *Policy) EvaluateIdentitiesReturnsOnCall(i int, result1 error) + func (fake *Policy) EvaluateSignedData(arg1 []*protoutil.SignedData) error + func (fake *Policy) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData + func (fake *Policy) EvaluateSignedDataCallCount() int + func (fake *Policy) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error) + func (fake *Policy) EvaluateSignedDataReturns(result1 error) + func (fake *Policy) EvaluateSignedDataReturnsOnCall(i int, result1 error) + func (fake *Policy) Invocations() map[string][][]interface{} + type PolicyManager struct + GetPolicyStub func(string) (policies.Policy, bool) + ManagerStub func([]string) (policies.Manager, bool) + func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool) + func (fake *PolicyManager) GetPolicyArgsForCall(i int) string + func (fake *PolicyManager) GetPolicyCallCount() int + func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool)) + func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool) + func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool) + func (fake *PolicyManager) Invocations() map[string][][]interface{} + func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool) + func (fake *PolicyManager) ManagerArgsForCall(i int) []string + func (fake *PolicyManager) ManagerCallCount() int + func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool)) + func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool) + func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool) + type ReadWriter struct + AppendStub func(*common.Block) error + HeightStub func() uint64 + IteratorStub func(*orderer.SeekPosition) (blockledger.Iterator, uint64) + func (fake *ReadWriter) Append(arg1 *common.Block) error + func (fake *ReadWriter) AppendArgsForCall(i int) *common.Block + func (fake *ReadWriter) AppendCallCount() int + func (fake *ReadWriter) AppendCalls(stub func(*common.Block) error) + func (fake *ReadWriter) AppendReturns(result1 error) + func (fake *ReadWriter) AppendReturnsOnCall(i int, result1 error) + func (fake *ReadWriter) Height() uint64 + func (fake *ReadWriter) HeightCallCount() int + func (fake *ReadWriter) HeightCalls(stub func() uint64) + func (fake *ReadWriter) HeightReturns(result1 uint64) + func (fake *ReadWriter) HeightReturnsOnCall(i int, result1 uint64) + func (fake *ReadWriter) Invocations() map[string][][]interface{} + func (fake *ReadWriter) Iterator(arg1 *orderer.SeekPosition) (blockledger.Iterator, uint64) + func (fake *ReadWriter) IteratorArgsForCall(i int) *orderer.SeekPosition + func (fake *ReadWriter) IteratorCallCount() int + func (fake *ReadWriter) IteratorCalls(stub func(*orderer.SeekPosition) (blockledger.Iterator, uint64)) + func (fake *ReadWriter) IteratorReturns(result1 blockledger.Iterator, result2 uint64) + func (fake *ReadWriter) IteratorReturnsOnCall(i int, result1 blockledger.Iterator, result2 uint64) + type Resources struct + ApplicationConfigStub func() (channelconfig.Application, bool) + ChannelConfigStub func() channelconfig.Channel + ConfigtxValidatorStub func() configtx.Validator + ConsortiumsConfigStub func() (channelconfig.Consortiums, bool) + MSPManagerStub func() msp.MSPManager + OrdererConfigStub func() (channelconfig.Orderer, bool) + PolicyManagerStub func() policies.Manager + ValidateNewStub func(channelconfig.Resources) error + func (fake *Resources) ApplicationConfig() (channelconfig.Application, bool) + func (fake *Resources) ApplicationConfigCallCount() int + func (fake *Resources) ApplicationConfigCalls(stub func() (channelconfig.Application, bool)) + func (fake *Resources) ApplicationConfigReturns(result1 channelconfig.Application, result2 bool) + func (fake *Resources) ApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool) + func (fake *Resources) ChannelConfig() channelconfig.Channel + func (fake *Resources) ChannelConfigCallCount() int + func (fake *Resources) ChannelConfigCalls(stub func() channelconfig.Channel) + func (fake *Resources) ChannelConfigReturns(result1 channelconfig.Channel) + func (fake *Resources) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel) + func (fake *Resources) ConfigtxValidator() configtx.Validator + func (fake *Resources) ConfigtxValidatorCallCount() int + func (fake *Resources) ConfigtxValidatorCalls(stub func() configtx.Validator) + func (fake *Resources) ConfigtxValidatorReturns(result1 configtx.Validator) + func (fake *Resources) ConfigtxValidatorReturnsOnCall(i int, result1 configtx.Validator) + func (fake *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool) + func (fake *Resources) ConsortiumsConfigCallCount() int + func (fake *Resources) ConsortiumsConfigCalls(stub func() (channelconfig.Consortiums, bool)) + func (fake *Resources) ConsortiumsConfigReturns(result1 channelconfig.Consortiums, result2 bool) + func (fake *Resources) ConsortiumsConfigReturnsOnCall(i int, result1 channelconfig.Consortiums, result2 bool) + func (fake *Resources) Invocations() map[string][][]interface{} + func (fake *Resources) MSPManager() msp.MSPManager + func (fake *Resources) MSPManagerCallCount() int + func (fake *Resources) MSPManagerCalls(stub func() msp.MSPManager) + func (fake *Resources) MSPManagerReturns(result1 msp.MSPManager) + func (fake *Resources) MSPManagerReturnsOnCall(i int, result1 msp.MSPManager) + func (fake *Resources) OrdererConfig() (channelconfig.Orderer, bool) + func (fake *Resources) OrdererConfigCallCount() int + func (fake *Resources) OrdererConfigCalls(stub func() (channelconfig.Orderer, bool)) + func (fake *Resources) OrdererConfigReturns(result1 channelconfig.Orderer, result2 bool) + func (fake *Resources) OrdererConfigReturnsOnCall(i int, result1 channelconfig.Orderer, result2 bool) + func (fake *Resources) PolicyManager() policies.Manager + func (fake *Resources) PolicyManagerCallCount() int + func (fake *Resources) PolicyManagerCalls(stub func() policies.Manager) + func (fake *Resources) PolicyManagerReturns(result1 policies.Manager) + func (fake *Resources) PolicyManagerReturnsOnCall(i int, result1 policies.Manager) + func (fake *Resources) ValidateNew(arg1 channelconfig.Resources) error + func (fake *Resources) ValidateNewArgsForCall(i int) channelconfig.Resources + func (fake *Resources) ValidateNewCallCount() int + func (fake *Resources) ValidateNewCalls(stub func(channelconfig.Resources) error) + func (fake *Resources) ValidateNewReturns(result1 error) + func (fake *Resources) ValidateNewReturnsOnCall(i int, result1 error) + type SignerSerializer struct + SerializeStub func() ([]byte, error) + SignStub func([]byte) ([]byte, error) + func (fake *SignerSerializer) Invocations() map[string][][]interface{} + func (fake *SignerSerializer) Serialize() ([]byte, error) + func (fake *SignerSerializer) SerializeCallCount() int + func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error)) + func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error) + func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error) + func (fake *SignerSerializer) SignArgsForCall(i int) []byte + func (fake *SignerSerializer) SignCallCount() int + func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error)) + func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error) + func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)