Documentation
¶
Index ¶
Constants ¶
View Source
const ( Prefix string = "CONFIGTX" EtcdRaft = "etcdraft" )
View Source
const ( TestChannelID = "testchainid" SampleInsecureSoloProfile = "SampleInsecureSolo" SampleDevModeSoloProfile = "SampleDevModeSolo" SampleSingleMSPSoloProfile = "SampleSingleMSPSolo" SampleInsecureKafkaProfile = "SampleInsecureKafka" SampleDevModeKafkaProfile = "SampleDevModeKafka" SampleSingleMSPKafkaProfile = "SampleSingleMSPKafka" SampleDevModeEtcdRaftProfile = "SampleDevModeEtcdRaft" SampleSingleMSPChannelProfile = "SampleSingleMSPChannel" SampleConsortiumName = "SampleConsortium" SampleOrgName = "SampleOrg" AdminRoleAdminPrincipal = "Role.ADMIN" MemberRoleAdminPrincipal = "Role.MEMBER" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorPeer ¶
type Application ¶
type Consortium ¶
type Consortium struct {
Organizations []*Organization `yaml:"Organizations"`
}
type Orderer ¶
type Orderer struct { OrdererType string `yaml:"OrdererType"` Addresses []string `yaml:"Addresses"` BatchTimeout time.Duration `yaml:"BatchTimeout"` BatchSize BatchSize `yaml:"BatchSize"` Kafka Kafka `yaml:"Kafka"` EtcdRaft *etcdraft.ConfigMetadata `yaml:"EtcdRaft"` Organizations []*Organization `yaml:"Organizations"` MaxChannels uint64 `yaml:"MaxChannels"` Capabilities map[string]bool `yaml:"Capabilities"` Policies map[string]*Policy `yaml:"Policies"` }
type Organization ¶
type Organization struct { Name string `yaml:"Name"` ID string `yaml:"ID"` MSPDir string `yaml:"MSPDir"` MSPType string `yaml:"MSPType"` Policies map[string]*Policy `yaml:"Policies"` AnchorPeers []*AnchorPeer `yaml:"AnchorPeers"` OrdererEndpoints []string `yaml:"OrdererEndpoints"` AdminPrincipal string `yaml:"AdminPrincipal"` SkipAsForeign bool }
type Profile ¶
type Profile struct { Consortium string `yaml:"Consortium"` Application *Application `yaml:"Application"` Orderer *Orderer `yaml:"Orderer"` Consortiums map[string]*Consortium `yaml:"Consortiums"` Capabilities map[string]bool `yaml:"Capabilities"` Policies map[string]*Policy `yaml:"Policies"` }
type TopLevel ¶
type TopLevel struct { Profiles map[string]*Profile `yaml:"Profiles"` Organizations []*Organization `yaml:"Organizations"` Channel *Profile `yaml:"Channel"` Application *Application `yaml:"Application"` Orderer *Orderer `yaml:"Orderer"` Capabilities map[string]map[string]bool `yaml:"Capabilities"` Resources *Resources `yaml:"Resources"` }
func LoadTopLevel ¶
Click to show internal directories.
Click to hide internal directories.