package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
ACLValues returns the config definition for an applications resources based ACL definitions.
AnchorPeersValue returns the config definition for an org's anchor peers.
BatchSizeValue returns the config definition for the orderer batch size.
BatchTimeoutValue returns the config definition for the orderer batch timeout.
BlockDataHashingStructureValue returns the only currently valid block data hashing structure.
CapabilitiesValue returns the config definition for a set of capabilities.
ChannelCreationPolicyValue returns the config definition for a consortium's channel creation policy It is a value for the /Channel/Consortiums/*/*.
ChannelRestrictionsValue returns the config definition for the orderer channel restrictions.
ConsensusTypeValue returns the config definition for the orderer consensus type.
ConsortiumValue returns the config definition for the consortium name.
DeserializeProtoValuesFromGroup deserializes the value for all values in a config group.
EndpointsValue returns the config definition for the orderer addresses at an org scoped level.
ExtractMSPIDsForApplicationOrgs extracts MSPIDs for application organizations.
HashingAlgorithmValue returns the default hashing algorithm.
MarshalBFTOptions serializes smartbft options.
MarshalEtcdRaftMetadata serializes etcd RAFT metadata.
MSPValue returns the config definition for an MSP.
NewApplicationConfig creates config from an Application config group.
NewApplicationOrgConfig creates a new config for an application org.
NewBundle creates a new immutable bundle of configuration.
NewBundleFromEnvelope wraps the NewBundle function, extracting the needed information from a full configtx.
NewBundleSource creates a new BundleSource with an initial Bundle value The callbacks will be invoked whenever the Update method is called for the BundleSource.
NewChannelConfig creates a new ChannelConfig.
NewConsortiumConfig creates a new instance of the consortium's config.
NewConsortiumsConfig creates a new instance of the consoritums config.
NewOrdererConfig creates a new instance of the orderer config.
NewOrdererOrgConfig returns an orderer org config built from the given ConfigGroup.
NewOrganizationConfig creates a new config for an organization.
NewStandardValues accepts a structure which must contain only protobuf message types.
OrdererAddressesValue returns the a config definition for the orderer addresses.
ValidateCapabilities validates whether the peer can meet the capabilities requirement in the given config block.
# Constants
ACLsKey is the name of the ACLs config.
AdminsPolicyKey is the key used for the read policy.
AnchorPeersKey is the key name for the AnchorPeers ConfigValue.
ApplicationGroupKey is the group name for the Application config.
BatchSizeKey is the cb.ConfigItem type key name for the BatchSize message.
BatchTimeoutKey is the cb.ConfigItem type key name for the BatchTimeout message.
BlockDataHashingStructureKey is the cb.ConfigItem type key name for the BlockDataHashingStructure message.
CapabilitiesKey is the name of the key which refers to capabilities, it appears at the channel, application, and orderer levels and this constant is used for all three.
ChannelCreationPolicyKey is the key used in the consortium config to denote the policy to be used in evaluating whether a channel creation request is authorized.
ChannelGroupKey is the name of the channel group.
ChannelRestrictionsKey is the key name for the ChannelRestrictions message.
ConsensusTypeKey is the cb.ConfigItem type key name for the ConsensusType message.
ConsortiumKey is the key for the cb.ConfigValue for the Consortium message.
ConsortiumsGroupKey is the group name for the consortiums config.
EndpointsKey is the cb.COnfigValue key name for the Endpoints message in the OrdererOrgGroup.
HashingAlgorithmKey is the cb.ConfigItem type key name for the HashingAlgorithm message.
MSPKey is the key for the MSP definition in orderer groups.
OrdererAddressesKey is the cb.ConfigItem type key name for the OrdererAddresses message.
OrdererGroupKey is the group name for the orderer config.
Channel config keys.
ReadersPolicyKey is the key used for the read policy.
RootGroupKey is the key for namespacing the channel config, especially for policy evaluation.
WritersPolicyKey is the key used for the read policy.
# Structs
ApplicationConfig implements the Application interface.
ApplicationOrgConfig defines the configuration for an application org.
ApplicationOrgProtos are deserialized from the config.
ApplicationProtos is used as the source of the ApplicationConfig.
Bundle is a collection of resources which will always have a consistent view of the channel configuration.
BundleSource stores a reference to the current configuration bundle It also provides a method to update this bundle.
ChannelConfig stores the channel configuration.
ChannelProtos is where the proposed configuration is unmarshaled into.
ConsortiumConfig holds the consortium's configuration information.
ConsortiumProtos holds the config protos for the consortium config.
ConsortiumsConfig holds the consoritums configuration information.
MSPConfigHandler.
OrdererConfig holds the orderer configuration information.
OrdererOrgConfig defines the configuration for an orderer org.
OrdererOrgProtos are deserialized from the Orderer org config values.
OrdererProtos is used as the source of the OrdererConfig.
OrganizationConfig stores the configuration for an organization.
OrganizationProtos are used to deserialize the organization config.
StandardConfigValue implements the ConfigValue interface.
# Interfaces
Application stores the common shared application config.
ApplicationCapabilities defines the capabilities for the application portion of a channel.
ApplicationOrg stores the per org application config.
Channel gives read only access to the channel configuration.
ChannelCapabilities defines the capabilities for a channel.
ChannelValues gives read only access to the channel configuration.
ConfigValue defines a common representation for different *cb.ConfigValue values.
Consortium represents a group of orgs which may create channels together.
Consortiums represents the set of consortiums serviced by an ordering service.
Orderer stores the common shared orderer config.
OrdererCapabilities defines the capabilities for the orderer portion of a channel.
OrdererOrg stores the per org orderer config.
Org stores the common organizational config.
PolicyMapper is an interface for.
Resources is the common set of config resources for all channels Depending on whether chain is used at the orderer or at the peer, other config resources may be available.
# Type aliases
BundleActor performs an operation based on the given bundle.