Documentation
¶
Index ¶
- func AsByteArgs(strArgs []string) [][]byte
- func GetChaincodePolicy(policyString string) (*common.SignaturePolicyEnvelope, error)
- func GetCollectionConfigFromFile(path string) ([]*pb.CollectionConfig, error)
- func GetCollectionsConfigFromBytes(bytes []byte) ([]*pb.CollectionConfig, error)
- type CollectionConfigJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsByteArgs ¶
AsByteArgs converts the given string array into an array of byte arrays so that they may be passed as chaincode arguments.
func GetChaincodePolicy ¶
func GetChaincodePolicy(policyString string) (*common.SignaturePolicyEnvelope, error)
GetChaincodePolicy returns the signature policy from the given policy string
func GetCollectionConfigFromFile ¶
func GetCollectionConfigFromFile(path string) ([]*pb.CollectionConfig, error)
GetCollectionConfigFromFile returns the collection config from the given file
func GetCollectionsConfigFromBytes ¶
func GetCollectionsConfigFromBytes(bytes []byte) ([]*pb.CollectionConfig, error)
GetCollectionsConfigFromBytes returns the collection config from the given byte array
Types ¶
type CollectionConfigJSON ¶
type CollectionConfigJSON struct {
Name string `json:"name"`
Policy string `json:"policy"`
RequiredCount int32 `json:"requiredPeerCount"`
MaxPeerCount int32 `json:"maxPeerCount"`
BlockToLive uint64 `json:"blockToLive"`
MemberOnlyRead bool `json:"memberOnlyRead"`
MemberOnlyWrite bool `json:"memberOnlyWrite"`
}
CollectionConfigJSON contains the parameters for a collection configuration
Click to show internal directories.
Click to hide internal directories.