Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + type ChannelConfigGetter struct + GetChannelConfigStub func(string) channelconfig.Resources + func (fake *ChannelConfigGetter) GetChannelConfig(arg1 string) channelconfig.Resources + func (fake *ChannelConfigGetter) GetChannelConfigArgsForCall(i int) string + func (fake *ChannelConfigGetter) GetChannelConfigCallCount() int + func (fake *ChannelConfigGetter) GetChannelConfigCalls(stub func(string) channelconfig.Resources) + func (fake *ChannelConfigGetter) GetChannelConfigReturns(result1 channelconfig.Resources) + func (fake *ChannelConfigGetter) GetChannelConfigReturnsOnCall(i int, result1 channelconfig.Resources) + func (fake *ChannelConfigGetter) Invocations() map[string][][]interface{} + type ChannelPolicyManagerGetter struct + func (_m *ChannelPolicyManagerGetter) Manager(channelID string) policies.Manager + type ConfigGetter struct + GetCurrConfigStub func(string) *common.Config + func (fake *ConfigGetter) GetCurrConfig(arg1 string) *common.Config + func (fake *ConfigGetter) GetCurrConfigArgsForCall(i int) string + func (fake *ConfigGetter) GetCurrConfigCallCount() int + func (fake *ConfigGetter) GetCurrConfigCalls(stub func(string) *common.Config) + func (fake *ConfigGetter) GetCurrConfigReturns(result1 *common.Config) + func (fake *ConfigGetter) GetCurrConfigReturnsOnCall(i int, result1 *common.Config) + func (fake *ConfigGetter) Invocations() map[string][][]interface{} + 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 Evaluator struct + EvaluateIdentitiesStub func([]msp.Identity) error + EvaluateSignedDataStub func([]*protoutil.SignedData) error + func (fake *Evaluator) EvaluateIdentities(arg1 []msp.Identity) error + func (fake *Evaluator) EvaluateIdentitiesArgsForCall(i int) []msp.Identity + func (fake *Evaluator) EvaluateIdentitiesCallCount() int + func (fake *Evaluator) EvaluateIdentitiesCalls(stub func([]msp.Identity) error) + func (fake *Evaluator) EvaluateIdentitiesReturns(result1 error) + func (fake *Evaluator) EvaluateIdentitiesReturnsOnCall(i int, result1 error) + func (fake *Evaluator) EvaluateSignedData(arg1 []*protoutil.SignedData) error + func (fake *Evaluator) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData + func (fake *Evaluator) EvaluateSignedDataCallCount() int + func (fake *Evaluator) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error) + func (fake *Evaluator) EvaluateSignedDataReturns(result1 error) + func (fake *Evaluator) EvaluateSignedDataReturnsOnCall(i int, result1 error) + func (fake *Evaluator) Invocations() map[string][][]interface{} + type GossipSupport struct + func (_m *GossipSupport) ChannelExists(channel string) bool + func (_m *GossipSupport) IdentityInfo() api.PeerIdentitySet + func (_m *GossipSupport) Peers() discovery.Members + func (_m *GossipSupport) PeersOfChannel(_a0 common.ChannelID) discovery.Members + type Identity struct + AnonymousStub func() bool + ExpiresAtStub func() time.Time + GetIdentifierStub func() *msp.IdentityIdentifier + GetMSPIdentifierStub func() string + GetOrganizationalUnitsStub func() []*msp.OUIdentifier + SatisfiesPrincipalStub func(*mspa.MSPPrincipal) error + SerializeStub func() ([]byte, error) + ValidateStub func() error + VerifyStub func([]byte, []byte) error + func (fake *Identity) Anonymous() bool + func (fake *Identity) AnonymousCallCount() int + func (fake *Identity) AnonymousCalls(stub func() bool) + func (fake *Identity) AnonymousReturns(result1 bool) + func (fake *Identity) AnonymousReturnsOnCall(i int, result1 bool) + func (fake *Identity) ExpiresAt() time.Time + func (fake *Identity) ExpiresAtCallCount() int + func (fake *Identity) ExpiresAtCalls(stub func() time.Time) + func (fake *Identity) ExpiresAtReturns(result1 time.Time) + func (fake *Identity) ExpiresAtReturnsOnCall(i int, result1 time.Time) + func (fake *Identity) GetIdentifier() *msp.IdentityIdentifier + func (fake *Identity) GetIdentifierCallCount() int + func (fake *Identity) GetIdentifierCalls(stub func() *msp.IdentityIdentifier) + func (fake *Identity) GetIdentifierReturns(result1 *msp.IdentityIdentifier) + func (fake *Identity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier) + func (fake *Identity) GetMSPIdentifier() string + func (fake *Identity) GetMSPIdentifierCallCount() int + func (fake *Identity) GetMSPIdentifierCalls(stub func() string) + func (fake *Identity) GetMSPIdentifierReturns(result1 string) + func (fake *Identity) GetMSPIdentifierReturnsOnCall(i int, result1 string) + func (fake *Identity) GetOrganizationalUnits() []*msp.OUIdentifier + func (fake *Identity) GetOrganizationalUnitsCallCount() int + func (fake *Identity) GetOrganizationalUnitsCalls(stub func() []*msp.OUIdentifier) + func (fake *Identity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier) + func (fake *Identity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier) + func (fake *Identity) Invocations() map[string][][]interface{} + func (fake *Identity) SatisfiesPrincipal(arg1 *mspa.MSPPrincipal) error + func (fake *Identity) SatisfiesPrincipalArgsForCall(i int) *mspa.MSPPrincipal + func (fake *Identity) SatisfiesPrincipalCallCount() int + func (fake *Identity) SatisfiesPrincipalCalls(stub func(*mspa.MSPPrincipal) error) + func (fake *Identity) SatisfiesPrincipalReturns(result1 error) + func (fake *Identity) SatisfiesPrincipalReturnsOnCall(i int, result1 error) + func (fake *Identity) Serialize() ([]byte, error) + func (fake *Identity) SerializeCallCount() int + func (fake *Identity) SerializeCalls(stub func() ([]byte, error)) + func (fake *Identity) SerializeReturns(result1 []byte, result2 error) + func (fake *Identity) SerializeReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *Identity) Validate() error + func (fake *Identity) ValidateCallCount() int + func (fake *Identity) ValidateCalls(stub func() error) + func (fake *Identity) ValidateReturns(result1 error) + func (fake *Identity) ValidateReturnsOnCall(i int, result1 error) + func (fake *Identity) Verify(arg1 []byte, arg2 []byte) error + func (fake *Identity) VerifyArgsForCall(i int) ([]byte, []byte) + func (fake *Identity) VerifyCallCount() int + func (fake *Identity) VerifyCalls(stub func([]byte, []byte) error) + func (fake *Identity) VerifyReturns(result1 error) + func (fake *Identity) VerifyReturnsOnCall(i int, result1 error) + type MSPManager struct + DeserializeIdentityStub func([]byte) (msp.Identity, error) + GetMSPsStub func() (map[string]msp.MSP, error) + IsWellFormedStub func(*mspa.SerializedIdentity) error + SetupStub func([]msp.MSP) error + func (fake *MSPManager) DeserializeIdentity(arg1 []byte) (msp.Identity, error) + func (fake *MSPManager) DeserializeIdentityArgsForCall(i int) []byte + func (fake *MSPManager) DeserializeIdentityCallCount() int + func (fake *MSPManager) DeserializeIdentityCalls(stub func([]byte) (msp.Identity, error)) + func (fake *MSPManager) DeserializeIdentityReturns(result1 msp.Identity, result2 error) + func (fake *MSPManager) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error) + func (fake *MSPManager) GetMSPs() (map[string]msp.MSP, error) + func (fake *MSPManager) GetMSPsCallCount() int + func (fake *MSPManager) GetMSPsCalls(stub func() (map[string]msp.MSP, error)) + func (fake *MSPManager) GetMSPsReturns(result1 map[string]msp.MSP, result2 error) + func (fake *MSPManager) GetMSPsReturnsOnCall(i int, result1 map[string]msp.MSP, result2 error) + func (fake *MSPManager) Invocations() map[string][][]interface{} + func (fake *MSPManager) IsWellFormed(arg1 *mspa.SerializedIdentity) error + func (fake *MSPManager) IsWellFormedArgsForCall(i int) *mspa.SerializedIdentity + func (fake *MSPManager) IsWellFormedCallCount() int + func (fake *MSPManager) IsWellFormedCalls(stub func(*mspa.SerializedIdentity) error) + func (fake *MSPManager) IsWellFormedReturns(result1 error) + func (fake *MSPManager) IsWellFormedReturnsOnCall(i int, result1 error) + func (fake *MSPManager) Setup(arg1 []msp.MSP) error + func (fake *MSPManager) SetupArgsForCall(i int) []msp.MSP + func (fake *MSPManager) SetupCallCount() int + func (fake *MSPManager) SetupCalls(stub func([]msp.MSP) error) + func (fake *MSPManager) SetupReturns(result1 error) + func (fake *MSPManager) SetupReturnsOnCall(i int, result1 error) + type PolicyManager struct + func (_m *PolicyManager) GetPolicy(id string) (policies.Policy, bool) + func (_m *PolicyManager) Manager(path []string) (policies.Manager, bool) + 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 Verifier struct + VerifyByChannelStub func(string, *protoutil.SignedData) error + func (fake *Verifier) Invocations() map[string][][]interface{} + func (fake *Verifier) VerifyByChannel(arg1 string, arg2 *protoutil.SignedData) error + func (fake *Verifier) VerifyByChannelArgsForCall(i int) (string, *protoutil.SignedData) + func (fake *Verifier) VerifyByChannelCallCount() int + func (fake *Verifier) VerifyByChannelCalls(stub func(string, *protoutil.SignedData) error) + func (fake *Verifier) VerifyByChannelReturns(result1 error) + func (fake *Verifier) VerifyByChannelReturnsOnCall(i int, result1 error) Other modules containing this package github.com/waszqt/fabric