Documentation
¶
Index ¶
- Constants
- type CCP
- type CcpCaHttpOptions
- type CcpCaTlsCaCert
- type CcpCertificateAuthorities
- type CcpClient
- type CcpClientConnection
- type CcpClientConnectionPeer
- type CcpClientConnectionPeerEndorser
- type CcpOrganization
- type CcpPeer
- type CcpPeerGrpcOptions
- type CcpPeerTlsCACerts
- type OrdererCryptoConfig
- type OrdererCryptoConfigSpecs
- type PeerCryptoConfig
- type PeerCryptoConfigTemplate
- type PeerCryptoConfigUsers
Constants ¶
View Source
const Arch = "amd64"
View Source
const AssertsPath = FaberRootPath + "asserts/"
View Source
const BasePath = "/root/"
View Source
const BinaryPath = FaberRootPath + "bin/"
View Source
const ConfigPath = FaberRootPath + "config/"
View Source
const DockerPath = FaberRootPath + "docker/"
View Source
const EnvironmentFilePath = "/etc/profile.d/faber.sh"
View Source
const FaberRootPath = "faber/"
View Source
const FabricCaVersion = "1.4"
View Source
const FabricCaVersionFull = "1.4.8"
View Source
const FabricDataPath = FaberRootPath + "data/"
View Source
const FabricVersion = "2.2"
View Source
const FabricVersionFull = "2.2.0"
View Source
const Go = FaberRootPath + "go/"
View Source
const GoDownloadPath = "https://go.dev/dl/"
View Source
const GoPath = BasePath + "go/"
View Source
const GoVersion = "1.19"
View Source
const LocalDataPath = "./config/hyperledger/data/"
View Source
const LocalDockerPath = LocalDataPath + "docker/"
View Source
const LogPath = FaberRootPath + "log/"
View Source
const OS = "linux"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCP ¶
type CCP struct { Name string `json:"name" yaml:"name"` Version string `json:"version" yaml:"version"` Client *CcpClient `json:"client" yaml:"client"` Organizations map[string]*CcpOrganization `json:"organizations" yaml:"organizations"` Peers map[string]*CcpPeer `json:"peers" yaml:"peers"` CertificateAuthorities map[string]*CcpCertificateAuthorities `json:"certificateAuthorities" yaml:"certificateAuthorities"` }
func GenerateEmptyCcp ¶
func (*CCP) ExportJson ¶
func (*CCP) ExportYaml ¶
type CcpCaHttpOptions ¶
type CcpCaHttpOptions struct {
Verify bool `json:"verify" yaml:"verify"`
}
type CcpCaTlsCaCert ¶
type CcpCaTlsCaCert struct {
Pem []string `json:"pem" yaml:"pem"`
}
type CcpCertificateAuthorities ¶
type CcpCertificateAuthorities struct { Url string `json:"url" yaml:"url"` CaName string `json:"caName" yaml:"caName"` TlsCaCerts *CcpCaTlsCaCert `json:"tlsCaCerts" yaml:"tlsCaCerts"` HttpOptions *CcpCaHttpOptions `json:"httpOptions" yaml:"httpOptions"` }
type CcpClient ¶
type CcpClient struct { Organization string `json:"organization" yaml:"organization"` Connection *CcpClientConnection `json:"connection" yaml:"connection"` }
type CcpClientConnection ¶
type CcpClientConnection struct {
Timeout *CcpClientConnectionPeer `json:"timeout" yaml:"timeout"`
}
type CcpClientConnectionPeer ¶
type CcpClientConnectionPeer struct {
Peer *CcpClientConnectionPeerEndorser `json:"peer" yaml:"peer"`
}
type CcpClientConnectionPeerEndorser ¶
type CcpClientConnectionPeerEndorser struct {
Endorser string `json:"endorser" yaml:"endorser"`
}
type CcpOrganization ¶
type CcpPeer ¶
type CcpPeer struct { Url string `json:"url" yaml:"url"` // grpc TlsCACerts *CcpPeerTlsCACerts `json:"tlsCaCerts" yaml:"tlsCACerts"` GrpcOptions *CcpPeerGrpcOptions `json:"grpcOptions" yaml:"grpcOptions"` }
type CcpPeerGrpcOptions ¶
type CcpPeerTlsCACerts ¶
type CcpPeerTlsCACerts struct {
Pem string `json:"pem" yaml:"pem"`
}
type OrdererCryptoConfig ¶
type OrdererCryptoConfig struct { Name string `yaml:"Name"` Domain string `yaml:"Domain"` EnableNodeOUs bool `yaml:"EnableNodeOUs"` Specs []*OrdererCryptoConfigSpecs `yaml:"Specs"` }
func GenerateDefaultOrdererCryptoConfig ¶
func GenerateDefaultOrdererCryptoConfig(name, domainRoot string) *OrdererCryptoConfig
type PeerCryptoConfig ¶
type PeerCryptoConfig struct { Name string `yaml:"Name"` Domain string `yaml:"Domain"` EnableNodeOUs bool `yaml:"EnableNodeOUs"` Template *PeerCryptoConfigTemplate `yaml:"Template"` Users *PeerCryptoConfigUsers `yaml:"Users"` }
func GenerateDefaultPeerCryptoConfig ¶
func GenerateDefaultPeerCryptoConfig(orgName, domainRoot string, count, users uint) *PeerCryptoConfig
type PeerCryptoConfigUsers ¶
type PeerCryptoConfigUsers struct {
Count uint `yaml:"Count"`
}
Click to show internal directories.
Click to hide internal directories.