Documentation ¶
Index ¶
- Constants
- func CertNodeCAName(orgName, orgDomain, nodeName string) string
- func CertRootCAName(leagueDomain string) string
- func CertRootTLSCAName(leagueDomain string) string
- func CertUserCAName(orgName, orgDomain, userName string) string
- func CertificateAuthorityClientCertFilePath(leagueDomain, caName string) string
- func CertificateAuthorityClientKeyFilePath(leagueDomain, caName string) string
- func CertificateAuthorityFilePath(leagueDomain, caName string) string
- func ChainCodePath(leagueName, chainCodeName, version string) (source, path, zipPath string)
- func ChannelArtifactsPath(leagueName string) string
- func ChannelTXFilePath(leagueName, channelName string) string
- func ChannelUpdateTXFilePath(leagueName, channelName string) string
- func CryptoConfigPath(leagueName string) string
- func CryptoOrgAndNodePath(leagueDomain, orgDomain, orgName, nodeName string, isPeer bool, ...) (orgPath, nodePath string)
- func CryptoOrgMspPath(leagueDomain, orgDomain, orgName string, isPeer bool) (mspPath string)
- func CryptoRootCAPath(leagueDomain string) string
- func CryptoRootTLSCAPath(leagueDomain string) string
- func CryptoUserTmpPath(leagueDomain, orgDomain, orgName string) string
- func CsrFilePath(leagueDomain, orgName, orgDomain, commonName string) string
- func CsrPath(leagueDomain, orgName, orgDomain string) string
- func GenesisBlockFilePath(leagueName string) string
- func MspID(orgName string) string
- func NodeDomain(orgName, orgDomain, nodeName string) string
- type ClientCANode
- type GenerateConfig
- func (gc *GenerateConfig) CreateCsr(reqCsr *generate.ReqCreateCsr) error
- func (gc *GenerateConfig) CreateLeague(league *generate.ReqCreateLeague) error
- func (gc *GenerateConfig) CreateOrg(org *generate.ReqCreateOrg) error
- func (gc *GenerateConfig) CreateOrgNode(node *generate.ReqCreateOrgNode) error
- func (gc *GenerateConfig) CreateOrgUser(user *generate.ReqCreateOrgUser) error
- func (gc *GenerateConfig) EccSKI(key *ecdsa.PrivateKey) []byte
- func (gc *GenerateConfig) RsaSKI(key *rsa.PrivateKey) []byte
- func (gc *GenerateConfig) SignAlgorithm(signAlgorithm generate.SignAlgorithm) x509.SignatureAlgorithm
- func (gc *GenerateConfig) UpdateChannel(sdk *fabsdk.FabricSDK, channelID, orgName, orgUser, orderURL string, ...) error
- type Genesis
- type PemConfig
Constants ¶
View Source
const ( // WorkPath 项目工作目录 [template] WorkPath = "WORK_PATH" OrdererOrgName = "OrdererOrg" GOPath = "GOPATH" )
环境变量
View Source
const (
GeneratePriKeyFileName = "private.key"
)
Variables ¶
This section is empty.
Functions ¶
func CertNodeCAName ¶
func CertRootCAName ¶
func CertRootTLSCAName ¶
func CertUserCAName ¶
func CertificateAuthorityClientCertFilePath ¶
CertificateAuthorityClientCertFilePath CertificateAuthorityPath
func CertificateAuthorityClientKeyFilePath ¶
CertificateAuthorityClientKeyFilePath CertificateAuthorityPath
func CertificateAuthorityFilePath ¶
CertificateAuthorityPath CertificateAuthorityPath
func ChainCodePath ¶
ChainCodePath code目录
func ChannelArtifactsPath ¶
ChannelArtifactsPath channel-artifacts目录
func ChannelTXFilePath ¶
ChannelTXFilePath 通道tx文件路径
func ChannelUpdateTXFilePath ¶
ChannelUpdateTXFilePath 通道tx文件路径
func CryptoConfigPath ¶
CryptoConfigPath crypto-config目录
func CryptoOrgAndNodePath ¶
func CryptoOrgAndNodePath(leagueDomain, orgDomain, orgName, nodeName string, isPeer bool, node ClientCANode) (orgPath, nodePath string)
CryptoOrgAndNodePath CryptoOrgAndNodePath
func CryptoOrgMspPath ¶
CryptoOrgMspPath CryptoOrgMspPath
func CryptoRootCAPath ¶
CryptoRootCAPath CryptoCAPath
func CryptoRootTLSCAPath ¶
CryptoRootTLSCAPath CryptoCAPath
func CryptoUserTmpPath ¶
CryptoUserTmpPath CryptoUserTempPath
func CsrFilePath ¶
func GenesisBlockFilePath ¶
GenesisBlockFilePath orderer.genesis.block路径
func NodeDomain ¶
Types ¶
type GenerateConfig ¶
type GenerateConfig struct{}
func (*GenerateConfig) CreateCsr ¶
func (gc *GenerateConfig) CreateCsr(reqCsr *generate.ReqCreateCsr) error
func (*GenerateConfig) CreateLeague ¶
func (gc *GenerateConfig) CreateLeague(league *generate.ReqCreateLeague) error
func (*GenerateConfig) CreateOrg ¶
func (gc *GenerateConfig) CreateOrg(org *generate.ReqCreateOrg) error
func (*GenerateConfig) CreateOrgNode ¶
func (gc *GenerateConfig) CreateOrgNode(node *generate.ReqCreateOrgNode) error
func (*GenerateConfig) CreateOrgUser ¶
func (gc *GenerateConfig) CreateOrgUser(user *generate.ReqCreateOrgUser) error
func (*GenerateConfig) EccSKI ¶
func (gc *GenerateConfig) EccSKI(key *ecdsa.PrivateKey) []byte
SKI returns the subject key identifier of this key.
func (*GenerateConfig) RsaSKI ¶
func (gc *GenerateConfig) RsaSKI(key *rsa.PrivateKey) []byte
SKI returns the subject key identifier of this key.
func (*GenerateConfig) SignAlgorithm ¶
func (gc *GenerateConfig) SignAlgorithm(signAlgorithm generate.SignAlgorithm) x509.SignatureAlgorithm
func (*GenerateConfig) UpdateChannel ¶
type Genesis ¶
type Genesis struct { Info *generate.ReqGenesis // contains filtered or unexported fields }
func (*Genesis) CreateChannelCreateTx ¶
func (*Genesis) CreateGenesisBlock ¶
type PemConfig ¶
type PemConfig struct {
KeyConfig *generate.ReqKeyConfig
}
func (*PemConfig) GenerateCrypto ¶
func (pc *PemConfig) GenerateCrypto() *generate.RespKeyConfig
Click to show internal directories.
Click to hide internal directories.