channel

package
v0.0.0-...-9a3149e Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 Cmd

func Cmd() *cobra.Command

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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