integration

package
v0.0.0-...-47aa899 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func CreateClient(tlsCertFilePath, apiURL, name string) *lib.Client

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 EnrollCA

func EnrollCA(client *lib.Client, name, secret string) (*lib.EnrollmentResponse, error)

func GetComponentData

func GetComponentData(service *blockchainv3.BlockchainV3, id string) (int, error)

func GetDecodedTlsCert

func GetDecodedTlsCert(ec string) ([]byte, error)

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 RegisterAndEnrollAdmin(enrollResp *lib.EnrollmentResponse, name, secret string, retries *int) (*lib.Identity, error)

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

func WriteFileToLocalDirectory(filename string, tlsCert []byte) error

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.

Jump to

Keyboard shortcuts

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