Documentation ¶
Index ¶
- type BurstOptions
- type CCOptions
- type ChannelOptions
- type ChannelUIObject
- type ConstantOptions
- type DiscoveryOptions
- type EndorsementPolicy
- type EventOptions
- type GetMSPID
- type Identity
- type InstallCCDeployOpt
- type InstallCCUIObject
- type InstantiateCCUIObject
- type InstantiateDeployOptions
- type InvokeQueryUIObject
- type MixOptions
- type Parameters
- type Policy
- type TimeOutOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurstOptions ¶
type BurstOptions struct { BurstFreq0 string `json:"burstFreq0,omitempty"` BurstDur0 string `json:"burstDur0,omitempty"` BurstFreq1 string `json:"burstFreq1,omitempty"` BurstDur1 string `json:"burstDur1,omitempty"` }
BurstOptions --
type CCOptions ¶
type CCOptions struct { KeyIdx []int `json:"keyIdx,omitempty"` KeyPayLoad []int `json:"keyPayLoad,omitempty"` KeyStart string `json:"keyStart,omitempty"` PayLoadMin string `json:"payLoadMin,omitempty"` PayLoadMax string `json:"payLoadMax,omitempty"` }
CCOptions --
type ChannelOptions ¶
type ChannelOptions struct { Name string `json:"name,omitempty"` ChannelTX string `json:"channelTX,omitempty"` Action string `json:"action,omitempty"` OrgName []string `json:"orgName,omitempty"` }
ChannelOptions --
type ChannelUIObject ¶
type ChannelUIObject struct { TransType string `json:"transType,omitempty"` TLS string `json:"TLS,omitempty"` ChannelOpt ChannelOptions `json:"channelOpt,omitempty"` ConnProfilePath string `json:"ConnProfilePath,omitempty"` OrdererSystemChannel string `json:"ordererSystemChannel,omitempty"` }
ChannelUIObject --
func (ChannelUIObject) ChannelConfigs ¶
func (c ChannelUIObject) ChannelConfigs(config inputStructs.Config, tls, action string) error
ChannelConfigs -- To create channel objects based on create, join and anchorpeer and perform the channel configs and to update connection profile
type ConstantOptions ¶
type ConstantOptions struct { RecHist string `json:"recHist,omitempty"` ConstFreq string `json:"constFreq,omitempty"` DevFreq string `json:"devFreq,omitempty"` }
ConstantOptions --
type DiscoveryOptions ¶
type DiscoveryOptions struct { Localhost string `json:"localHost,omitempty"` InitFreq int `json:"initFreq,omitempty"` }
DiscoveryOptions --
type EndorsementPolicy ¶
type EndorsementPolicy struct { Identities []Identity `json:"identities,omitempty"` Policy map[string][]Policy `json:"policy,omitempty"` }
EndorsementPolicy --
type EventOptions ¶
type EventOptions struct { Type string `json:"type,omitempty"` Listener string `json:"listener,omitempty"` TimeOut string `json:"timeout,omitempty"` }
EventOptions --
type GetMSPID ¶
type GetMSPID struct { Organizations map[string]struct { MSPID string `yaml:"mspid,omitempty"` } `yaml:"organizations,omitempty"` }
GetMSPID --
type Identity ¶
type Identity struct { Role struct { Name string `json:"name,omitempty"` MSPID string `json:"mspId,omitempty"` } `json:"role,omitempty"` }
Identity --
type InstallCCDeployOpt ¶
type InstallCCDeployOpt struct { ChainCodePath string `json:"chaincodePath,omitempty"` MetadataPath string `json:"metadataPath,omitempty"` Language string `json:"language,omitempty"` }
InstallCCDeployOpt --
type InstallCCUIObject ¶
type InstallCCUIObject struct { TransType string `json:"transType,omitempty"` TLS string `json:"TLS,omitempty"` ChainCodeID string `json:"chaincodeID,omitempty"` ChainCodeVer string `json:"chaincodeVer,omitempty"` ChannelOpt ChannelOptions `json:"channelOpt,omitempty"` DeployOpt InstallCCDeployOpt `json:"deploy,omitempty"` ConnProfilePath string `json:"ConnProfilePath,omitempty"` }
InstallCCUIObject --
func (InstallCCUIObject) InstallCC ¶
func (i InstallCCUIObject) InstallCC(config inputStructs.Config, tls string) error
InstallCC -- To install chaincode with the chaincode objects created
type InstantiateCCUIObject ¶
type InstantiateCCUIObject struct { TransType string `json:"transType,omitempty"` TLS string `json:"TLS,omitempty"` ChainCodeID string `json:"chaincodeID,omitempty"` ChainCodeVer string `json:"chaincodeVer,omitempty"` ConnProfilePath string `json:"ConnProfilePath,omitempty"` ChannelOpt ChannelOptions `json:"channelOpt,omitempty"` DeployOpt InstantiateDeployOptions `json:"deploy,omitempty"` TimeOutOpt TimeOutOptions `json:"timeoutOpt,timeoutOpt"` }
InstantiateCCUIObject --
func (InstantiateCCUIObject) InstantiateCC ¶
func (i InstantiateCCUIObject) InstantiateCC(config inputStructs.Config, tls, action string) error
InstantiateCC -- To instantiate/upgrade chaincode with the objects created and to update connection profile
type InstantiateDeployOptions ¶
type InstantiateDeployOptions struct { Function string `json:"fcn,omitempty"` Arguments []string `json:"args,omitempty"` Endorsement *EndorsementPolicy `json:"endorsement,omitempty"` CollectionsConfigPath string `json:"collectionsConfigPath,omitempty"` }
InstantiateDeployOptions --
type InvokeQueryUIObject ¶
type InvokeQueryUIObject struct { LogLevel string `json:"logLevel,omitempty"` ChaincodeID string `json:"chaincodeID,omitempty"` InvokeCheck string `json:"invokeCheck,omitempty"` TransMode string `json:"transMode,omitempty"` TransType string `json:"transType,omitempty"` InvokeType string `json:"invokeType,omitempty"` TargetPeers string `json:"targetPeers,omitempty"` TLS string `json:"TLS,omitempty"` NProcPerOrg string `json:"nProcPerOrg,omitempty"` NRequest string `json:"nRequest,omitempty"` RunDur string `json:"runDur,omitempty"` ChannelOpt ChannelOptions `json:"channelOpt,omitempty"` BurstOpt BurstOptions `json:"burstOpt,omitempty"` MixOpt MixOptions `json:"mixOpt,omitempty"` ConstOpt ConstantOptions `json:"constantOpt,omitempty"` EventOpt EventOptions `json:"eventOpt,omitempty"` DiscoveryOpt DiscoveryOptions `json:"discoveryOpt,omitempty"` CCType string `json:"ccType,omitempty"` CCOpt CCOptions `json:"ccOpt,omitempty"` Parameters map[string]Parameters `json:"invoke,omitempty"` ConnProfilePath string `json:"ConnProfilePath,omitempty"` TimeOutOpt TimeOutOptions `json:"timeoutOpt,timeoutOpt"` }
InvokeQueryUIObject --
func (InvokeQueryUIObject) InvokeQuery ¶
func (i InvokeQueryUIObject) InvokeQuery(config inputStructs.Config, tls, action string) error
InvokeQuery -- To perform invoke/query with the objects created
type MixOptions ¶
type MixOptions struct {
MixFreq string `json:"mixFreq,omitempty"`
}
MixOptions --
type Parameters ¶
Parameters --
type TimeOutOptions ¶
type TimeOutOptions struct { PreConfig string `json:"preConfig,omitempty"` Request string `json:"request,omitempty"` }
TimeOutOptions --