mocks

package
Version: v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelCapabilities

type ChannelCapabilities struct {
	ConsensusTypeMigrationStub func() bool

	MSPVersionStub func() msp.MSPVersion

	OrgSpecificOrdererEndpointsStub func() bool

	SupportedStub func() error
	// contains filtered or unexported fields
}

func (*ChannelCapabilities) ConsensusTypeMigration

func (fake *ChannelCapabilities) ConsensusTypeMigration() bool

func (*ChannelCapabilities) ConsensusTypeMigrationCallCount

func (fake *ChannelCapabilities) ConsensusTypeMigrationCallCount() int

func (*ChannelCapabilities) ConsensusTypeMigrationCalls

func (fake *ChannelCapabilities) ConsensusTypeMigrationCalls(stub func() bool)

func (*ChannelCapabilities) ConsensusTypeMigrationReturns

func (fake *ChannelCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*ChannelCapabilities) ConsensusTypeMigrationReturnsOnCall

func (fake *ChannelCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool)

func (*ChannelCapabilities) Invocations

func (fake *ChannelCapabilities) Invocations() map[string][][]interface{}

func (*ChannelCapabilities) MSPVersion

func (fake *ChannelCapabilities) MSPVersion() msp.MSPVersion

func (*ChannelCapabilities) MSPVersionCallCount

func (fake *ChannelCapabilities) MSPVersionCallCount() int

func (*ChannelCapabilities) MSPVersionCalls

func (fake *ChannelCapabilities) MSPVersionCalls(stub func() msp.MSPVersion)

func (*ChannelCapabilities) MSPVersionReturns

func (fake *ChannelCapabilities) MSPVersionReturns(result1 msp.MSPVersion)

func (*ChannelCapabilities) MSPVersionReturnsOnCall

func (fake *ChannelCapabilities) MSPVersionReturnsOnCall(i int, result1 msp.MSPVersion)

func (*ChannelCapabilities) OrgSpecificOrdererEndpoints

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpoints() bool

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsCallCount

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCallCount() int

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsCalls

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCalls(stub func() bool)

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsReturns

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturns(result1 bool)

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsReturnsOnCall

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturnsOnCall(i int, result1 bool)

func (*ChannelCapabilities) Supported

func (fake *ChannelCapabilities) Supported() error

func (*ChannelCapabilities) SupportedCallCount

func (fake *ChannelCapabilities) SupportedCallCount() int

func (*ChannelCapabilities) SupportedCalls

func (fake *ChannelCapabilities) SupportedCalls(stub func() error)

func (*ChannelCapabilities) SupportedReturns

func (fake *ChannelCapabilities) SupportedReturns(result1 error)

func (*ChannelCapabilities) SupportedReturnsOnCall

func (fake *ChannelCapabilities) SupportedReturnsOnCall(i int, result1 error)

type ChannelConfig

type ChannelConfig struct {
	BlockDataHashingStructureWidthStub func() uint32

	CapabilitiesStub func() channelconfig.ChannelCapabilities

	HashingAlgorithmStub func() func(input []byte) []byte

	OrdererAddressesStub func() []string
	// contains filtered or unexported fields
}

func (*ChannelConfig) BlockDataHashingStructureWidth

func (fake *ChannelConfig) BlockDataHashingStructureWidth() uint32

func (*ChannelConfig) BlockDataHashingStructureWidthCallCount

func (fake *ChannelConfig) BlockDataHashingStructureWidthCallCount() int

func (*ChannelConfig) BlockDataHashingStructureWidthCalls

func (fake *ChannelConfig) BlockDataHashingStructureWidthCalls(stub func() uint32)

func (*ChannelConfig) BlockDataHashingStructureWidthReturns

func (fake *ChannelConfig) BlockDataHashingStructureWidthReturns(result1 uint32)

func (*ChannelConfig) BlockDataHashingStructureWidthReturnsOnCall

