Versions in this module Expand all Collapse all v0 v0.3.0 Oct 5, 2023 Changes in this version type Consensus + BootstrapMethod string + ChannelParticipationEnabled bool type Orderer + Id int type Peer + Hostname string + SkipInit bool + SkipRunning bool + TLSDisabled bool + Usage string type Topology + Driver string + ExtraParams map[string]interface{} + TLSEnabled bool v0.2.0 Dec 7, 2022 v0.1.0 Nov 16, 2022 Changes in this version + const DefaultConfigTxTemplate + const DefaultCoreTemplate + const DefaultCryptoTemplate + const DefaultFSCFabricExtensionTemplate + const DefaultOrdererTemplate + const OrgUpdateConfigTxTemplate + func WithMREnclave(mrenclave string) func(*ChannelChaincode) + func WithSGXDevicesPaths(paths []string) func(*ChannelChaincode) + func WithSGXMode(mode string) func(*ChannelChaincode) + type BCCSP = config.BCCSP + type CA struct + Hostname string + type Chaincode struct + ChannelConfigPolicy string + CodeFiles map[string]string + CollectionsConfig string + Ctor string + EndorsementPlugin string + InitRequired bool + Label string + Lang string + Name string + PackageFile string + PackageID string + Path string + Policy string + Sequence string + SignaturePolicy string + ValidationPlugin string + Version string + func (c *Chaincode) SetPackageIDFromPackageFile() + type Channel struct + BaseProfile string + Default bool + Name string + Profile string + type ChannelChaincode struct + Chaincode Chaincode + Channel string + Path string + Peers []string + PostRunInvocations []PostRunInvocation + Private bool + PrivateChaincode PrivateChaincode + func (c *ChannelChaincode) AddPostRunInvocation(functionName string, expectedResult interface{}, args ...[]byte) + type Consensus struct + Type string + type Consortium struct + Name string + Organizations []string + type KeyIDMapping = config.KeyIDMapping + type Logging struct + Format string + Spec string + type Orderer struct + Name string + Organization string + func (o Orderer) ID() string + type Organization struct + CA *CA + Domain string + EnableNodeOUs bool + ID string + MSPID string + MSPType string + Name string + UserSpecs []UserSpec + Users int + type OrganizationOpt struct + Name string + type PKCS11 = config.PKCS11 + type Peer struct + Bootstrap bool + Channels []*PeerChannel + DefaultIdentity string + DefaultNetwork bool + DevMode bool + ExecutablePath string + FSCNode *node.Node + Identities []*PeerIdentity + Name string + Organization string + Role string + Type PeerType + func (p *Peer) Anchor() bool + func (p *Peer) ID() string + type PeerChannel struct + Anchor bool + Name string + type PeerIdentity struct + CacheSize int + Default bool + EnrollmentID string + ID string + MSPID string + MSPType string + Opts *BCCSP + Org string + Path string + type PeerType string + const FSCPeer + const FabricPeer + type Policy struct + Name string + Rule string + Type string + type PostRunInvocation struct + Args [][]byte + ExpectedResult interface{} + FunctionName string + type PrivateChaincode struct + Image string + MREnclave string + SGXDevicesPaths []string + SGXMode string + type Profile struct + AppCapabilities []string + ChannelCapabilities []string + Consortium string + Name string + Orderers []string + Organizations []string + Policies []*Policy + type SoftwareProvider = config.SoftwareProvider + type SystemChannel struct + Name string + Profile string + type Templates struct + ConfigTx string + Core string + Crypto string + Orderer string + func (t *Templates) ConfigTxTemplate() string + func (t *Templates) CoreTemplate() string + func (t *Templates) CryptoTemplate() string + func (t *Templates) FSCFabricExtensionTemplate() string + func (t *Templates) OrdererTemplate() string + type Topology struct + Chaincodes []*ChannelChaincode + Channels []*Channel + Consensus *Consensus + Consortiums []*Consortium + Default bool + FPC bool + FabTokenCCSupport bool + FabTokenSupport bool + GRPCLogging bool + LogOrderersToFile bool + LogPeersToFile bool + Logging *Logging + MSPvtCCSupport bool + MSPvtTxSupport bool + NodeOUs bool + Orderers []*Orderer + Organizations []*Organization + Peers []*Peer + Profiles []*Profile + PvtTxCCSupport bool + PvtTxSupport bool + SystemChannel *SystemChannel + Templates *Templates + TopologyName string + TopologyType string + Weaver bool + func (t *Topology) AddChaincode(cc *ChannelChaincode) + func (t *Topology) AddFPC(name, image string, options ...func(*ChannelChaincode)) *ChannelChaincode + func (t *Topology) AddFPCAtOrgs(name, image string, orgs []string, options ...func(*ChannelChaincode)) *ChannelChaincode + func (t *Topology) AddManagedNamespace(name string, policy string, chaincode string, ctor string, peers ...string) + func (t *Topology) AddNamespace(name string, policy string, peers ...string) + func (t *Topology) AddNamespaceWithOneOutOfN(name string, orgs ...string) + func (t *Topology) AddNamespaceWithUnanimity(name string, orgs ...string) *namespace + func (t *Topology) AddOrganization(name string) *fscOrg + func (t *Topology) AddOrganizations(num int) *Topology + func (t *Topology) AddOrganizationsByMapping(mapping map[string][]string) *Topology + func (t *Topology) AddOrganizationsByName(names ...string) *Topology + func (t *Topology) AddPeer(name string, org string, typ PeerType, bootstrap bool, executable string) *Peer + func (t *Topology) AppendOrganization(org *Organization) + func (t *Topology) AppendPeer(peer *Peer) + func (t *Topology) EnableFPC() + func (t *Topology) EnableGRPCLogging() + func (t *Topology) EnableIdemix() *fscOrg + func (t *Topology) EnableLogOrderersToFile() + func (t *Topology) EnableLogPeersToFile() + func (t *Topology) EnableNodeOUs() + func (t *Topology) EnableWeaver() + func (t *Topology) Name() string + func (t *Topology) SetDefault() *Topology + func (t *Topology) SetLogging(spec, format string) + func (t *Topology) SetNamespaceApproverOrgs(orgs ...string) + func (t *Topology) SetNamespaceApproverOrgsOR(orgs ...string) + func (t *Topology) Type() string + type UserSpec struct + HSM bool + Name string