{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Types\n\n```go\ntype Channel struct {\n\t// HashingAlgorithmVal is returned as the result of HashingAlgorithm() if set\n\tHashingAlgorithmVal func([]byte) []byte\n\t// BlockDataHashingStructureWidthVal is returned as the result of BlockDataHashingStructureWidth()\n\tBlockDataHashingStructureWidthVal uint32\n\t// OrdererAddressesVal is returned as the result of OrdererAddresses()\n\tOrdererAddressesVal []string\n\t// CapabilitiesVal is returned as the result of Capabilities()\n\tCapabilitiesVal channelconfig.ChannelCapabilities\n}\n```\nChannel is a mock implementation of config.Channel\n\n```go\nfunc (scm *Channel) BlockDataHashingStructureWidth() uint32\n```\nBlockDataHashingStructureWidth returns the BlockDataHashingStructureWidthVal\n\n```go\nfunc (scm *Channel) Capabilities() channelconfig.ChannelCapabilities\n```\nCapabilities returns CapabilitiesVal\n\n```go\nfunc (scm *Channel) HashingAlgorithm() func([]byte) []byte\n```\nHashingAlgorithm returns the HashingAlgorithmVal if set, otherwise a fake simple hash function\n\n```go\nfunc (scm *Channel) OrdererAddresses() []string\n```\nOrdererAddresses returns the OrdererAddressesVal\n\n```go\ntype ChannelCapabilities struct {\n\t// SupportedErr is returned by Supported()\n\tSupportedErr error\n\n\t// MSPVersionVal is returned by MSPVersion()\n\tMSPVersionVal msp.MSPVersion\n\n\tConsensusTypeMigrationVal bool\n}\n```\nChannelCapabilities mocks the channelconfig.ChannelCapabilities interface\n\n```go\nfunc (cc *ChannelCapabilities) ConsensusTypeMigration() bool\n```\nConsensusTypeMigration returns ConsensusTypeMigrationVal\n\n```go\nfunc (cc *ChannelCapabilities) MSPVersion() msp.MSPVersion\n```\nMSPVersion returns MSPVersionVal\n\n```go\nfunc (cc *ChannelCapabilities) OrgSpecificOrdererEndpoints() bool\n```\n\n```go\nfunc (cc *ChannelCapabilities) Supported() error\n```\nSupported returns SupportedErr\n\n```go\ntype MockApplication struct {\n\tCapabilitiesRv channelconfig.ApplicationCapabilities\n\tAcls           map[string]string\n}\n```\n\n```go\nfunc (m *MockApplication) APIPolicyMapper() channelconfig.PolicyMapper\n```\nReturns the mock which itself is a provider\n\n```go\nfunc (m *MockApplication) Capabilities() channelconfig.ApplicationCapabilities\n```\n\n```go\nfunc (m *MockApplication) Organizations() map[string]channelconfig.ApplicationOrg\n```\n\n```go\nfunc (m *MockApplication) PolicyRefForAPI(apiName string) string\n```\n\n```go\ntype MockApplicationCapabilities struct {\n\tSupportedRv                  error\n\tForbidDuplicateTXIdInBlockRv bool\n\tACLsRv                       bool\n\tPrivateChannelDataRv         bool\n\tCollectionUpgradeRv          bool\n\tV1_1ValidationRv             bool\n\tV1_2ValidationRv             bool\n\tMetadataLifecycleRv          bool\n\tKeyLevelEndorsementRv        bool\n\tV1_3ValidationRv             bool\n\tFabTokenRv                   bool\n\tStorePvtDataOfInvalidTxRv    bool\n}\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) ACLs() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) CollectionUpgrade() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) FabToken() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) KeyLevelEndorsement() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) MetadataLifecycle() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) PrivateChannelData() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) StorePvtDataOfInvalidTx() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) Supported() error\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) V1_1Validation() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) V1_2Validation() bool\n```\n\n```go\nfunc (mac *MockApplicationCapabilities) V1_3Validation() bool\n```\n\n```go\ntype Orderer struct {\n\t// ConsensusTypeVal is returned as the result of ConsensusType()\n\tConsensusTypeVal string\n\t// ConsensusMetadataVal is returned as the result of ConsensusMetadata()\n\tConsensusMetadataVal []byte\n\t// ConsensusTypeStateVal is returned as the result of ConsensusState()\n\tConsensusTypeStateVal ab.ConsensusType_State\n\n\t// BatchSizeVal is returned as the result of BatchSize()\n\tBatchSizeVal *ab.BatchSize\n\t// BatchTimeoutVal is returned as the result of BatchTimeout()\n\tBatchTimeoutVal time.Duration\n\t// KafkaBrokersVal is returned as the result of KafkaBrokers()\n\tKafkaBrokersVal []string\n\t// MaxChannelsCountVal is returns as the result of MaxChannelsCount()\n\tMaxChannelsCountVal uint64\n\t// OrganizationsVal is returned as the result of Organizations()\n\tOrganizationsVal map[string]channelconfig.OrdererOrg\n\t// CapabilitiesVal is returned as the result of Capabilities()\n\tCapabilitiesVal channelconfig.OrdererCapabilities\n}\n```\nOrderer is a mock implementation of channelconfig.Orderer\n\n```go\nfunc (o *Orderer) BatchSize() *ab.BatchSize\n```\nBatchSize returns the BatchSizeVal\n\n```go\nfunc (o *Orderer) BatchTimeout() time.Duration\n```\nBatchTimeout returns the BatchTimeoutVal\n\n```go\nfunc (o *Orderer) Capabilities() channelconfig.OrdererCapabilities\n```\nCapabilities returns CapabilitiesVal\n\n```go\nfunc (o *Orderer) ConsensusMetadata() []byte\n```\nConsensusMetadata returns the ConsensusMetadataVal\n\n```go\nfunc (o *Orderer) ConsensusState() ab.ConsensusType_State\n```\nConsensusState returns the ConsensusTypeStateVal\n\n```go\nfunc (o *Orderer) ConsensusType() string\n```\nConsensusType returns the ConsensusTypeVal\n\n```go\nfunc (o *Orderer) KafkaBrokers() []string\n```\nKafkaBrokers returns the KafkaBrokersVal\n\n```go\nfunc (o *Orderer) MaxChannelsCount() uint64\n```\nMaxChannelsCount returns the MaxChannelsCountVal\n\n```go\nfunc (o *Orderer) Organizations() map[string]channelconfig.OrdererOrg\n```\nOrganizations returns OrganizationsVal\n\n```go\ntype OrdererCapabilities struct {\n\t// SupportedErr is returned by Supported()\n\tSupportedErr error\n\n\t// PredictableChannelTemplateVal is returned by PredictableChannelTemplate()\n\tPredictableChannelTemplateVal bool\n\n\t// ResubmissionVal is returned by Resubmission()\n\tResubmissionVal bool\n\n\t// ExpirationVal is returned by ExpirationCheck()\n\tExpirationVal bool\n\n\tConsensusTypeMigrationVal bool\n}\n```\nOrdererCapabilities mocks the channelconfig.OrdererCapabilities interface\n\n```go\nfunc (oc *OrdererCapabilities) ConsensusTypeMigration() bool\n```\nConsensusTypeMigration checks whether the orderer permits a consensus-type migration.\n\n```go\nfunc (oc *OrdererCapabilities) ExpirationCheck() bool\n```\nExpirationCheck specifies whether the orderer checks for identity expiration checks when validating messages\n\n```go\nfunc (oc *OrdererCapabilities) PredictableChannelTemplate() bool\n```\nPredictableChannelTemplate returns PredictableChannelTemplateVal\n\n```go\nfunc (oc *OrdererCapabilities) Resubmission() bool\n```\nResubmission returns ResubmissionVal\n\n```go\nfunc (oc *OrdererCapabilities) Supported() error\n```\nSupported returns SupportedErr\n\n```go\ntype Resources struct {\n\t// ConfigtxValidatorVal is returned as the result of ConfigtxValidator\n\tConfigtxValidatorVal configtx.Validator\n\n\t// PolicyManagerVal is returned as the result of PolicyManager()\n\tPolicyManagerVal policies.Manager\n\n\t// ChannelConfigVal is returned as the result of ChannelConfig()\n\tChannelConfigVal channelconfig.Channel\n\n\t// OrdererConfigVal is returned as the result of OrdererConfig()\n\tOrdererConfigVal channelconfig.Orderer\n\n\t// ApplicationConfigVal is returned as the result of ApplicationConfig()\n\tApplicationConfigVal channelconfig.Application\n\n\t// ConsortiumsConfigVal is returned as the result of ConsortiumsConfig()\n\tConsortiumsConfigVal channelconfig.Consortiums\n\n\t// MSPManagerVal is returned as the result of MSPManager()\n\tMSPManagerVal msp.MSPManager\n\n\t// ValidateNewErr is returned as the result of ValidateNew\n\tValidateNewErr error\n}\n```\n\n```go\nfunc (r *Resources) ApplicationConfig() (channelconfig.Application, bool)\n```\nReturns the ApplicationConfigVal\n\n```go\nfunc (r *Resources) ChannelConfig() channelconfig.Channel\n```\nReturns the ChannelConfigVal\n\n```go\nfunc (r *Resources) ConfigtxValidator() configtx.Validator\n```\nConfigtxMangaer returns ConfigtxValidatorVal\n\n```go\nfunc (r *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)\n```\n\n```go\nfunc (r *Resources) MSPManager() msp.MSPManager\n```\nReturns the MSPManagerVal\n\n```go\nfunc (r *Resources) OrdererConfig() (channelconfig.Orderer, bool)\n```\nReturns the OrdererConfigVal\n\n```go\nfunc (r *Resources) PolicyManager() policies.Manager\n```\nReturns the PolicyManagerVal\n\n```go\nfunc (r *Resources) ValidateNew(res channelconfig.Resources) error\n```\nValidateNew returns ValidateNewErr\n\n","path":"github.com/eric-erki/https-hyperledger.org/common/mocks/config","name":"config","synopsis":"","isRedistributable":true}