func (fake *ChannelConfig) BlockDataHashingStructureWidthReturnsOnCall(i int, result1 uint32)

func (*ChannelConfig) Capabilities

func (fake *ChannelConfig) Capabilities() channelconfig.ChannelCapabilities

func (*ChannelConfig) CapabilitiesCallCount

func (fake *ChannelConfig) CapabilitiesCallCount() int

func (*ChannelConfig) CapabilitiesCalls

func (fake *ChannelConfig) CapabilitiesCalls(stub func() channelconfig.ChannelCapabilities)

func (*ChannelConfig) CapabilitiesReturns

func (fake *ChannelConfig) CapabilitiesReturns(result1 channelconfig.ChannelCapabilities)

func (*ChannelConfig) CapabilitiesReturnsOnCall

func (fake *ChannelConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.ChannelCapabilities)

func (*ChannelConfig) HashingAlgorithm

func (fake *ChannelConfig) HashingAlgorithm() func(input []byte) []byte

func (*ChannelConfig) HashingAlgorithmCallCount

func (fake *ChannelConfig) HashingAlgorithmCallCount() int

func (*ChannelConfig) HashingAlgorithmCalls

func (fake *ChannelConfig) HashingAlgorithmCalls(stub func() func(input []byte) []byte)

func (*ChannelConfig) HashingAlgorithmReturns

func (fake *ChannelConfig) HashingAlgorithmReturns(result1 func(input []byte) []byte)

func (*ChannelConfig) HashingAlgorithmReturnsOnCall

func (fake *ChannelConfig) HashingAlgorithmReturnsOnCall(i int, result1 func(input []byte) []byte)

func (*ChannelConfig) Invocations

func (fake *ChannelConfig) Invocations() map[string][][]interface{}

func (*ChannelConfig) OrdererAddresses

func (fake *ChannelConfig) OrdererAddresses() []string

func (*ChannelConfig) OrdererAddressesCallCount

func (fake *ChannelConfig) OrdererAddressesCallCount() int

func (*ChannelConfig) OrdererAddressesCalls

func (fake *ChannelConfig) OrdererAddressesCalls(stub func() []string)

func (*ChannelConfig) OrdererAddressesReturns

func (fake *ChannelConfig) OrdererAddressesReturns(result1 []string)

func (*ChannelConfig) OrdererAddressesReturnsOnCall

func (fake *ChannelConfig) OrdererAddressesReturnsOnCall(i int, result1 []string)

type ConfigTXValidator

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
	// contains filtered or unexported fields
}

func (*ConfigTXValidator) ChannelID

func (fake *ConfigTXValidator) ChannelID() string

func (*ConfigTXValidator) ChannelIDCallCount

func (fake *ConfigTXValidator) ChannelIDCallCount() int

func (*ConfigTXValidator) ChannelIDCalls

func (fake *ConfigTXValidator) ChannelIDCalls(stub func() string)

func (*ConfigTXValidator) ChannelIDReturns

func (fake *ConfigTXValidator) ChannelIDReturns(result1 string)

func (*ConfigTXValidator) ChannelIDReturnsOnCall

func (fake *ConfigTXValidator) ChannelIDReturnsOnCall(i int, result1 string)

func (*ConfigTXValidator) ConfigProto

func (fake *ConfigTXValidator) ConfigProto() *common.Config

func (*ConfigTXValidator) ConfigProtoCallCount

func (fake *ConfigTXValidator) ConfigProtoCallCount() int

func (*ConfigTXValidator) ConfigProtoCalls

func (fake *ConfigTXValidator) ConfigProtoCalls(stub func() *common.Config)

func (*ConfigTXValidator) ConfigProtoReturns

func (fake *ConfigTXValidator) ConfigProtoReturns(result1 *common.Config)

func (*ConfigTXValidator) ConfigProtoReturnsOnCall

func (fake *ConfigTXValidator) ConfigProtoReturnsOnCall(i int, result1 *common.Config)

func (*ConfigTXValidator) Invocations

