Documentation
¶
Index ¶
- Constants
- func AddPolicies(cg *cb.ConfigGroup, policyMap map[string]*genesisconfig.Policy, ...) error
- func ConfigTemplateFromGroup(conf *genesisconfig.Profile, cg *cb.ConfigGroup) (*cb.ConfigGroup, error)
- func DefaultConfigTemplate(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)
- func HasSkippedForeignOrgs(conf *genesisconfig.Profile) error
- func MakeChannelCreationTransaction(channelID string, signer identity.SignerSerializer, ...) (*cb.Envelope, error)
- func MakeChannelCreationTransactionFromTemplate(channelID string, signer identity.SignerSerializer, ...) (*cb.Envelope, error)
- func MakeChannelCreationTransactionWithSystemChannelContext(channelID string, signer identity.SignerSerializer, ...) (*cb.Envelope, error)
- func NewApplicationGroup(conf *genesisconfig.Application) (*cb.ConfigGroup, error)
- func NewApplicationOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
- func NewChannelCreateConfigUpdate(channelID string, conf *genesisconfig.Profile, templateConfig *cb.ConfigGroup) (*cb.ConfigUpdate, error)
- func NewChannelGroup(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)
- func NewConsortiumGroup(conf *genesisconfig.Consortium) (*cb.ConfigGroup, error)
- func NewConsortiumOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
- func NewConsortiumsGroup(conf map[string]*genesisconfig.Consortium) (*cb.ConfigGroup, error)
- func NewOrdererGroup(conf *genesisconfig.Orderer) (*cb.ConfigGroup, error)
- func NewOrdererOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
- type Bootstrapper
Constants ¶
View Source
const ( ConsensusTypeSolo = "solo" ConsensusTypeKafka = "kafka" ConsensusTypeEtcdRaft = "etcdraft" BlockValidationPolicyKey = "BlockValidation" OrdererAdminsPolicy = "/Channel/Orderer/Admins" SignaturePolicyType = "Signature" ImplicitMetaPolicyType = "ImplicitMeta" )
Variables ¶
This section is empty.
Functions ¶
func AddPolicies ¶
func AddPolicies(cg *cb.ConfigGroup, policyMap map[string]*genesisconfig.Policy, modPolicy string) error
func ConfigTemplateFromGroup ¶
func ConfigTemplateFromGroup(conf *genesisconfig.Profile, cg *cb.ConfigGroup) (*cb.ConfigGroup, error)
func DefaultConfigTemplate ¶
func DefaultConfigTemplate(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)
func HasSkippedForeignOrgs ¶
func HasSkippedForeignOrgs(conf *genesisconfig.Profile) error
func MakeChannelCreationTransaction ¶
func MakeChannelCreationTransaction( channelID string, signer identity.SignerSerializer, conf *genesisconfig.Profile, ) (*cb.Envelope, error)
func MakeChannelCreationTransactionFromTemplate ¶
func MakeChannelCreationTransactionFromTemplate( channelID string, signer identity.SignerSerializer, conf *genesisconfig.Profile, template *cb.ConfigGroup, ) (*cb.Envelope, error)
func MakeChannelCreationTransactionWithSystemChannelContext ¶
func MakeChannelCreationTransactionWithSystemChannelContext( channelID string, signer identity.SignerSerializer, conf, systemChannelConf *genesisconfig.Profile, ) (*cb.Envelope, error)
func NewApplicationGroup ¶
func NewApplicationGroup(conf *genesisconfig.Application) (*cb.ConfigGroup, error)
func NewApplicationOrgGroup ¶
func NewApplicationOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
func NewChannelCreateConfigUpdate ¶
func NewChannelCreateConfigUpdate(channelID string, conf *genesisconfig.Profile, templateConfig *cb.ConfigGroup) (*cb.ConfigUpdate, error)
func NewChannelGroup ¶
func NewChannelGroup(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)
func NewConsortiumGroup ¶
func NewConsortiumGroup(conf *genesisconfig.Consortium) (*cb.ConfigGroup, error)
func NewConsortiumOrgGroup ¶
func NewConsortiumOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
func NewConsortiumsGroup ¶
func NewConsortiumsGroup(conf map[string]*genesisconfig.Consortium) (*cb.ConfigGroup, error)
func NewOrdererGroup ¶
func NewOrdererGroup(conf *genesisconfig.Orderer) (*cb.ConfigGroup, error)
func NewOrdererOrgGroup ¶
func NewOrdererOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)
Types ¶
type Bootstrapper ¶
type Bootstrapper struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *genesisconfig.Profile) *Bootstrapper
func NewBootstrapper ¶
func NewBootstrapper(config *genesisconfig.Profile) (*Bootstrapper, error)
func (*Bootstrapper) GenesisBlock ¶
func (bs *Bootstrapper) GenesisBlock() *cb.Block
func (*Bootstrapper) GenesisBlockForChannel ¶
func (bs *Bootstrapper) GenesisBlockForChannel(channelID string) *cb.Block
Click to show internal directories.
Click to hide internal directories.