Documentation ¶
Index ¶
- Constants
- func GetChannelParamsModifiedConfig(configBytes []byte, channelOpts *ChannelOpts, sysChannel bool) []byte
- func GetConsensusStateModifiedConfig(configBytes []byte, consensus *ConsensusOpts, raftOpts *RaftOpts, ...) []byte
- func GetModifiedConfig(configBytes, newOrgConfigBytes []byte, mod Mod, ordererOrg, sysChannel bool) []byte
- func GetNewOrgConfigWithFielePath(filePath, mspID string) []byte
- func GetNewestConfigWithConfigBlock(resMgmt *resmgmt.Client, channelName string, sysChannel bool) []byte
- func GetOrgsTargetPeers(sdk *fabsdk.FabricSDK, orgsName []string) ([]string, error)
- func GetSigningIdentities(ctx context.ClientProvider, orgs []string) []msp.SigningIdentity
- func GetStdConfigBytes(mspID string, configBytes []byte) []byte
- func GetStdUpdateEnvelopBytes(channelName string, updateEnvelopBytes []byte) []byte
- func GetUpdateEnvelopeProtoBytes(configBytes, modifiedConfigBytes []byte, channelName string) []byte
- func SDKNew(fabconfig string) *fabsdk.FabricSDK
- type Block
- type ChannelOpts
- type Config
- type ConsensusOpts
- type ConsensusState
- type Consenters
- type Mod
- type RaftOpts
- type SystemBlock
- type SystemConfig
Constants ¶
View Source
const ( ModifiedModAdd Mod = "Add" ModifiedModDel Mod = "Del" StateNormal ConsensusState = "STATE_NORMAL" StateMaintenance ConsensusState = "STATE_MAINTENANCE" ConsensusEtcdRaft = "etcdraft" )
Variables ¶
This section is empty.
Functions ¶
func GetChannelParamsModifiedConfig ¶
func GetChannelParamsModifiedConfig(configBytes []byte, channelOpts *ChannelOpts, sysChannel bool) []byte
func GetConsensusStateModifiedConfig ¶
func GetConsensusStateModifiedConfig(configBytes []byte, consensus *ConsensusOpts, raftOpts *RaftOpts, sysChannel bool) []byte
func GetModifiedConfig ¶
func GetOrgsTargetPeers ¶
func GetSigningIdentities ¶
func GetSigningIdentities(ctx context.ClientProvider, orgs []string) []msp.SigningIdentity
func GetStdConfigBytes ¶
Types ¶
type Block ¶
type Block struct { Data struct { Data []struct { Payload struct { Data struct { Config *Config `json:"config"` LastUpdate map[string]interface{} `json:"last_update"` } `json:"data"` Header map[string]interface{} `json:"header"` } `json:"payload"` Signature string `json:"signature"` } `json:"data"` } `json:"data"` Header map[string]interface{} `json:"header"` Metadata map[string]interface{} `json:"metadata"` }
type ChannelOpts ¶
type Config ¶
type Config struct { ChannelGroup struct { Groups struct { Application struct { Groups map[string]interface{} `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"Application"` Orderer struct { Groups map[string]interface{} `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"Orderer"` } `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"channel_group"` Sequence string `json:"sequence"` }
type ConsensusOpts ¶
type ConsensusState ¶
type ConsensusState string
func GetConsensusState ¶
func GetConsensusState(status string) ConsensusState
type Consenters ¶
type SystemBlock ¶
type SystemBlock struct { Data struct { Data []struct { Payload struct { Data struct { Config *SystemConfig `json:"config"` LastUpdate map[string]interface{} `json:"last_update"` } `json:"data"` Header map[string]interface{} `json:"header"` } `json:"payload"` Signature string `json:"signature"` } `json:"data"` } `json:"data"` Header map[string]interface{} `json:"header"` Metadata map[string]interface{} `json:"metadata"` }
type SystemConfig ¶
type SystemConfig struct { ChannelGroup struct { Groups struct { Consortiums struct { Groups struct { SampleConsortium struct { Groups map[string]interface{} `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"SampleConsortium"` } `json:"groups"` } `json:"Consortiums"` Orderer struct { Groups map[string]interface{} `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"Orderer"` } `json:"groups"` ModPolicy string `json:"mod_policy"` Policies map[string]interface{} `json:"policies"` Values map[string]interface{} `json:"values"` Version string `json:"version"` } `json:"channel_group"` Sequence string `json:"sequence"` }
Click to show internal directories.
Click to hide internal directories.