func (fake *ConfigTXValidator) Invocations() map[string][][]interface{}

func (*ConfigTXValidator) ProposeConfigUpdate

func (fake *ConfigTXValidator) ProposeConfigUpdate(arg1 *common.Envelope) (*common.ConfigEnvelope, error)

func (*ConfigTXValidator) ProposeConfigUpdateArgsForCall

func (fake *ConfigTXValidator) ProposeConfigUpdateArgsForCall(i int) *common.Envelope

func (*ConfigTXValidator) ProposeConfigUpdateCallCount

func (fake *ConfigTXValidator) ProposeConfigUpdateCallCount() int

func (*ConfigTXValidator) ProposeConfigUpdateCalls

func (fake *ConfigTXValidator) ProposeConfigUpdateCalls(stub func(*common.Envelope) (*common.ConfigEnvelope, error))

func (*ConfigTXValidator) ProposeConfigUpdateReturns

func (fake *ConfigTXValidator) ProposeConfigUpdateReturns(result1 *common.ConfigEnvelope, result2 error)

func (*ConfigTXValidator) ProposeConfigUpdateReturnsOnCall

func (fake *ConfigTXValidator) ProposeConfigUpdateReturnsOnCall(i int, result1 *common.ConfigEnvelope, result2 error)

func (*ConfigTXValidator) Sequence

func (fake *ConfigTXValidator) Sequence() uint64

func (*ConfigTXValidator) SequenceCallCount

func (fake *ConfigTXValidator) SequenceCallCount() int

func (*ConfigTXValidator) SequenceCalls

func (fake *ConfigTXValidator) SequenceCalls(stub func() uint64)

func (*ConfigTXValidator) SequenceReturns

func (fake *ConfigTXValidator) SequenceReturns(result1 uint64)

func (*ConfigTXValidator) SequenceReturnsOnCall

func (fake *ConfigTXValidator) SequenceReturnsOnCall(i int, result1 uint64)

func (*ConfigTXValidator) Validate

func (fake *ConfigTXValidator) Validate(arg1 *common.ConfigEnvelope) error

func (*ConfigTXValidator) ValidateArgsForCall

func (fake *ConfigTXValidator) ValidateArgsForCall(i int) *common.ConfigEnvelope

func (*ConfigTXValidator) ValidateCallCount

func (fake *ConfigTXValidator) ValidateCallCount() int

func (*ConfigTXValidator) ValidateCalls

func (fake *ConfigTXValidator) ValidateCalls(stub func(*common.ConfigEnvelope) error)

func (*ConfigTXValidator) ValidateReturns

func (fake *ConfigTXValidator) ValidateReturns(result1 error)

func (*ConfigTXValidator) ValidateReturnsOnCall

func (fake *ConfigTXValidator) ValidateReturnsOnCall(i int, result1 error)

type OrdererCapabilities

type OrdererCapabilities struct {
	ConsensusTypeMigrationStub func() bool

	ExpirationCheckStub func() bool

	PredictableChannelTemplateStub func() bool

	ResubmissionStub func() bool

	SupportedStub func() error

	UseChannelCreationPolicyAsAdminsStub func() bool
	// contains filtered or unexported fields
}

func (*OrdererCapabilities) ConsensusTypeMigration

func (fake *OrdererCapabilities) ConsensusTypeMigration() bool

func (*OrdererCapabilities) ConsensusTypeMigrationCallCount

func (fake *OrdererCapabilities) ConsensusTypeMigrationCallCount() int

func (*OrdererCapabilities) ConsensusTypeMigrationCalls

func (fake *OrdererCapabilities) ConsensusTypeMigrationCalls(stub func() bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturns

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) ExpirationCheck

func (fake *OrdererCapabilities) ExpirationCheck() bool

func (*OrdererCapabilities) ExpirationCheckCallCount

func (fake *OrdererCapabilities) ExpirationCheckCallCount() int

