Documentation
¶
Index ¶
- Variables
- type ApplicationConfig
- type ApplicationPolicy
- type Block
- type BlockWithPrivateData
- type BlocksResponse
- type Ca
- type ChaincodeApproval
- type Channel
- type ChannelACL
- type ChannelAnchorPeer
- type ChannelChaincode
- type ChannelConfig
- type ChannelMsp
- type ChannelOrg
- type ChannelPeer
- type ChannelPolicy
- type CreateCAInput
- type CreateOrdererInput
- type CreatePeerInput
- type CryptoConfig
- type LightChannel
- type MSPPrincipal
- type MSPPrincipalCombined
- type MSPPrincipalRole
- type NameAndNamespace
- type Namespace
- type NetworkAddress
- type NodeOUs
- type OUIdentifier
- type Orderer
- type OrdererConfig
- type OrdererConfigBatchSize
- type OrdererConfigRaft
- type OrdererConfigRaftConsenter
- type OrdererConfigRaftOptions
- type PDCRead
- type PDCWrite
- type Peer
- type PrivateDataCollection
- type SignaturePolicy
- type SignaturePolicyNOutOf
- type SignaturePolicyRule
- type SignaturePolicySignedBy
- type StorageClass
- type Transaction
- type TransactionRead
- type TransactionType
- type TransactionWithPrivateData
- type TransactionWrite
- type UpdateCAInput
- type UpdateeOrdererInput
- type UpdateePeerInput
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
Policies []*ChannelPolicy `json:"policies"`
Acls []*ChannelACL `json:"acls"`
Capabilities []string `json:"capabilities"`
Organizations []*ChannelOrg `json:"organizations"`
}
type ApplicationPolicy ¶
type ApplicationPolicy struct {
ChannelConfigPolicy string `json:"channelConfigPolicy"`
SignaturePolicy *SignaturePolicy `json:"signaturePolicy"`
}
type BlockWithPrivateData ¶
type BlocksResponse ¶
type ChaincodeApproval ¶
type Channel ¶
type Channel struct {
Name string `json:"name"`
RawConfig string `json:"rawConfig"`
ProtoConfig string `json:"protoConfig"`
ChannelConfig *ChannelConfig `json:"channelConfig"`
Application *ApplicationConfig `json:"application"`
Orderer *OrdererConfig `json:"orderer"`
Height int `json:"height"`
}
type ChannelACL ¶
type ChannelAnchorPeer ¶
type ChannelChaincode ¶
type ChannelChaincode struct {
Name string `json:"name"`
Version string `json:"version"`
Sequence int `json:"sequence"`
SignaturePolicy *SignaturePolicy `json:"signaturePolicy"`
EndorsementPlugin string `json:"endorsementPlugin"`
ValidationPlugin string `json:"validationPlugin"`
ConfigPolicy string `json:"configPolicy"`
PrivateDataCollections []*PrivateDataCollection `json:"privateDataCollections"`
Approvals []*ChaincodeApproval `json:"approvals"`
}
type ChannelConfig ¶
type ChannelConfig struct {
Policies []*ChannelPolicy `json:"policies"`
Capabilities []string `json:"capabilities"`
}
type ChannelMsp ¶
type ChannelMsp struct {
Name string `json:"name"`
RootCerts []string `json:"rootCerts"`
IntermediateCerts []string `json:"intermediateCerts"`
Admins []string `json:"admins"`
RevocationList []string `json:"revocationList"`
TLSRootCerts []string `json:"tlsRootCerts"`
TLSIntermediateCerts []string `json:"tlsIntermediateCerts"`
}
type ChannelOrg ¶
type ChannelOrg struct {
ModPolicy string `json:"modPolicy"`
MspID string `json:"mspID"`
Policies []*ChannelPolicy `json:"policies"`
Msp *ChannelMsp `json:"msp"`
OrdererEndpoints []string `json:"ordererEndpoints"`
AnchorPeer []*NetworkAddress `json:"anchorPeer"`
NodeOUs *NodeOUs `json:"nodeOUs"`
CryptoConfig *CryptoConfig `json:"cryptoConfig"`
Ous []*OUIdentifier `json:"ous"`
}
type ChannelPeer ¶
type ChannelPolicy ¶
type CreateCAInput ¶
type CreateCAInput struct {
Yaml string `json:"yaml"`
}
type CreateOrdererInput ¶
type CreateOrdererInput struct {
Yaml string `json:"yaml"`
}
type CreatePeerInput ¶
type CreatePeerInput struct {
Yaml string `json:"yaml"`
}
type CryptoConfig ¶
type LightChannel ¶
type LightChannel struct {
Name string `json:"name"`
}
type MSPPrincipal ¶
type MSPPrincipal struct {
Combined *MSPPrincipalCombined `json:"combined"`
Role *MSPPrincipalRole `json:"role"`
}
type MSPPrincipalCombined ¶
type MSPPrincipalCombined struct {
Classification string `json:"classification"`
MspPrincipals []*MSPPrincipal `json:"mspPrincipals"`
}
type MSPPrincipalRole ¶
type NameAndNamespace ¶
type NetworkAddress ¶
type NodeOUs ¶
type NodeOUs struct {
Enable bool `json:"enable"`
ClientOUIdentifier *OUIdentifier `json:"clientOUIdentifier"`
PeerOUIdentifier *OUIdentifier `json:"peerOUIdentifier"`
AdminOUIdentifier *OUIdentifier `json:"adminOUIdentifier"`
OrdererOUIdentifier *OUIdentifier `json:"ordererOUIdentifier"`
}
type OUIdentifier ¶
type OrdererConfig ¶
type OrdererConfig struct {
Type string `json:"type"`
BatchTimeout int `json:"batchTimeout"`
BatchSize *OrdererConfigBatchSize `json:"batchSize"`
MaxChannels int `json:"maxChannels"`
Capabilities []string `json:"capabilities"`
State string `json:"state"`
Policies []*ChannelPolicy `json:"policies"`
EtcdDraft *OrdererConfigRaft `json:"etcdDraft"`
Organizations []*ChannelOrg `json:"organizations"`
}
type OrdererConfigBatchSize ¶
type OrdererConfigRaft ¶
type OrdererConfigRaft struct {
Consenters []*OrdererConfigRaftConsenter `json:"consenters"`
Options *OrdererConfigRaftOptions `json:"options"`
}
type OrdererConfigRaftConsenter ¶
type OrdererConfigRaftConsenter struct {
Address *NetworkAddress `json:"address"`
ClientTLSCert string `json:"clientTlsCert"`
ServerTLSCert string `json:"serverTlsCert"`
}
type PrivateDataCollection ¶
type PrivateDataCollection struct {
Name string `json:"name"`
RequiredPeerCount int `json:"requiredPeerCount"`
MaxPeerCount int `json:"maxPeerCount"`
BlockToLive int `json:"blockToLive"`
MemberOnlyRead bool `json:"memberOnlyRead"`
MemberOnlyWrite bool `json:"memberOnlyWrite"`
EndorsementPolicy *ApplicationPolicy `json:"endorsementPolicy"`
MemberOrgsPolicy *SignaturePolicy `json:"memberOrgsPolicy"`
}
type SignaturePolicy ¶
type SignaturePolicy struct {
Version int `json:"version"`
Rule *SignaturePolicyRule `json:"rule"`
Principals []*MSPPrincipal `json:"principals"`
}
type SignaturePolicyNOutOf ¶
type SignaturePolicyNOutOf struct {
N int `json:"n"`
Rules []*SignaturePolicyRule `json:"rules"`
}
type SignaturePolicyRule ¶
type SignaturePolicyRule struct {
Type string `json:"type"`
NoutOf *SignaturePolicyNOutOf `json:"noutOf"`
SignedBy *SignaturePolicySignedBy `json:"signedBy"`
}
type SignaturePolicySignedBy ¶
type SignaturePolicySignedBy struct {
SignedBy int `json:"signedBy"`
}
type StorageClass ¶
type StorageClass struct {
Name string `json:"name"`
}
type Transaction ¶
type Transaction struct {
TxID string `json:"txID"`
Type TransactionType `json:"type"`
CreatedAt time.Time `json:"createdAt"`
Version string `json:"version"`
Path *string `json:"path"`
Response *string `json:"response"`
Request *string `json:"request"`
Chaincode string `json:"chaincode"`
Writes []*TransactionWrite `json:"writes"`
Reads []*TransactionRead `json:"reads"`
}
type TransactionRead ¶
type TransactionType ¶
type TransactionType string
const ( TransactionTypeMessage TransactionType = "MESSAGE" TransactionTypeConfig TransactionType = "CONFIG" TransactionTypeConfigUpdate TransactionType = "CONFIG_UPDATE" TransactionTypeEndorserTransaction TransactionType = "ENDORSER_TRANSACTION" TransactionTypeOrdererTransaction TransactionType = "ORDERER_TRANSACTION" TransactionTypeDeliverSeekInfo TransactionType = "DELIVER_SEEK_INFO" TransactionTypeChaincodePackage TransactionType = "CHAINCODE_PACKAGE" )
func (TransactionType) IsValid ¶
func (e TransactionType) IsValid() bool
func (TransactionType) MarshalGQL ¶
func (e TransactionType) MarshalGQL(w io.Writer)
func (TransactionType) String ¶
func (e TransactionType) String() string
func (*TransactionType) UnmarshalGQL ¶
func (e *TransactionType) UnmarshalGQL(v interface{}) error
type TransactionWithPrivateData ¶
type TransactionWithPrivateData struct {
TxID string `json:"txID"`
Type TransactionType `json:"type"`
CreatedAt time.Time `json:"createdAt"`
Version string `json:"version"`
Path *string `json:"path"`
Response *string `json:"response"`
Request *string `json:"request"`
Chaincode string `json:"chaincode"`
Writes []*TransactionWrite `json:"writes"`
Reads []*TransactionRead `json:"reads"`
PdcWrites []*PDCWrite `json:"pdcWrites"`
PdcReads []*PDCRead `json:"pdcReads"`
}
type TransactionWrite ¶
type UpdateCAInput ¶
type UpdateCAInput struct {
Yaml string `json:"yaml"`
}
type UpdateeOrdererInput ¶
type UpdateeOrdererInput struct {
Yaml string `json:"yaml"`
}
type UpdateePeerInput ¶
type UpdateePeerInput struct {
Yaml string `json:"yaml"`
}
Click to show internal directories.
Click to hide internal directories.