Documentation
¶
Index ¶
- Variables
- func CToGoString(c []byte) string
- func DiscoverLocalPeers(ctxProvider context.ClientProvider, expectedPeers int) ([]fabAPI.Peer, error)
- func LoadOrgPeers(ctxProvider context.ClientProvider) error
- func QueryInstalledCC(orgID string, resMgmt *resmgmt.Client, ccName, ccVersion string, ...) (bool, error)
- func QueryInstantiatedCC(orgID string, resMgmt *resmgmt.Client, channelID, ccName, ccVersion string, ...) (bool, error)
- func WaitForOrdererConfigUpdate(client *resmgmt.Client, channelID string, genesis bool, lastConfigBlock uint64) (uint64, error)
- type OrgSetup
- func (s *OrgSetup) AddAffiliationOrg() error
- func (s *OrgSetup) ChangePassword(email, role, oldPwd, newPwd string) error
- func (s *OrgSetup) ChooseORG(org string) *OrgSetup
- func (s *OrgSetup) CreateCCPackage() (*resource.CCPackage, error)
- func (s *OrgSetup) CreateChannelClient(sdk *fabsdk.FabricSDK, org string, email string, caClient *caMsp.Client) (*channel.Client, *event.Client, error)
- func (s *OrgSetup) CreateChannelForOrg() error
- func (s *OrgSetup) ExecuteChaincodeTranctionEvent(eventID, fcnName string, args [][]byte, chaincodeId string, ...) (*channel.Response, error)
- func (s *OrgSetup) FilteredOrgNames() []string
- func (s *OrgSetup) GetOrgNames() []string
- func (s *OrgSetup) GetOrgUser() *OrgUser
- func (s *OrgSetup) Init(processAll bool) error
- func (s *OrgSetup) InitializeAllOrgs() error
- func (s *OrgSetup) InitializeOrg(org string) (OrgSetup, error)
- func (s *OrgSetup) InstallCCForOrg(ccPkg *resource.CCPackage) error
- func (s *OrgSetup) InstantiateCCForOrg(orgPeers []fab.Peer) error
- func (s *OrgSetup) IsJoinedChannel(orgResmgmt *resmgmt.Client, peer fabAPI.Peer) (bool, error)
- func (s *OrgSetup) JoinChannelForOrg() error
- func (s *OrgSetup) LoginUserWithCA(email, password string) (*OrgUser, error)
- func (s *OrgSetup) QueryInstalledCCForOrg() error
- func (s *OrgSetup) QueryInstantiatedCCForOrg() error
- func (s *OrgSetup) ReEnrollUser(email string) error
- func (s *OrgSetup) RegisterUserWithCA(org, email, password, role string) (*OrgUser, error)
- func (s *OrgSetup) TestInvoke(org string) error
- func (s *OrgSetup) UpgradeCCForOrg(orgPeers []fab.Peer) error
- type OrgUser
Constants ¶
This section is empty.
Variables ¶
View Source
var OrgList []OrgSetup
View Source
var OrgNames []string
Functions ¶
func CToGoString ¶
func DiscoverLocalPeers ¶
func LoadOrgPeers ¶
func LoadOrgPeers(ctxProvider context.ClientProvider) error
func QueryInstalledCC ¶
func QueryInstantiatedCC ¶
func WaitForOrdererConfigUpdate ¶
func WaitForOrdererConfigUpdate(client *resmgmt.Client, channelID string, genesis bool, lastConfigBlock uint64) (uint64, error)
WaitForOrdererConfigUpdate waits until the config block update has been committed. In Fabric 1.0 there is a bug that panics the orderer if more than one config update is added to the same block. This function may be invoked after each config update as a workaround.
Types ¶
type OrgSetup ¶
type OrgSetup struct { // Network parameters OrdererID string OrdererAdmin string OrdererName string OrdererClientContext contextAPI.ClientProvider OrdererChannelContext contextAPI.ChannelProvider OrdererResmgmt *resmgmt.Client // Channel parameters ChannelID string ChannelConfig string // Chaincode parameters ChaincodeGoPath string ChaincodePath string ChaincodeId string ChainCodeVersion string ChainCodePolicy string CCPkg *resource.CCPackage ConfigFile string OrgCaID string OrgName string OrgAdmin string UserName string Sdk *fabsdk.FabricSDK CaClient *caMsp.Client Resmgmt *resmgmt.Client Ctx contextAPI.ClientProvider MspClient *mspclient.Client Peers []fabAPI.Peer ChannelContext contextAPI.ChannelProvider ChannelClient *channel.Client Event *event.Client SigningIdentity msp.SigningIdentity SigningIdentities []msp.SigningIdentity }
var Orderer OrgSetup
func InitiateOrderer ¶
func InitiateOrg ¶
func (*OrgSetup) AddAffiliationOrg ¶
func (*OrgSetup) ChangePassword ¶
func (*OrgSetup) CreateCCPackage ¶
func (*OrgSetup) CreateChannelClient ¶
func (*OrgSetup) CreateChannelForOrg ¶
func (*OrgSetup) ExecuteChaincodeTranctionEvent ¶
func (*OrgSetup) FilteredOrgNames ¶
func (*OrgSetup) GetOrgNames ¶
func (*OrgSetup) GetOrgUser ¶
func (*OrgSetup) InitializeAllOrgs ¶
func (*OrgSetup) InstallCCForOrg ¶
func (*OrgSetup) InstantiateCCForOrg ¶
func (*OrgSetup) IsJoinedChannel ¶
func (*OrgSetup) JoinChannelForOrg ¶
func (*OrgSetup) LoginUserWithCA ¶
func (*OrgSetup) QueryInstalledCCForOrg ¶
func (*OrgSetup) QueryInstantiatedCCForOrg ¶
func (*OrgSetup) ReEnrollUser ¶
func (*OrgSetup) RegisterUserWithCA ¶
func (*OrgSetup) TestInvoke ¶
type OrgUser ¶
type OrgUser struct { Username string ChannelClient *channel.Client Event *event.Client Setup OrgSetup }
func (*OrgUser) RemoveUser ¶
func (*OrgUser) RemoveUserFromCA ¶
func (*OrgUser) RevokeUser ¶
Click to show internal directories.
Click to hide internal directories.