func (*OrdererCapabilities) ExpirationCheckCalls

func (fake *OrdererCapabilities) ExpirationCheckCalls(stub func() bool)

func (*OrdererCapabilities) ExpirationCheckReturns

func (fake *OrdererCapabilities) ExpirationCheckReturns(result1 bool)

func (*OrdererCapabilities) ExpirationCheckReturnsOnCall

func (fake *OrdererCapabilities) ExpirationCheckReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Invocations

func (fake *OrdererCapabilities) Invocations() map[string][][]interface{}

func (*OrdererCapabilities) PredictableChannelTemplate

func (fake *OrdererCapabilities) PredictableChannelTemplate() bool

func (*OrdererCapabilities) PredictableChannelTemplateCallCount

func (fake *OrdererCapabilities) PredictableChannelTemplateCallCount() int

func (*OrdererCapabilities) PredictableChannelTemplateCalls

func (fake *OrdererCapabilities) PredictableChannelTemplateCalls(stub func() bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturns

func (fake *OrdererCapabilities) PredictableChannelTemplateReturns(result1 bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturnsOnCall

func (fake *OrdererCapabilities) PredictableChannelTemplateReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Resubmission

func (fake *OrdererCapabilities) Resubmission() bool

func (*OrdererCapabilities) ResubmissionCallCount

func (fake *OrdererCapabilities) ResubmissionCallCount() int

func (*OrdererCapabilities) ResubmissionCalls

func (fake *OrdererCapabilities) ResubmissionCalls(stub func() bool)

func (*OrdererCapabilities) ResubmissionReturns

func (fake *OrdererCapabilities) ResubmissionReturns(result1 bool)

func (*OrdererCapabilities) ResubmissionReturnsOnCall

func (fake *OrdererCapabilities) ResubmissionReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Supported

func (fake *OrdererCapabilities) Supported() error

func (*OrdererCapabilities) SupportedCallCount

func (fake *OrdererCapabilities) SupportedCallCount() int

func (*OrdererCapabilities) SupportedCalls

func (fake *OrdererCapabilities) SupportedCalls(stub func() error)

func (*OrdererCapabilities) SupportedReturns

func (fake *OrdererCapabilities) SupportedReturns(result1 error)

func (*OrdererCapabilities) SupportedReturnsOnCall

func (fake *OrdererCapabilities) SupportedReturnsOnCall(i int, result1 error)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdmins

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdmins() bool

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount() int

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls(stub func() bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns(result1 bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall(i int, result1 bool)

type OrdererConfig

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
	// contains filtered or unexported fields
}

func (*OrdererConfig) BatchSize

func (fake *OrdererConfig) BatchSize() *orderer.BatchSize

func (*OrdererConfig) BatchSizeCallCount

func (fake *OrdererConfig) BatchSizeCallCount() int

func (*OrdererConfig) BatchSizeCalls

func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturns

func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturnsOnCall

func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)

func (*OrdererConfig) BatchTimeout

func (fake *OrdererConfig) BatchTimeout() time.Duration

func (*OrdererConfig) BatchTimeoutCallCount

func (fake *OrdererConfig) BatchTimeoutCallCount() int

func (*OrdererConfig) BatchTimeoutCalls

func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)

func (*OrdererConfig) BatchTimeoutReturns

func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)

func (*OrdererConfig) BatchTimeoutReturnsOnCall

func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*OrdererConfig) Capabilities

func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities

func (*OrdererConfig) CapabilitiesCallCount

func (fake *OrdererConfig) CapabilitiesCallCount() int

func (*OrdererConfig) CapabilitiesCalls

func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturns

func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturnsOnCall

func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) ConsensusMetadata

func (fake *OrdererConfig) ConsensusMetadata() []byte

func (*OrdererConfig) ConsensusMetadataCallCount

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls

func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)

func (*OrdererConfig) ConsensusMetadataReturns

func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)

func (*OrdererConfig) ConsensusMetadataReturnsOnCall

