Documentation ¶
Index ¶
- Constants
- type Application
- type Ca
- type Channel
- type Config
- func (that *Config) AddCaToOrg(org *Organization, peerName string, orgName string, domainRoot string, ...)
- func (that *Config) AddOrdererToOrg(org *Organization, peerName string, orgName string, domainRoot string, ...)
- func (that *Config) AddOrganization(org *Organization)
- func (that *Config) AddPeerToOrg(org *Organization, peerName string, orgName string, domainRoot string, ...)
- func (that *Config) CreateOrganization(orgName string, id string, domainRoot string, mapPath string) *Organization
- func (that *Config) Export(path string, name string, yamlOut bool, jsonOut bool)
- func (that *Config) FillConfigtx()
- func (that *Config) FillCryptoConfig()
- func (that *Config) FillDockerCompose()
- func (that *Config) FindOrganization(orgName string) *Organization
- type Orderer
- type Organization
- func (that *Organization) AddCa(peerName string, orgName string, domainRoot string, port uint, grpcPort uint)
- func (that *Organization) AddOrderer(peerName string, orgName string, domainRoot string, port uint)
- func (that *Organization) AddPeer(peerName string, orgName string, domainRoot string, port uint)
- type Peer
- type PeerUser
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Organizations []string `yaml:"organizations" json:"organizations"` // contains filtered or unexported fields }
type Config ¶
type Config struct { Organizations []*Organization `yaml:"organizations" json:"organizations"` Channels []*Channel `yaml:"channels" json:"channels"` Applications []*Application `yaml:"applications" json:"applications"` NetworkName string `yaml:"networkName" json:"networkName"` // contains filtered or unexported fields }
func ReadConfigFromFile ¶
func (*Config) AddCaToOrg ¶
func (*Config) AddOrdererToOrg ¶
func (*Config) AddOrganization ¶
func (that *Config) AddOrganization(org *Organization)
func (*Config) AddPeerToOrg ¶
func (*Config) CreateOrganization ¶
func (*Config) FillCryptoConfig ¶
func (that *Config) FillCryptoConfig()
FillCryptoConfig 填充crypto-config
func (*Config) FillDockerCompose ¶
func (that *Config) FillDockerCompose()
FillDockerCompose 填充docker-compose
func (*Config) FindOrganization ¶
func (that *Config) FindOrganization(orgName string) *Organization
type Organization ¶
type Organization struct { Name string `yaml:"name" json:"name"` ID string `yaml:"id" json:"id"` Domain string `yaml:"domain" json:"domain"` MSPDir string `yaml:"mspDir" json:"mspDir"` Cas []*Ca `yaml:"Cas" json:"Cas"` Peers []*Peer `yaml:"peers" json:"peers"` Orderers []*Orderer `yaml:"orderers" json:"orderers"` Policies *configtx.OrganizationPolicies `yaml:"policies" json:"policies"` Channels []string `yaml:"channels" json:"channels"` // contains filtered or unexported fields }
func GenerateEmptyOrganization ¶
func GenerateEmptyOrganization(orgName string, id string, domainRoot string, mspDir string) *Organization
func (*Organization) AddOrderer ¶
func (that *Organization) AddOrderer(peerName string, orgName string, domainRoot string, port uint)
type Peer ¶
type Peer struct { Role []int `yaml:"role" json:"role"` PeerName string `yaml:"peerName" json:"peerName"` OrgName string `yaml:"orgName" json:"orgName"` DomainRoot string `yaml:"domainRoot" json:"domainRoot"` Port uint `yaml:"port" json:"port"` ChaincodePort uint `yaml:"chaincodePort" json:"chaincodePort"` OperationsPort uint `yaml:"operationsPort" json:"operationsPort"` PeerUser []*PeerUser `json:"peerUser" yaml:"peerUser"` }
Click to show internal directories.
Click to hide internal directories.