fabapi

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSignedConfigEnvelope

func CreateSignedConfigEnvelope(orgs []configext.Organization, marshaledUpdate []byte) ([]byte, error)

func GenerateApplicationGenesisBlock

func GenerateApplicationGenesisBlock(application configext.Application, orderer configext.Orderer,
	capabilities []string, policies map[string]configtx.Policy) ([]byte, error)

func GenerateOrderingGenesisBlock

func GenerateOrderingGenesisBlock(orderer configext.Orderer, capabilities []string, policies map[string]configtx.Policy) ([]byte, error)

func GenerateStandardApplicationGenesisBlock

func GenerateStandardApplicationGenesisBlock(application configext.Application, orderer configext.Orderer) ([]byte, error)

func GenerateStandardOrderingGenesisBlock

func GenerateStandardOrderingGenesisBlock(orderer configext.Orderer) ([]byte, error)

func UpdateOrder

func UpdateOrder(orderer configext.Orderer, latestConfig *cb.Config, updateType ActionType) ([]byte, error)

func UpdatePeer

func UpdatePeer(application configext.Application, orderer configext.Orderer, latestConfig *cb.Config, actionType ActionType) ([]byte, error)

Types

type ActionType

type ActionType string
const (
	ActionAdd    ActionType = "ADD"
	ActionRemove ActionType = "REMOVE"
	ActionUpdate ActionType = "UPDATE"
)

Jump to

Keyboard shortcuts

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