func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)

func (*OrdererConfig) ConsensusState

func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State

func (*OrdererConfig) ConsensusStateCallCount

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls

func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturns

func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturnsOnCall

func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusType

func (fake *OrdererConfig) ConsensusType() string

func (*OrdererConfig) ConsensusTypeCallCount

func (fake *OrdererConfig) ConsensusTypeCallCount() int

func (*OrdererConfig) ConsensusTypeCalls

func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)

func (*OrdererConfig) ConsensusTypeReturns

func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)

func (*OrdererConfig) ConsensusTypeReturnsOnCall

func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)

func (*OrdererConfig) Invocations

func (fake *OrdererConfig) Invocations() map[string][][]interface{}

func (*OrdererConfig) KafkaBrokers

func (fake *OrdererConfig) KafkaBrokers() []string

func (*OrdererConfig) KafkaBrokersCallCount

func (fake *OrdererConfig) KafkaBrokersCallCount() int

func (*OrdererConfig) KafkaBrokersCalls

func (fake *OrdererConfig) KafkaBrokersCalls(stub func() []string)

func (*OrdererConfig) KafkaBrokersReturns

func (fake *OrdererConfig) KafkaBrokersReturns(result1 []string)

func (*OrdererConfig) KafkaBrokersReturnsOnCall

func (fake *OrdererConfig) KafkaBrokersReturnsOnCall(i int, result1 []string)

func (*OrdererConfig) MaxChannelsCount

func (fake *OrdererConfig) MaxChannelsCount() uint64

func (*OrdererConfig) MaxChannelsCountCallCount

func (fake *OrdererConfig) MaxChannelsCountCallCount() int

func (*OrdererConfig) MaxChannelsCountCalls

func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)

func (*OrdererConfig) MaxChannelsCountReturns

func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)

func (*OrdererConfig) MaxChannelsCountReturnsOnCall

func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)

func (*OrdererConfig) Organizations

func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg

func (*OrdererConfig) OrganizationsCallCount

func (fake *OrdererConfig) OrganizationsCallCount() int

func (*OrdererConfig) OrganizationsCalls

func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturns

func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturnsOnCall

func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)

type Policy

type Policy struct {
	EvaluateIdentitiesStub func([]msp.Identity) error

	EvaluateSignedDataStub func([]*protoutil.SignedData) error
	// contains filtered or unexported fields
}

func (*Policy) EvaluateIdentities

func (fake *Policy) EvaluateIdentities(arg1 []msp.Identity) error

func (*Policy) EvaluateIdentitiesArgsForCall

func (fake *Policy) EvaluateIdentitiesArgsForCall(i int) []msp.Identity

func (*Policy) EvaluateIdentitiesCallCount

func (fake *Policy) EvaluateIdentitiesCallCount() int

func (*Policy) EvaluateIdentitiesCalls

func (fake *Policy) EvaluateIdentitiesCalls(stub func([]msp.Identity) error)

func (*Policy) EvaluateIdentitiesReturns

func (fake *Policy) EvaluateIdentitiesReturns(result1 error)

func (*Policy) EvaluateIdentitiesReturnsOnCall

func (fake *Policy) EvaluateIdentitiesReturnsOnCall(i int, result1 error)

func (*Policy) EvaluateSignedData

func (fake *Policy) EvaluateSignedData(arg1 []*protoutil.SignedData) error

func (*Policy) EvaluateSignedDataArgsForCall

func (fake *Policy) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData

func (*Policy) EvaluateSignedDataCallCount

func (fake *Policy) EvaluateSignedDataCallCount() int

func (*Policy) EvaluateSignedDataCalls

func (fake *Policy) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error)

func (*Policy) EvaluateSignedDataReturns

func (fake *Policy) EvaluateSignedDataReturns(result1 error)

func (*Policy) EvaluateSignedDataReturnsOnCall

func (fake *Policy) EvaluateSignedDataReturnsOnCall(i int, result1 error)

