Documentation ¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- Variables
- type CollectionHashedReadWriteSet
- func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int)
- func (m *CollectionHashedReadWriteSet) GetCollectionName() string
- func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte
- func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte
- func (*CollectionHashedReadWriteSet) ProtoMessage()
- func (m *CollectionHashedReadWriteSet) Reset()
- func (m *CollectionHashedReadWriteSet) String() string
- func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown()
- func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message)
- func (m *CollectionHashedReadWriteSet) XXX_Size() int
- func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error
- type CollectionPvtReadWriteSet
- func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int)
- func (m *CollectionPvtReadWriteSet) GetCollectionName() string
- func (m *CollectionPvtReadWriteSet) GetRwset() []byte
- func (*CollectionPvtReadWriteSet) ProtoMessage()
- func (m *CollectionPvtReadWriteSet) Reset()
- func (m *CollectionPvtReadWriteSet) String() string
- func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown()
- func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message)
- func (m *CollectionPvtReadWriteSet) XXX_Size() int
- func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error
- type DynamicCollectionHashedReadWriteSet
- type DynamicNsReadWriteSet
- func (dnrws *DynamicNsReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)
- func (dnrws *DynamicNsReadWriteSet) DynamicSliceFields() []string
- func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFields() []string
- func (dnrws *DynamicNsReadWriteSet) Underlying() proto.Message
- type NsPvtReadWriteSet
- func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int)
- func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet
- func (m *NsPvtReadWriteSet) GetNamespace() string
- func (*NsPvtReadWriteSet) ProtoMessage()
- func (m *NsPvtReadWriteSet) Reset()
- func (m *NsPvtReadWriteSet) String() string
- func (m *NsPvtReadWriteSet) XXX_DiscardUnknown()
- func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NsPvtReadWriteSet) XXX_Merge(src proto.Message)
- func (m *NsPvtReadWriteSet) XXX_Size() int
- func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error
- type NsReadWriteSet
- func (*NsReadWriteSet) Descriptor() ([]byte, []int)
- func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet
- func (m *NsReadWriteSet) GetNamespace() string
- func (m *NsReadWriteSet) GetRwset() []byte
- func (*NsReadWriteSet) ProtoMessage()
- func (m *NsReadWriteSet) Reset()
- func (m *NsReadWriteSet) String() string
- func (m *NsReadWriteSet) XXX_DiscardUnknown()
- func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NsReadWriteSet) XXX_Merge(src proto.Message)
- func (m *NsReadWriteSet) XXX_Size() int
- func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error
- type TxPvtReadWriteSet
- func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int)
- func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel
- func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet
- func (*TxPvtReadWriteSet) ProtoMessage()
- func (p *TxPvtReadWriteSet) Remove(ns, coll string)
- func (m *TxPvtReadWriteSet) Reset()
- func (m *TxPvtReadWriteSet) String() string
- func (m *TxPvtReadWriteSet) XXX_DiscardUnknown()
- func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxPvtReadWriteSet) XXX_Merge(src proto.Message)
- func (m *TxPvtReadWriteSet) XXX_Size() int
- func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error
- type TxReadWriteSet
- func (*TxReadWriteSet) Descriptor() ([]byte, []int)
- func (txrws *TxReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)
- func (txrws *TxReadWriteSet) DynamicSliceFields() []string
- func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel
- func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet
- func (*TxReadWriteSet) ProtoMessage()
- func (m *TxReadWriteSet) Reset()
- func (m *TxReadWriteSet) String() string
- func (m *TxReadWriteSet) XXX_DiscardUnknown()
- func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxReadWriteSet) XXX_Merge(src proto.Message)
- func (m *TxReadWriteSet) XXX_Size() int
- func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error
- type TxReadWriteSet_DataModel
Constants ¶
This section is empty.
Variables ¶
var TxReadWriteSet_DataModel_name = map[int32]string{
0: "KV",
}
var TxReadWriteSet_DataModel_value = map[string]int32{
"KV": 0,
}
Functions ¶
This section is empty.
Types ¶
type CollectionHashedReadWriteSet ¶ added in v1.1.0
type CollectionHashedReadWriteSet struct { CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` HashedRwset []byte `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"` PvtRwsetHash []byte `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CollectionHashedReadWriteSet encapsulate the hashed representation for the private read-write set for a collection
func (*CollectionHashedReadWriteSet) Descriptor ¶ added in v1.1.0
func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int)
func (*CollectionHashedReadWriteSet) GetCollectionName ¶ added in v1.1.0
func (m *CollectionHashedReadWriteSet) GetCollectionName() string
func (*CollectionHashedReadWriteSet) GetHashedRwset ¶ added in v1.1.0
func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte
func (*CollectionHashedReadWriteSet) GetPvtRwsetHash ¶ added in v1.1.0
func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte
func (*CollectionHashedReadWriteSet) ProtoMessage ¶ added in v1.1.0
func (*CollectionHashedReadWriteSet) ProtoMessage()
func (*CollectionHashedReadWriteSet) Reset ¶ added in v1.1.0
func (m *CollectionHashedReadWriteSet) Reset()
func (*CollectionHashedReadWriteSet) String ¶ added in v1.1.0
func (m *CollectionHashedReadWriteSet) String() string
func (*CollectionHashedReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown()
func (*CollectionHashedReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionHashedReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message)
func (*CollectionHashedReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *CollectionHashedReadWriteSet) XXX_Size() int
func (*CollectionHashedReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error
type CollectionPvtReadWriteSet ¶ added in v1.1.0
type CollectionPvtReadWriteSet struct { CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CollectionPvtReadWriteSet encapsulates the private read-write set for a collection
func (*CollectionPvtReadWriteSet) Descriptor ¶ added in v1.1.0
func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int)
func (*CollectionPvtReadWriteSet) GetCollectionName ¶ added in v1.1.0
func (m *CollectionPvtReadWriteSet) GetCollectionName() string
func (*CollectionPvtReadWriteSet) GetRwset ¶ added in v1.1.0
func (m *CollectionPvtReadWriteSet) GetRwset() []byte
func (*CollectionPvtReadWriteSet) ProtoMessage ¶ added in v1.1.0
func (*CollectionPvtReadWriteSet) ProtoMessage()
func (*CollectionPvtReadWriteSet) Reset ¶ added in v1.1.0
func (m *CollectionPvtReadWriteSet) Reset()
func (*CollectionPvtReadWriteSet) String ¶ added in v1.1.0
func (m *CollectionPvtReadWriteSet) String() string
func (*CollectionPvtReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown()
func (*CollectionPvtReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionPvtReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message)
func (*CollectionPvtReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *CollectionPvtReadWriteSet) XXX_Size() int
func (*CollectionPvtReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error
type DynamicCollectionHashedReadWriteSet ¶ added in v1.4.0
type DynamicCollectionHashedReadWriteSet struct { *CollectionHashedReadWriteSet DataModel TxReadWriteSet_DataModel }
func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto ¶ added in v1.4.0
func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields ¶ added in v1.4.0
func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields() []string
func (*DynamicCollectionHashedReadWriteSet) Underlying ¶ added in v1.4.0
func (dchrws *DynamicCollectionHashedReadWriteSet) Underlying() proto.Message
type DynamicNsReadWriteSet ¶ added in v1.4.0
type DynamicNsReadWriteSet struct { *NsReadWriteSet DataModel TxReadWriteSet_DataModel }
func (*DynamicNsReadWriteSet) DynamicSliceFieldProto ¶ added in v1.4.0
func (*DynamicNsReadWriteSet) DynamicSliceFields ¶ added in v1.4.0
func (dnrws *DynamicNsReadWriteSet) DynamicSliceFields() []string
func (*DynamicNsReadWriteSet) StaticallyOpaqueFieldProto ¶ added in v1.4.0
func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*DynamicNsReadWriteSet) StaticallyOpaqueFields ¶ added in v1.4.0
func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFields() []string
func (*DynamicNsReadWriteSet) Underlying ¶ added in v1.4.0
func (dnrws *DynamicNsReadWriteSet) Underlying() proto.Message
type NsPvtReadWriteSet ¶ added in v1.1.0
type NsPvtReadWriteSet struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` CollectionPvtRwset []*CollectionPvtReadWriteSet `protobuf:"bytes,2,rep,name=collection_pvt_rwset,json=collectionPvtRwset,proto3" json:"collection_pvt_rwset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
NsPvtReadWriteSet encapsulates the private read-write set for a chaincode
func (*NsPvtReadWriteSet) Descriptor ¶ added in v1.1.0
func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int)
func (*NsPvtReadWriteSet) GetCollectionPvtRwset ¶ added in v1.1.0
func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet
func (*NsPvtReadWriteSet) GetNamespace ¶ added in v1.1.0
func (m *NsPvtReadWriteSet) GetNamespace() string
func (*NsPvtReadWriteSet) ProtoMessage ¶ added in v1.1.0
func (*NsPvtReadWriteSet) ProtoMessage()
func (*NsPvtReadWriteSet) Reset ¶ added in v1.1.0
func (m *NsPvtReadWriteSet) Reset()
func (*NsPvtReadWriteSet) String ¶ added in v1.1.0
func (m *NsPvtReadWriteSet) String() string
func (*NsPvtReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *NsPvtReadWriteSet) XXX_DiscardUnknown()
func (*NsPvtReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NsPvtReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *NsPvtReadWriteSet) XXX_Merge(src proto.Message)
func (*NsPvtReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *NsPvtReadWriteSet) XXX_Size() int
func (*NsPvtReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error
type NsReadWriteSet ¶
type NsReadWriteSet struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` CollectionHashedRwset []*CollectionHashedReadWriteSet `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
NsReadWriteSet encapsulates the read-write set for a chaincode
func (*NsReadWriteSet) Descriptor ¶
func (*NsReadWriteSet) Descriptor() ([]byte, []int)
func (*NsReadWriteSet) GetCollectionHashedRwset ¶ added in v1.1.0
func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet
func (*NsReadWriteSet) GetNamespace ¶
func (m *NsReadWriteSet) GetNamespace() string
func (*NsReadWriteSet) GetRwset ¶
func (m *NsReadWriteSet) GetRwset() []byte
func (*NsReadWriteSet) ProtoMessage ¶
func (*NsReadWriteSet) ProtoMessage()
func (*NsReadWriteSet) Reset ¶
func (m *NsReadWriteSet) Reset()
func (*NsReadWriteSet) String ¶
func (m *NsReadWriteSet) String() string
func (*NsReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *NsReadWriteSet) XXX_DiscardUnknown()
func (*NsReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NsReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *NsReadWriteSet) XXX_Merge(src proto.Message)
func (*NsReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *NsReadWriteSet) XXX_Size() int
func (*NsReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error
type TxPvtReadWriteSet ¶ added in v1.1.0
type TxPvtReadWriteSet struct { DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` NsPvtRwset []*NsPvtReadWriteSet `protobuf:"bytes,2,rep,name=ns_pvt_rwset,json=nsPvtRwset,proto3" json:"ns_pvt_rwset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TxPvtReadWriteSet encapsulate the private read-write set for a transaction
func (*TxPvtReadWriteSet) Descriptor ¶ added in v1.1.0
func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int)
func (*TxPvtReadWriteSet) GetDataModel ¶ added in v1.1.0
func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel
func (*TxPvtReadWriteSet) GetNsPvtRwset ¶ added in v1.1.0
func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet
func (*TxPvtReadWriteSet) ProtoMessage ¶ added in v1.1.0
func (*TxPvtReadWriteSet) ProtoMessage()
func (*TxPvtReadWriteSet) Remove ¶ added in v1.4.0
func (p *TxPvtReadWriteSet) Remove(ns, coll string)
Remove removes the rwset for the given <ns, coll> tuple. If after this removal, there are no more collection in the namespace <ns>, the whole namespace entry is removed
func (*TxPvtReadWriteSet) Reset ¶ added in v1.1.0
func (m *TxPvtReadWriteSet) Reset()
func (*TxPvtReadWriteSet) String ¶ added in v1.1.0
func (m *TxPvtReadWriteSet) String() string
func (*TxPvtReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *TxPvtReadWriteSet) XXX_DiscardUnknown()
func (*TxPvtReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxPvtReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *TxPvtReadWriteSet) XXX_Merge(src proto.Message)
func (*TxPvtReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *TxPvtReadWriteSet) XXX_Size() int
func (*TxPvtReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error
type TxReadWriteSet ¶
type TxReadWriteSet struct { DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` NsRwset []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset,proto3" json:"ns_rwset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TxReadWriteSet encapsulates a read-write set for a transaction DataModel specifies the enum value of the data model ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode)
func (*TxReadWriteSet) Descriptor ¶
func (*TxReadWriteSet) Descriptor() ([]byte, []int)
func (*TxReadWriteSet) DynamicSliceFieldProto ¶ added in v1.4.0
func (*TxReadWriteSet) DynamicSliceFields ¶ added in v1.4.0
func (txrws *TxReadWriteSet) DynamicSliceFields() []string
func (*TxReadWriteSet) GetDataModel ¶
func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel
func (*TxReadWriteSet) GetNsRwset ¶
func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet
func (*TxReadWriteSet) ProtoMessage ¶
func (*TxReadWriteSet) ProtoMessage()
func (*TxReadWriteSet) Reset ¶
func (m *TxReadWriteSet) Reset()
func (*TxReadWriteSet) String ¶
func (m *TxReadWriteSet) String() string
func (*TxReadWriteSet) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *TxReadWriteSet) XXX_DiscardUnknown()
func (*TxReadWriteSet) XXX_Marshal ¶ added in v1.4.0
func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxReadWriteSet) XXX_Merge ¶ added in v1.4.0
func (dst *TxReadWriteSet) XXX_Merge(src proto.Message)
func (*TxReadWriteSet) XXX_Size ¶ added in v1.4.0
func (m *TxReadWriteSet) XXX_Size() int
func (*TxReadWriteSet) XXX_Unmarshal ¶ added in v1.4.0
func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error
type TxReadWriteSet_DataModel ¶
type TxReadWriteSet_DataModel int32
const (
TxReadWriteSet_KV TxReadWriteSet_DataModel = 0
)
func (TxReadWriteSet_DataModel) EnumDescriptor ¶
func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int)
func (TxReadWriteSet_DataModel) String ¶
func (x TxReadWriteSet_DataModel) String() string