Documentation ¶
Index ¶
- Constants
- func AddAffiliation(orgName string, affReq *msp.AffiliationRequest, configBytes []byte, ...) (*msp.AffiliationResponse, error)
- func AddGroup(originalBlock, updateBlock *common.Block, ...) ([]byte, error)
- func CAInfo(orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.GetCAInfoResponse, error)
- func Channels(orgName, orgUser, peerName string, configBytes []byte, ...) ([]*peer.ChannelInfo, error)
- func Create(orderOrgName, orderOrgUser, orderURL, orgName, orgUser, channelID, ... string, ...) (txID string, err error)
- func CreateConfigUpdateBytes(configUpdateEnvBytes []byte, leagueName, channelID string) error
- func CreateIdentity(orgName string, req *msp.IdentityRequest, configBytes []byte, ...) (*msp.IdentityResponse, error)
- func CreateSigningIdentity(orgName string, configBytes []byte, opts []mspctx.SigningIdentityOption, ...) (mspctx.SigningIdentity, error)
- func DiscoveryChannelPeers(channelID, orgName, orgUser string, configBytes []byte, ...) ([]fab.Peer, error)
- func DiscoveryLocalPeers(orgName, orgUser string, configBytes []byte, sdkOpts ...fabsdk.Option) ([]fab.Peer, error)
- func Enroll(orgName, enrollmentID string, configBytes []byte, opts []msp.EnrollmentOption, ...) error
- func GetAffiliation(affiliation, orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
- func GetAffiliationByCaName(affiliation, orgName, caName string, configBytes []byte, ...) (*msp.AffiliationResponse, error)
- func GetAllAffiliations(orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
- func GetAllAffiliationsByCaName(orgName, caName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
- func GetAllIdentities(orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) ([]*msp.IdentityResponse, error)
- func GetAllIdentitiesByCaName(orgName, caName string, configBytes []byte, sdkOpts ...fabsdk.Option) ([]*msp.IdentityResponse, error)
- func GetIdentity(id, orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.IdentityResponse, error)
- func GetIdentityByCaName(id, caName, orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.IdentityResponse, error)
- func GetSigningIdentity(id, orgName string, configBytes []byte, sdkOpts ...fabsdk.Option) (mspctx.SigningIdentity, error)
- func Join(orderURL, orgName, orgUser, channelID, peerName string, configBytes []byte, ...) error
- func ModifyAffiliation(orgName string, affReq *msp.ModifyAffiliationRequest, configBytes []byte, ...) (*msp.AffiliationResponse, error)
- func ModifyIdentity(orgName string, req *msp.IdentityRequest, configBytes []byte, ...) (*msp.IdentityResponse, error)
- func Reenroll(orgName, enrollmentID string, configBytes []byte, opts []msp.EnrollmentOption, ...) error
- func Register(orgName string, registerReq *msp.RegistrationRequest, configBytes []byte, ...) (string, error)
- func RemoveAffiliation(orgName string, affReq *msp.AffiliationRequest, configBytes []byte, ...) (*msp.AffiliationResponse, error)
- func RemoveIdentity(orgName string, req *msp.RemoveIdentityRequest, configBytes []byte, ...) (*msp.IdentityResponse, error)
- func Revoke(orgName string, req *msp.RevocationRequest, configBytes []byte, ...) (*msp.RevocationResponse, error)
- func Sign(configBytes, envelopeBytes []byte, ...) error
- func UpdateChannel(resmgmtClient *resmgmt.Client, envelopeBytes []byte, ...) error
- type ChainCodeInfoArr
- type ChannelArr
- type Result
- func Install(orgName, orgUser, peerName, name, goPath, chainCodePath, version string, ...) *Result
- func Installed(orgName, orgUser, peerName string, configBytes []byte, ...) *Result
- func Instantiate(orgName, orgUser, peerName, channelID, name, path, version string, ...) *Result
- func Instantiated(orgName, orgUser, channelID, peerName string, configBytes []byte, ...) *Result
- func Invoke(chaincodeID, orgName, orgUser, channelID, fcn string, args [][]byte, ...) *Result
- func InvokeAsync(chaincodeID, orgName, orgUser, channelID, callback, fcn string, args [][]byte, ...) *Result
- func OrderConfig(orgName, orgUser, channelID, orderURL string, configBytes []byte, ...) *Result
- func Query(chaincodeID, orgName, orgUser, channelID, fcn string, args [][]byte, ...) *Result
- func QueryChannelBlockByHash(channelID, orgName, orgUser, peerName, hash string, configBytes []byte, ...) *Result
- func QueryChannelBlockByHeight(channelID, orgName, orgUser, peerName string, height uint64, ...) *Result
- func QueryChannelBlockByTxID(channelID, orgName, orgUser, peerName, txID string, configBytes []byte, ...) *Result
- func QueryChannelInfo(channelID, orgName, orgUser, peerName string, configBytes []byte, ...) *Result
- func QueryChannelTransaction(channelID, orgName, orgUser, peerName, txID string, configBytes []byte, ...) *Result
- func QueryCollectionsConfig(chaincodeID, orgName, orgUser, channelID, peerName string, configBytes []byte, ...) *Result
- func QueryConfigBlock(channelID, orgName, orgUser, peerName string, configBytes []byte, ...) *Result
- func QueryLedgerBlockByHash(configID, peerName, channelID, hash string, configBytes []byte, ...) *Result
- func QueryLedgerBlockByHashSpec(peerName, channelID, orgName, orgUser, hash string, configBytes []byte, ...) *Result
- func QueryLedgerBlockByHeight(configID, peerName, channelID string, height uint64, configBytes []byte, ...) *Result
- func QueryLedgerBlockByHeightSpec(peerName, channelID, orgName, orgUser string, height uint64, ...) *Result
- func QueryLedgerBlockByTxID(configID, peerName, channelID, txID string, configBytes []byte, ...) *Result
- func QueryLedgerBlockByTxIDSpec(peerName, channelID, orgName, orgUser, txID string, configBytes []byte, ...) *Result
- func QueryLedgerConfig(configID, peerName, channelID string, configBytes []byte, ...) *Result
- func QueryLedgerConfigSpec(peerName, channelID, orgName, orgUser string, configBytes []byte, ...) *Result
- func QueryLedgerInfo(configID, peerName, channelID string, configBytes []byte, ...) *Result
- func QueryLedgerInfoSpec(peerName, channelID, orgName, orgUser string, configBytes []byte, ...) *Result
- func QueryLedgerTransaction(configID, peerName, channelID, txID string, configBytes []byte, ...) *Result
- func QueryLedgerTransactionSpec(peerName, channelID, orgName, orgUser, txID string, configBytes []byte, ...) *Result
- func Upgrade(orgName, orgUser, peerName, channelID, name, path, version string, ...) *Result
Constants ¶
View Source
const ( // Success 请求返回成功码 Success = "200" // Fail 请求返回失败码 Fail = "9999" )
Variables ¶
This section is empty.
Functions ¶
func AddAffiliation ¶
func AddAffiliation(orgName string, affReq *msp.AffiliationRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
func Create ¶
func Create(orderOrgName, orderOrgUser, orderURL, orgName, orgUser, channelID, channelConfigPath string, configBytes []byte, sdkOpts ...fabsdk.Option) (txID string, err error)
setupAndRun enables testing an end-to-end scenario against the supplied SDK options the createChannel flag will be used to either create a channel and the example CC or not(ie run the tests with existing ch and CC)
func CreateConfigUpdateBytes ¶
func CreateIdentity ¶
func CreateIdentity(orgName string, req *msp.IdentityRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.IdentityResponse, error)
func CreateSigningIdentity ¶
func CreateSigningIdentity(orgName string, configBytes []byte, opts []mspctx.SigningIdentityOption, sdkOpts ...fabsdk.Option) (mspctx.SigningIdentity, error)
func DiscoveryChannelPeers ¶
func DiscoveryLocalPeers ¶
func GetAffiliation ¶
func GetAffiliationByCaName ¶
func GetAllAffiliations ¶
func GetAllIdentities ¶
func GetIdentity ¶
func GetIdentityByCaName ¶
func GetSigningIdentity ¶
func ModifyAffiliation ¶
func ModifyAffiliation(orgName string, affReq *msp.ModifyAffiliationRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
func ModifyIdentity ¶
func ModifyIdentity(orgName string, req *msp.IdentityRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.IdentityResponse, error)
func RemoveAffiliation ¶
func RemoveAffiliation(orgName string, affReq *msp.AffiliationRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.AffiliationResponse, error)
func RemoveIdentity ¶
func RemoveIdentity(orgName string, req *msp.RemoveIdentityRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.IdentityResponse, error)
func Revoke ¶
func Revoke(orgName string, req *msp.RevocationRequest, configBytes []byte, sdkOpts ...fabsdk.Option) (*msp.RevocationResponse, error)
Types ¶
type ChainCodeInfoArr ¶
type ChainCodeInfoArr struct {
ChainCodes []*peer.ChaincodeInfo `json:"chaincodes"`
}
type ChannelArr ¶
type ChannelArr struct {
Channels []*peer2.ChannelInfo `json:"channels"`
}
type Result ¶
type Result struct { ResultCode string `json:"code"` Msg string `json:"msg"` // 数据接口 Data interface{} `json:"data"` }
Result 请求返回对象实体
func Instantiate ¶
func Instantiated ¶
func InvokeAsync ¶
func OrderConfig ¶
func QueryChannelBlockByHash ¶
func QueryChannelBlockByTxID ¶
func QueryChannelInfo ¶
func QueryChannelTransaction ¶
func QueryCollectionsConfig ¶
func QueryConfigBlock ¶
func QueryLedgerBlockByHash ¶
func QueryLedgerBlockByTxID ¶
func QueryLedgerConfig ¶
func QueryLedgerConfigSpec ¶
func QueryLedgerInfo ¶
func QueryLedgerInfoSpec ¶
func QueryLedgerTransaction ¶
Click to show internal directories.
Click to hide internal directories.