func (*Policy) Invocations

func (fake *Policy) Invocations() map[string][][]interface{}

type PolicyManager

type PolicyManager struct {
	GetPolicyStub func(string) (policies.Policy, bool)

	ManagerStub func([]string) (policies.Manager, bool)
	// contains filtered or unexported fields
}

func (*PolicyManager) GetPolicy

func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)

func (*PolicyManager) GetPolicyArgsForCall

func (fake *PolicyManager) GetPolicyArgsForCall(i int) string

func (*PolicyManager) GetPolicyCallCount

func (fake *PolicyManager) GetPolicyCallCount() int

func (*PolicyManager) GetPolicyCalls

func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))

func (*PolicyManager) GetPolicyReturns

func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)

func (*PolicyManager) GetPolicyReturnsOnCall

func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)

func (*PolicyManager) Invocations

func (fake *PolicyManager) Invocations() map[string][][]interface{}

func (*PolicyManager) Manager

func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)

func (*PolicyManager) ManagerArgsForCall

func (fake *PolicyManager) ManagerArgsForCall(i int) []string

func (*PolicyManager) ManagerCallCount

func (fake *PolicyManager) ManagerCallCount() int

func (*PolicyManager) ManagerCalls

func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))

func (*PolicyManager) ManagerReturns

func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)

func (*PolicyManager) ManagerReturnsOnCall

func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool)

type Resources

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
	// contains filtered or unexported fields
}

func (*Resources) ApplicationConfig

func (fake *Resources) ApplicationConfig() (channelconfig.Application, bool)

func (*Resources) ApplicationConfigCallCount

func (fake *Resources) ApplicationConfigCallCount() int

func (*Resources) ApplicationConfigCalls

func (fake *Resources) ApplicationConfigCalls(stub func() (channelconfig.Application, bool))

func (*Resources) ApplicationConfigReturns

func (fake *Resources) ApplicationConfigReturns(result1 channelconfig.Application, result2 bool)

func (*Resources) ApplicationConfigReturnsOnCall

func (fake *Resources) ApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)

func (*Resources) ChannelConfig

func (fake *Resources) ChannelConfig() channelconfig.Channel

func (*Resources) ChannelConfigCallCount

func (fake *Resources) ChannelConfigCallCount() int

func (*Resources) ChannelConfigCalls

func (fake *Resources) ChannelConfigCalls(stub func() channelconfig.Channel)

func (*Resources) ChannelConfigReturns

func (fake *Resources) ChannelConfigReturns(result1 channelconfig.Channel)

func (*Resources) ChannelConfigReturnsOnCall

func (fake *Resources) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)

func (*Resources) ConfigtxValidator

func (fake *Resources) ConfigtxValidator() configtx.Validator

func (*Resources) ConfigtxValidatorCallCount

func (fake *Resources) ConfigtxValidatorCallCount() int

func (*Resources) ConfigtxValidatorCalls

func (fake *Resources) ConfigtxValidatorCalls(stub func() configtx.Validator)

func (*Resources) ConfigtxValidatorReturns

func (fake *Resources) ConfigtxValidatorReturns(result1 configtx.Validator)

func (*Resources) ConfigtxValidatorReturnsOnCall

func (fake *Resources) ConfigtxValidatorReturnsOnCall(i int, result1 configtx.Validator)

func (*Resources) ConsortiumsConfig

func (fake *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)

func (*Resources) ConsortiumsConfigCallCount

func (fake *Resources) ConsortiumsConfigCallCount() int

func (*Resources) ConsortiumsConfigCalls

func (fake *Resources) ConsortiumsConfigCalls(stub func() (channelconfig.Consortiums, bool))

func (*Resources) ConsortiumsConfigReturns

func (fake *Resources) ConsortiumsConfigReturns(result1 channelconfig.Consortiums, result2 bool)

func (*Resources) ConsortiumsConfigReturnsOnCall

