Documentation ¶
Index ¶
- Constants
- func Cmd() *cobra.Command
- func UpdateChannelConfig(sdk *fabsdk.FabricSDK, updateOptions *utilities.UpdateOptions) error
- type ChannelConfig
- func (c *ChannelConfig) ChannelAddOrg(org string, orgListMap map[string]interface{}, orderer string, ...) error
- func (c *ChannelConfig) FilterJoinedPeers(channelID string, connection *common.ConnectionProfile, ...) ([]string, error)
- func (c *ChannelConfig) SingleChannelCreate(org string, channelName string) error
- func (c *ChannelConfig) SingleChannelJoin(org, peer string, channelName string) error
- func (c *ChannelConfig) SingleChannelQuery(org string, iterationIndex int) error
- func (c *ChannelConfig) SingleChannelUpdate(org string, channelName string) error
Constants ¶
View Source
const ( CLIENT_ORGANIZATION = "client.organization" // defined in fabric-sdk-go config yaml CH_NAME_PREFIX = "channelNamePrefix" CH_NAME = "channelName" CH_NAME_LIST = "channelNameList" PREFIX_OFFSET = "prefixOffset" CH_CONSORTIUM = "channelConsortium" CH_PEER_ORGS = "channelOrgs" CH_ORDERER_NAME = "ordererName" CH_PEERS = "peers" // define the peers that will join the channel APPLICATION_CAPABILITY = "applicationCapability" // use to define application capability // Orderer channel configurations ORDERER_ORG = "ordererOrgName" CH_BATCH_TIMEOUT = "batchTimeout" CH_BATCH_SIZE_MAX_MESSAGE_COUNT = "maxMessageCount" CH_BATCH_SIZE_PREFERRED_MAX_BATES = "preferredMaxBytes" CH_ORDERER_ADDRESSES_ACTION = "ordererAddressesAction" CH_ORDERER_ADDRESSES = "ordererAddresses" // Peer channel Configurations ANCHOR_PEERS = "anchorPeers" // channel add new org config file path ORG_CONFIG_PATH = "orgConfigPath" )
View Source
const CHANNEL_CREATE = "channel.create"
View Source
const CHANNEL_HEIGHT = "channel.%s.height" // %s represents channel id
View Source
const CHANNEL_JOIN = "channel.join"
View Source
const CHANNEL_QUERY = "channel.query"
View Source
const CHANNEL_UPDATE = "channel.update"
Variables ¶
This section is empty.
Functions ¶
func UpdateChannelConfig ¶
func UpdateChannelConfig(sdk *fabsdk.FabricSDK, updateOptions *utilities.UpdateOptions) error
Types ¶
type ChannelConfig ¶
type ChannelConfig struct { *hfrdcommon.Base // contains filtered or unexported fields }
func (*ChannelConfig) ChannelAddOrg ¶
func (c *ChannelConfig) ChannelAddOrg(org string, orgListMap map[string]interface{}, orderer string, newOrgConfigFile string, iterationIndex int) error
ChannelAddOrg add a new org to channel
func (*ChannelConfig) FilterJoinedPeers ¶
func (c *ChannelConfig) FilterJoinedPeers(channelID string, connection *common.ConnectionProfile, orgClient *resmgmt.Client) ([]string, error)
func (*ChannelConfig) SingleChannelCreate ¶
func (c *ChannelConfig) SingleChannelCreate(org string, channelName string) error
func (*ChannelConfig) SingleChannelJoin ¶
func (c *ChannelConfig) SingleChannelJoin(org, peer string, channelName string) error
func (*ChannelConfig) SingleChannelQuery ¶
func (c *ChannelConfig) SingleChannelQuery(org string, iterationIndex int) error
func (*ChannelConfig) SingleChannelUpdate ¶
func (c *ChannelConfig) SingleChannelUpdate(org string, channelName string) error
Click to show internal directories.
Click to hide internal directories.