connectionprofile

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnProfile

type ConnProfile struct {
	Peers         map[string]networkspec.Peer
	Orderers      map[string]networkspec.Orderer
	CA            map[string]networkspec.CertificateAuthority
	Organizations map[string]networkspec.Organization
	Config        networkspec.Config
}

func (ConnProfile) GenerateConnProfilePerOrg

func (c ConnProfile) GenerateConnProfilePerOrg(orgName string) error

func (ConnProfile) GetCertificateFromFile

func (c ConnProfile) GetCertificateFromFile(certPath string) (string, error)

GetCertificateFromFile -- to get the certificate data from the file

func (ConnProfile) Organization

func (c ConnProfile) Organization(peerorg networkspec.PeerOrganizations, caList []string) (networkspec.Organization, error)

func (ConnProfile) UpdateConnectionProfiles

func (c ConnProfile) UpdateConnectionProfiles(configObjects []interface{}, organizations []inputStructs.Organization, action string) error

UpdateConnectionProfiles -- To update connection profiles

Jump to

Keyboard shortcuts

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