func (fake *Resources) ConsortiumsConfigReturnsOnCall(i int, result1 channelconfig.Consortiums, result2 bool)

func (*Resources) Invocations

func (fake *Resources) Invocations() map[string][][]interface{}

func (*Resources) MSPManager

func (fake *Resources) MSPManager() msp.MSPManager

func (*Resources) MSPManagerCallCount

func (fake *Resources) MSPManagerCallCount() int

func (*Resources) MSPManagerCalls

func (fake *Resources) MSPManagerCalls(stub func() msp.MSPManager)

func (*Resources) MSPManagerReturns

func (fake *Resources) MSPManagerReturns(result1 msp.MSPManager)

func (*Resources) MSPManagerReturnsOnCall

func (fake *Resources) MSPManagerReturnsOnCall(i int, result1 msp.MSPManager)

func (*Resources) OrdererConfig

func (fake *Resources) OrdererConfig() (channelconfig.Orderer, bool)

func (*Resources) OrdererConfigCallCount

func (fake *Resources) OrdererConfigCallCount() int

func (*Resources) OrdererConfigCalls

func (fake *Resources) OrdererConfigCalls(stub func() (channelconfig.Orderer, bool))

func (*Resources) OrdererConfigReturns

func (fake *Resources) OrdererConfigReturns(result1 channelconfig.Orderer, result2 bool)

func (*Resources) OrdererConfigReturnsOnCall

func (fake *Resources) OrdererConfigReturnsOnCall(i int, result1 channelconfig.Orderer, result2 bool)

func (*Resources) PolicyManager

func (fake *Resources) PolicyManager() policies.Manager

func (*Resources) PolicyManagerCallCount

func (fake *Resources) PolicyManagerCallCount() int

func (*Resources) PolicyManagerCalls

func (fake *Resources) PolicyManagerCalls(stub func() policies.Manager)

func (*Resources) PolicyManagerReturns

func (fake *Resources) PolicyManagerReturns(result1 policies.Manager)

func (*Resources) PolicyManagerReturnsOnCall

func (fake *Resources) PolicyManagerReturnsOnCall(i int, result1 policies.Manager)

func (*Resources) ValidateNew

func (fake *Resources) ValidateNew(arg1 channelconfig.Resources) error

func (*Resources) ValidateNewArgsForCall

func (fake *Resources) ValidateNewArgsForCall(i int) channelconfig.Resources

func (*Resources) ValidateNewCallCount

func (fake *Resources) ValidateNewCallCount() int

func (*Resources) ValidateNewCalls

func (fake *Resources) ValidateNewCalls(stub func(channelconfig.Resources) error)

func (*Resources) ValidateNewReturns

func (fake *Resources) ValidateNewReturns(result1 error)

func (*Resources) ValidateNewReturnsOnCall

func (fake *Resources) ValidateNewReturnsOnCall(i int, result1 error)

type SignerSerializer

type SignerSerializer struct {
	SerializeStub func() ([]byte, error)

	SignStub func([]byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*SignerSerializer) Invocations

func (fake *SignerSerializer) Invocations() map[string][][]interface{}

func (*SignerSerializer) Serialize

func (fake *SignerSerializer) Serialize() ([]byte, error)

func (*SignerSerializer) SerializeCallCount

func (fake *SignerSerializer) SerializeCallCount() int

func (*SignerSerializer) SerializeCalls

func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))

func (*SignerSerializer) SerializeReturns

func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)

func (*SignerSerializer) SerializeReturnsOnCall

func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignerSerializer) Sign

func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)

func (*SignerSerializer) SignArgsForCall

func (fake *SignerSerializer) SignArgsForCall(i int) []byte

func (*SignerSerializer) SignCallCount

func (fake *SignerSerializer) SignCallCount() int

func (*SignerSerializer) SignCalls

func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))

func (*SignerSerializer) SignReturns

func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)

func (*SignerSerializer) SignReturnsOnCall

func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL