Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeConnection ¶
type ChaincodeConnection struct { Address string `json:"address"` DialTimeout string `json:"dial_timeout"` TLSRequired bool `json:"tls_required"` ClientAuthRequired bool `json:"client_auth_required"` ClientKey string `json:"client_key"` ClientCert string `json:"client_cert"` RootCert string `json:"root_cert"` }
ChaincodeConnection defines external chaincode connection file structure.
type ChaincodeMetadata ¶
type ChaincodeMetadata struct { Path string `json:"path"` Type string `json:"type"` Label string `json:"label"` }
ChaincodeMetadata defines chaincode package metadata file structure.
type Channel ¶
type Channel struct { ChannelID string `yaml:"channelID" json:"channelID"` Organizations []string `yaml:"organizations" json:"organizations"` }
Channel defines channel block structure from NetworkConfig.
func (*Channel) HasOrganization ¶
HasOrganization determines whether the Organization is a part of Channel in the NetworkConfig.
type NetworkConfig ¶
type NetworkConfig struct { Domain string `yaml:"domain" json:"domain"` Orderer Orderer `yaml:"orderer" json:"orderer"` Organizations []Organization `yaml:"organizations" json:"organizations"` Channels []Channel `yaml:"channels" json:"channels"` // contains filtered or unexported fields }
NetworkConfig defines network deployment configuration structure.
func (NetworkConfig) GetChannel ¶
func (n NetworkConfig) GetChannel(channelID string) *Channel
GetChannel finds single Channel config in the NetworkConfig.
func (NetworkConfig) GetOrganization ¶
func (n NetworkConfig) GetOrganization(orgID string) *Organization
GetOrganization finds single Organization config in the NetworkConfig.
type Orderer ¶
type Orderer struct { Name string `yaml:"name" json:"name"` Hostname string `yaml:"hostname" json:"hostname"` TLSCert string `yaml:"-" json:"-"` }
Orderer defines orderer block structure from NetworkConfig.
type Organization ¶
type Organization struct { Name string `yaml:"name" json:"name"` Hostname string `yaml:"hostname" json:"hostname"` MspID string `yaml:"mspID" json:"mspID"` Peers []struct { Hostname string `yaml:"hostname" json:"hostname"` } TLSCert string `yaml:"-" json:"-"` CertAuthority struct { TLSCert string `yaml:"-" json:"-"` } `yaml:"cert_authority" json:"cert_authority"` }
Organization defines organization block structure from NetworkConfig.
Click to show internal directories.
Click to hide internal directories.