Documentation ¶
Index ¶
- Variables
- func ConstructImportCABodyMsp()
- func CreateCA(service *blockchainv3.BlockchainV3, displayName, username, password string) (string, string, string, error)
- func CreateClient(tlsCertFilePath, apiURL, name string) *lib.Client
- func CreateCryptoObject(apiUrl, enrollID, enrollSecret string, tlsCert []byte, identity *lib.Identity, ...) (*blockchainv3.CryptoObject, error)
- func CreateOrImportMSP(tlsCert []byte, identity *lib.Identity, service *blockchainv3.BlockchainV3, ...) error
- func CreateOrderer(service *blockchainv3.BlockchainV3, ...) (string, error)
- func CreatePeer(service *blockchainv3.BlockchainV3, cryptoObject *blockchainv3.CryptoObject, ...) (string, error)
- func DeleteComponent(service *blockchainv3.BlockchainV3, id string) (int, error)
- func EditDataAboutCA(service *blockchainv3.BlockchainV3, id string) (int, error)
- func EditDataAboutOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func EditDataAboutPeer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func EnrollCA(client *lib.Client, name, secret string) (*lib.EnrollmentResponse, error)
- func GetComponentData(service *blockchainv3.BlockchainV3, id string) (int, error)
- func GetDecodedTlsCert(ec string) ([]byte, error)
- func ImportAPeer(service *blockchainv3.BlockchainV3, displayName, grpcwpUrl, mspID string, ...) (int, error)
- func ImportAnOrderer(service *blockchainv3.BlockchainV3, ...) (int, error)
- func ImportCA(service *blockchainv3.BlockchainV3, displayName, apiUrl string, tlsCert []byte) (int, error)
- func RegisterAdmin(enrollResp *lib.EnrollmentResponse, identityType, name, secret string, ...) error
- func RegisterAndEnrollAdmin(enrollResp *lib.EnrollmentResponse, name, secret string, retries *int) (*lib.Identity, error)
- func RemoveImportedComponent(service *blockchainv3.BlockchainV3, id string) (int, error)
- func SubmitActionToCa(service *blockchainv3.BlockchainV3, id string) (int, error)
- func SubmitActionToOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func SubmitActionToPeer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func UpdateCA(service *blockchainv3.BlockchainV3, id string, tlsCert []byte) (int, error)
- func UpdateOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func UpdatePeer(service *blockchainv3.BlockchainV3, id string) (int, error)
- func WriteFileToLocalDirectory(filename string, tlsCert []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogPrefix string Logger *log.Logger )
Functions ¶
func ConstructImportCABodyMsp ¶
func ConstructImportCABodyMsp()
func CreateCA ¶
func CreateCA(service *blockchainv3.BlockchainV3, displayName, username, password string) (string, string, string, error)
func CreateClient ¶
create a client config and enable it with TLS (using the tls cert from the CA's MSP)
func CreateCryptoObject ¶
func CreateCryptoObject(apiUrl, enrollID, enrollSecret string, tlsCert []byte, identity *lib.Identity, service *blockchainv3.BlockchainV3) (*blockchainv3.CryptoObject, error)
func CreateOrImportMSP ¶
func CreateOrImportMSP(tlsCert []byte, identity *lib.Identity, service *blockchainv3.BlockchainV3, displayName, mspID string) error
func CreateOrderer ¶
func CreateOrderer(service *blockchainv3.BlockchainV3, cryptoObjectSlice []blockchainv3.CryptoObject, mspID, displayName string) (string, error)
func CreatePeer ¶
func CreatePeer(service *blockchainv3.BlockchainV3, cryptoObject *blockchainv3.CryptoObject, mspID, displayName string) (string, error)
func DeleteComponent ¶
func DeleteComponent(service *blockchainv3.BlockchainV3, id string) (int, error)
func EditDataAboutCA ¶
func EditDataAboutCA(service *blockchainv3.BlockchainV3, id string) (int, error)
func EditDataAboutOrderer ¶
func EditDataAboutOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
func EditDataAboutPeer ¶
func EditDataAboutPeer(service *blockchainv3.BlockchainV3, id string) (int, error)
func GetComponentData ¶
func GetComponentData(service *blockchainv3.BlockchainV3, id string) (int, error)
func GetDecodedTlsCert ¶
decode the base64 string in the CA's MSP
func ImportAPeer ¶
func ImportAPeer(service *blockchainv3.BlockchainV3, displayName, grpcwpUrl, mspID string, tlsCert []byte) (int, error)
func ImportAnOrderer ¶
func ImportAnOrderer(service *blockchainv3.BlockchainV3, displayName, grpcwpUrl, mspID, clusterName string, tlsCert []byte) (int, error)
func ImportCA ¶
func ImportCA(service *blockchainv3.BlockchainV3, displayName, apiUrl string, tlsCert []byte) (int, error)
func RegisterAdmin ¶
func RegisterAdmin(enrollResp *lib.EnrollmentResponse, identityType, name, secret string, retries *int) error
func RegisterAndEnrollAdmin ¶
func RemoveImportedComponent ¶
func RemoveImportedComponent(service *blockchainv3.BlockchainV3, id string) (int, error)
func SubmitActionToCa ¶
func SubmitActionToCa(service *blockchainv3.BlockchainV3, id string) (int, error)
func SubmitActionToOrderer ¶
func SubmitActionToOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
func SubmitActionToPeer ¶
func SubmitActionToPeer(service *blockchainv3.BlockchainV3, id string) (int, error)
func UpdateCA ¶
func UpdateCA(service *blockchainv3.BlockchainV3, id string, tlsCert []byte) (int, error)
func UpdateOrderer ¶
func UpdateOrderer(service *blockchainv3.BlockchainV3, id string) (int, error)
func UpdatePeer ¶
func UpdatePeer(service *blockchainv3.BlockchainV3, id string) (int, error)
func WriteFileToLocalDirectory ¶
convert the tls cert from the newly created CA into a format that can be used to create a PEM file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.