Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + const ACLsKey + const AdminsPolicyKey + const AnchorPeersKey + const ApplicationGroupKey + const BatchSizeKey + const BatchTimeoutKey + const BlockDataHashingStructureKey + const CapabilitiesKey + const ChannelCreationPolicyKey + const ChannelGroupKey + const ChannelRestrictionsKey + const ConsensusTypeKey + const ConsortiumKey + const ConsortiumsGroupKey + const EndpointsKey + const HashingAlgorithmKey + const KafkaBrokersKey + const MSPKey + const OrdererAddressesKey + const OrdererGroupKey + const ReadersPolicyKey + const RootGroupKey + const WritersPolicyKey + func DeserializeProtoValuesFromGroup(group *cb.ConfigGroup, protosStructs ...interface{}) error + func LogSanityChecks(res Resources) + type Application interface + APIPolicyMapper func() PolicyMapper + Capabilities func() ApplicationCapabilities + Organizations func() map[string]ApplicationOrg + type ApplicationCapabilities interface + ACLs func() bool + CollectionUpgrade func() bool + FabToken func() bool + ForbidDuplicateTXIdInBlock func() bool + KeyLevelEndorsement func() bool + MetadataLifecycle func() bool + PrivateChannelData func() bool + StorePvtDataOfInvalidTx func() bool + Supported func() error + V1_1Validation func() bool + V1_2Validation func() bool + V1_3Validation func() bool + type ApplicationConfig struct + func NewApplicationConfig(appGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ApplicationConfig, error) + func (ac *ApplicationConfig) APIPolicyMapper() PolicyMapper + func (ac *ApplicationConfig) Capabilities() ApplicationCapabilities + func (ac *ApplicationConfig) Organizations() map[string]ApplicationOrg + type ApplicationOrg interface + AnchorPeers func() []*pb.AnchorPeer + type ApplicationOrgConfig struct + func NewApplicationOrgConfig(id string, orgGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ApplicationOrgConfig, error) + func (aoc *ApplicationOrgConfig) Validate() error + func (aog *ApplicationOrgConfig) AnchorPeers() []*pb.AnchorPeer + type ApplicationOrgProtos struct + AnchorPeers *pb.AnchorPeers + type ApplicationProtos struct + ACLs *pb.ACLs + Capabilities *cb.Capabilities + type Bundle struct + func NewBundle(channelID string, config *cb.Config) (*Bundle, error) + func NewBundleFromEnvelope(env *cb.Envelope) (*Bundle, error) + func (b *Bundle) ApplicationConfig() (Application, bool) + func (b *Bundle) ChannelConfig() Channel + func (b *Bundle) ConfigtxValidator() configtx.Validator + func (b *Bundle) ConsortiumsConfig() (Consortiums, bool) + func (b *Bundle) MSPManager() msp.MSPManager + func (b *Bundle) OrdererConfig() (Orderer, bool) + func (b *Bundle) PolicyManager() policies.Manager + func (b *Bundle) ValidateNew(nb Resources) error + type BundleActor func(bundle *Bundle) + type BundleSource struct + func NewBundleSource(bundle *Bundle, callbacks ...BundleActor) *BundleSource + func (bs *BundleSource) ApplicationConfig() (Application, bool) + func (bs *BundleSource) ChannelConfig() Channel + func (bs *BundleSource) ConfigtxValidator() configtx.Validator + func (bs *BundleSource) ConsortiumsConfig() (Consortiums, bool) + func (bs *BundleSource) MSPManager() msp.MSPManager + func (bs *BundleSource) OrdererConfig() (Orderer, bool) + func (bs *BundleSource) PolicyManager() policies.Manager + func (bs *BundleSource) StableBundle() *Bundle + func (bs *BundleSource) Update(newBundle *Bundle) + func (bs *BundleSource) ValidateNew(resources Resources) error + type Channel interface + BlockDataHashingStructureWidth func() uint32 + Capabilities func() ChannelCapabilities + HashingAlgorithm func() func(input []byte) []byte + OrdererAddresses func() []string + type ChannelCapabilities interface + ConsensusTypeMigration func() bool + MSPVersion func() msp.MSPVersion + OrgSpecificOrdererEndpoints func() bool + Supported func() error + type ChannelConfig struct + func NewChannelConfig(channelGroup *cb.ConfigGroup) (*ChannelConfig, error) + func (cc *ChannelConfig) ApplicationConfig() *ApplicationConfig + func (cc *ChannelConfig) BlockDataHashingStructureWidth() uint32 + func (cc *ChannelConfig) Capabilities() ChannelCapabilities + func (cc *ChannelConfig) ConsortiumName() string + func (cc *ChannelConfig) ConsortiumsConfig() *ConsortiumsConfig + func (cc *ChannelConfig) HashingAlgorithm() func(input []byte) []byte + func (cc *ChannelConfig) MSPManager() msp.MSPManager + func (cc *ChannelConfig) OrdererAddresses() []string + func (cc *ChannelConfig) OrdererConfig() *OrdererConfig + func (cc *ChannelConfig) Validate(channelCapabilities ChannelCapabilities) error + type ChannelProtos struct + BlockDataHashingStructure *cb.BlockDataHashingStructure + Capabilities *cb.Capabilities + Consortium *cb.Consortium + HashingAlgorithm *cb.HashingAlgorithm + OrdererAddresses *cb.OrdererAddresses + type ChannelValues interface + BlockDataHashingStructureWidth func() uint32 + HashingAlgorithm func() func(input []byte) []byte + OrdererAddresses func() []string + type ConfigValue interface + Key func() string + Value func() proto.Message + type Consortium interface + ChannelCreationPolicy func() *cb.Policy + Organizations func() map[string]Org + type ConsortiumConfig struct + func NewConsortiumConfig(consortiumGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ConsortiumConfig, error) + func (cc *ConsortiumConfig) ChannelCreationPolicy() *cb.Policy + func (cc *ConsortiumConfig) Organizations() map[string]Org + type ConsortiumProtos struct + ChannelCreationPolicy *cb.Policy + type Consortiums interface + Consortiums func() map[string]Consortium + type ConsortiumsConfig struct + func NewConsortiumsConfig(consortiumsGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ConsortiumsConfig, error) + func (cc *ConsortiumsConfig) Consortiums() map[string]Consortium + type MSPConfigHandler struct + func NewMSPConfigHandler(mspVersion msp.MSPVersion) *MSPConfigHandler + func (bh *MSPConfigHandler) CreateMSPManager() (msp.MSPManager, error) + func (bh *MSPConfigHandler) ProposeMSP(mspConfig *mspprotos.MSPConfig) (msp.MSP, error) + type Orderer interface + BatchSize func() *ab.BatchSize + BatchTimeout func() time.Duration + Capabilities func() OrdererCapabilities + ConsensusMetadata func() []byte + ConsensusState func() ab.ConsensusType_State + ConsensusType func() string + KafkaBrokers func() []string + MaxChannelsCount func() uint64 + Organizations func() map[string]OrdererOrg + type OrdererCapabilities interface + ConsensusTypeMigration func() bool + ExpirationCheck func() bool + PredictableChannelTemplate func() bool + Resubmission func() bool + Supported func() error + type OrdererConfig struct + func NewOrdererConfig(ordererGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler, ...) (*OrdererConfig, error) + func (oc *OrdererConfig) BatchSize() *ab.BatchSize + func (oc *OrdererConfig) BatchTimeout() time.Duration + func (oc *OrdererConfig) Capabilities() OrdererCapabilities + func (oc *OrdererConfig) ConsensusMetadata() []byte + func (oc *OrdererConfig) ConsensusState() ab.ConsensusType_State + func (oc *OrdererConfig) ConsensusType() string + func (oc *OrdererConfig) KafkaBrokers() []string + func (oc *OrdererConfig) MaxChannelsCount() uint64 + func (oc *OrdererConfig) Organizations() map[string]OrdererOrg + func (oc *OrdererConfig) Validate() error + type OrdererOrg interface + Endpoints func() []string + type OrdererOrgConfig struct + func NewOrdererOrgConfig(orgName string, orgGroup *cb.ConfigGroup, mspConfigHandler *MSPConfigHandler, ...) (*OrdererOrgConfig, error) + func (oc *OrdererOrgConfig) Endpoints() []string + func (ooc *OrdererOrgConfig) Validate() error + type OrdererOrgProtos struct + Endpoints *cb.OrdererAddresses + type OrdererProtos struct + BatchSize *ab.BatchSize + BatchTimeout *ab.BatchTimeout + Capabilities *cb.Capabilities + ChannelRestrictions *ab.ChannelRestrictions + ConsensusType *ab.ConsensusType + KafkaBrokers *ab.KafkaBrokers + type Org interface + MSPID func() string + Name func() string + type OrganizationConfig struct + func NewOrganizationConfig(name string, orgGroup *cb.ConfigGroup, mspConfigHandler *MSPConfigHandler) (*OrganizationConfig, error) + func (oc *OrganizationConfig) MSPID() string + func (oc *OrganizationConfig) Name() string + func (oc *OrganizationConfig) Validate() error + type OrganizationProtos struct + MSP *mspprotos.MSPConfig + type PolicyMapper interface + PolicyRefForAPI func(apiName string) string + type Resources interface + ApplicationConfig func() (Application, bool) + ChannelConfig func() Channel + ConfigtxValidator func() configtx.Validator + ConsortiumsConfig func() (Consortiums, bool) + MSPManager func() msp.MSPManager + OrdererConfig func() (Orderer, bool) + PolicyManager func() policies.Manager + ValidateNew func(resources Resources) error + type StandardConfigValue struct + func ACLValues(acls map[string]string) *StandardConfigValue + func AnchorPeersValue(anchorPeers []*pb.AnchorPeer) *StandardConfigValue + func BatchSizeValue(maxMessages, absoluteMaxBytes, preferredMaxBytes uint32) *StandardConfigValue + func BatchTimeoutValue(timeout string) *StandardConfigValue + func BlockDataHashingStructureValue() *StandardConfigValue + func CapabilitiesValue(capabilities map[string]bool) *StandardConfigValue + func ChannelCreationPolicyValue(policy *cb.Policy) *StandardConfigValue + func ChannelRestrictionsValue(maxChannelCount uint64) *StandardConfigValue + func ConsensusTypeValue(consensusType string, consensusMetadata []byte) *StandardConfigValue + func ConsortiumValue(name string) *StandardConfigValue + func EndpointsValue(addresses []string) *StandardConfigValue + func HashingAlgorithmValue() *StandardConfigValue + func KafkaBrokersValue(brokers []string) *StandardConfigValue + func MSPValue(mspDef *mspprotos.MSPConfig) *StandardConfigValue + func OrdererAddressesValue(addresses []string) *StandardConfigValue + func (scv *StandardConfigValue) Key() string + func (scv *StandardConfigValue) Value() proto.Message + type StandardValues struct + func NewStandardValues(protosStructs ...interface{}) (*StandardValues, error) + func (sv *StandardValues) Deserialize(key string, value []byte) (proto.Message, error) Incompatible versions in this module v2.0.1+incompatible Feb 26, 2020