controller

package
v0.0.0-...-41c7706 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

Faber

Documentation Status

url/containerName peerName.orgName.domainRoot:port MspID %sMSP orgName caName ca-%s-%s peerName orgName

Faber 环境配置

  • Docker、Docker-Compose
  • Golang
  • Fabric
  • Other: Wget, Git, GCC, Make, Jq
  • Environment

Faber 目录结构

/etc/profile.d/faber.sh 
- FaberRoot ("Defined in const.")
  - faber
    - asserts 🆗 
      - fabric 🆗 controller/environment/fabric.go
      - fabric-ca 🆗 controller/environment/fabric.go
      - fabric-samples 🆗 controller/environment/fabric.go
      - go.tar.gz 🆗 controller/environment/golang.go
    - bin 🆗 
      - ...fabric binary files 🆗 controller/envionment/*
    - config
    - data
      - configtx
        - configtx.yaml 🆗 controller/config/configtx/*  
      - docker
        - ...docker-compose.yaml 🆗 controller/docker/ca.go, orderer.go, peer.go, tools.go
      - genesis-block generate by command
      - organizations
        - cryptogen 🆗 
          - cryptogen-config.yaml (for each peer organization) 🆗 controller/config/crypto-config.go
          - cryptogen-config.yaml (for each orderer organization) 🆗 controller/config/crypto-config.go
        - fabric-ca
        - ordererOrganizations
          - ordererOrg
            - msp
              - config.yaml
        - peerOrganizations
          - commonOrg
            - msp
              - config.yaml
    - go 🆗 controller/environment/golang.go
      - bin
        - ...go binary files
    - log (TODO)

Network.sh创建网络的步骤

  • 检查镜像、软件版本和环境变量
  • 检查预设配置文件 ../config
  • 创建组织信息和创世块

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteControllerCommand

func ExecuteControllerCommand(target *ssh.IPv4Client, commands []*command.Command) bool

func ExecuteControllerParallelCommand

func ExecuteControllerParallelCommand(target *ssh.IPv4Client, commands []*command.Command) bool

func GenerateBlockPath

func GenerateBlockPath() string

func GenerateClientTLSCertPath

func GenerateClientTLSCertPath(isPeer bool, peerName, orgName, domainRoot string) string

func GenerateDomain

func GenerateDomain(peerName, orgName, domainRoot string) string

func GenerateMspID

func GenerateMspID(orgName string) string

func GenerateMspPath

func GenerateMspPath(isPeer bool, peerName, orgName, domainRoot string) string

func GenerateServerTLSCertPath

func GenerateServerTLSCertPath(isPeer bool, peerName, orgName, domainRoot string) string

func GenerateTlsCertPath

func GenerateTlsCertPath(isPeer bool, peerName, orgName, domainRoot string) string

func TestFaber

func TestFaber()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL