fabric: github.com/hyperledger/fabric/protos/ledger/rwset Index | Files | Directories

package rwset

import "github.com/hyperledger/fabric/protos/ledger/rwset"

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Package Files

rwset.go rwset.pb.go

Variables

var TxReadWriteSet_DataModel_name = map[int32]string{
    0: "KV",
}
var TxReadWriteSet_DataModel_value = map[string]int32{
    "KV": 0,
}

type CollectionHashedReadWriteSet Uses

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 Uses

func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int)

func (*CollectionHashedReadWriteSet) GetCollectionName Uses

func (m *CollectionHashedReadWriteSet) GetCollectionName() string

func (*CollectionHashedReadWriteSet) GetHashedRwset Uses

func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte

func (*CollectionHashedReadWriteSet) GetPvtRwsetHash Uses

func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte

func (*CollectionHashedReadWriteSet) ProtoMessage Uses

func (*CollectionHashedReadWriteSet) ProtoMessage()

func (*CollectionHashedReadWriteSet) Reset Uses

func (m *CollectionHashedReadWriteSet) Reset()

func (*CollectionHashedReadWriteSet) String Uses

func (m *CollectionHashedReadWriteSet) String() string

func (*CollectionHashedReadWriteSet) XXX_DiscardUnknown Uses

func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown()

func (*CollectionHashedReadWriteSet) XXX_Marshal Uses

func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionHashedReadWriteSet) XXX_Merge Uses

func (dst *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message)

func (*CollectionHashedReadWriteSet) XXX_Size Uses

func (m *CollectionHashedReadWriteSet) XXX_Size() int

func (*CollectionHashedReadWriteSet) XXX_Unmarshal Uses

func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error

type CollectionPvtReadWriteSet Uses

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 Uses

func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int)

func (*CollectionPvtReadWriteSet) GetCollectionName Uses

func (m *CollectionPvtReadWriteSet) GetCollectionName() string

func (*CollectionPvtReadWriteSet) GetRwset Uses

func (m *CollectionPvtReadWriteSet) GetRwset() []byte

func (*CollectionPvtReadWriteSet) ProtoMessage Uses

func (*CollectionPvtReadWriteSet) ProtoMessage()

func (*CollectionPvtReadWriteSet) Reset Uses

func (m *CollectionPvtReadWriteSet) Reset()

func (*CollectionPvtReadWriteSet) String Uses

func (m *CollectionPvtReadWriteSet) String() string

func (*CollectionPvtReadWriteSet) XXX_DiscardUnknown Uses

func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown()

func (*CollectionPvtReadWriteSet) XXX_Marshal Uses

func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionPvtReadWriteSet) XXX_Merge Uses

func (dst *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*CollectionPvtReadWriteSet) XXX_Size Uses

func (m *CollectionPvtReadWriteSet) XXX_Size() int

func (*CollectionPvtReadWriteSet) XXX_Unmarshal Uses

func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error

type DynamicCollectionHashedReadWriteSet Uses

type DynamicCollectionHashedReadWriteSet struct {
    *CollectionHashedReadWriteSet
    DataModel TxReadWriteSet_DataModel
}

func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto Uses

func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields Uses

func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields() []string

func (*DynamicCollectionHashedReadWriteSet) Underlying Uses

func (dchrws *DynamicCollectionHashedReadWriteSet) Underlying() proto.Message

type DynamicNsReadWriteSet Uses

type DynamicNsReadWriteSet struct {
    *NsReadWriteSet
    DataModel TxReadWriteSet_DataModel
}

func (*DynamicNsReadWriteSet) DynamicSliceFieldProto Uses

func (dnrws *DynamicNsReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)

func (*DynamicNsReadWriteSet) DynamicSliceFields Uses

func (dnrws *DynamicNsReadWriteSet) DynamicSliceFields() []string

func (*DynamicNsReadWriteSet) StaticallyOpaqueFieldProto Uses

func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*DynamicNsReadWriteSet) StaticallyOpaqueFields Uses

func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFields() []string

func (*DynamicNsReadWriteSet) Underlying Uses

func (dnrws *DynamicNsReadWriteSet) Underlying() proto.Message

type NsPvtReadWriteSet Uses

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 Uses

func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int)

func (*NsPvtReadWriteSet) GetCollectionPvtRwset Uses

func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet

func (*NsPvtReadWriteSet) GetNamespace Uses

func (m *NsPvtReadWriteSet) GetNamespace() string

func (*NsPvtReadWriteSet) ProtoMessage Uses

func (*NsPvtReadWriteSet) ProtoMessage()

func (*NsPvtReadWriteSet) Reset Uses

func (m *NsPvtReadWriteSet) Reset()

func (*NsPvtReadWriteSet) String Uses

func (m *NsPvtReadWriteSet) String() string

func (*NsPvtReadWriteSet) XXX_DiscardUnknown Uses

func (m *NsPvtReadWriteSet) XXX_DiscardUnknown()

func (*NsPvtReadWriteSet) XXX_Marshal Uses

func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NsPvtReadWriteSet) XXX_Merge Uses

func (dst *NsPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*NsPvtReadWriteSet) XXX_Size Uses

func (m *NsPvtReadWriteSet) XXX_Size() int

func (*NsPvtReadWriteSet) XXX_Unmarshal Uses

func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error

type NsReadWriteSet Uses

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 `protobuf:"bytes,3,rep,name=collection_hashed_rwset,json=collectionHashedRwset,proto3" json:"collection_hashed_rwset,omitempty"`
    XXX_NoUnkeyedLiteral  struct{}                        `json:"-"`
    XXX_unrecognized      []byte                          `json:"-"`
    XXX_sizecache         int32                           `json:"-"`
}

NsReadWriteSet encapsulates the read-write set for a chaincode

func (*NsReadWriteSet) Descriptor Uses

func (*NsReadWriteSet) Descriptor() ([]byte, []int)

func (*NsReadWriteSet) GetCollectionHashedRwset Uses

func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet

func (*NsReadWriteSet) GetNamespace Uses

func (m *NsReadWriteSet) GetNamespace() string

func (*NsReadWriteSet) GetRwset Uses

func (m *NsReadWriteSet) GetRwset() []byte

func (*NsReadWriteSet) ProtoMessage Uses

func (*NsReadWriteSet) ProtoMessage()

func (*NsReadWriteSet) Reset Uses

func (m *NsReadWriteSet) Reset()

func (*NsReadWriteSet) String Uses

func (m *NsReadWriteSet) String() string

func (*NsReadWriteSet) XXX_DiscardUnknown Uses

func (m *NsReadWriteSet) XXX_DiscardUnknown()

func (*NsReadWriteSet) XXX_Marshal Uses

func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NsReadWriteSet) XXX_Merge Uses

func (dst *NsReadWriteSet) XXX_Merge(src proto.Message)

func (*NsReadWriteSet) XXX_Size Uses

func (m *NsReadWriteSet) XXX_Size() int

func (*NsReadWriteSet) XXX_Unmarshal Uses

func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error

type TxPvtReadWriteSet Uses

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 Uses

func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int)

func (*TxPvtReadWriteSet) GetDataModel Uses

func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel

func (*TxPvtReadWriteSet) GetNsPvtRwset Uses

func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet

func (*TxPvtReadWriteSet) ProtoMessage Uses

func (*TxPvtReadWriteSet) ProtoMessage()

func (*TxPvtReadWriteSet) Remove Uses

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 Uses

func (m *TxPvtReadWriteSet) Reset()

func (*TxPvtReadWriteSet) String Uses

func (m *TxPvtReadWriteSet) String() string

func (*TxPvtReadWriteSet) XXX_DiscardUnknown Uses

func (m *TxPvtReadWriteSet) XXX_DiscardUnknown()

func (*TxPvtReadWriteSet) XXX_Marshal Uses

func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxPvtReadWriteSet) XXX_Merge Uses

func (dst *TxPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*TxPvtReadWriteSet) XXX_Size Uses

func (m *TxPvtReadWriteSet) XXX_Size() int

func (*TxPvtReadWriteSet) XXX_Unmarshal Uses

func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error

type TxReadWriteSet Uses

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 Uses

func (*TxReadWriteSet) Descriptor() ([]byte, []int)

func (*TxReadWriteSet) DynamicSliceFieldProto Uses

func (txrws *TxReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)

func (*TxReadWriteSet) DynamicSliceFields Uses

func (txrws *TxReadWriteSet) DynamicSliceFields() []string

func (*TxReadWriteSet) GetDataModel Uses

func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel

func (*TxReadWriteSet) GetNsRwset Uses

func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet

func (*TxReadWriteSet) ProtoMessage Uses

func (*TxReadWriteSet) ProtoMessage()

func (*TxReadWriteSet) Reset Uses

func (m *TxReadWriteSet) Reset()

func (*TxReadWriteSet) String Uses

func (m *TxReadWriteSet) String() string

func (*TxReadWriteSet) XXX_DiscardUnknown Uses

func (m *TxReadWriteSet) XXX_DiscardUnknown()

func (*TxReadWriteSet) XXX_Marshal Uses

func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxReadWriteSet) XXX_Merge Uses

func (dst *TxReadWriteSet) XXX_Merge(src proto.Message)

func (*TxReadWriteSet) XXX_Size Uses

func (m *TxReadWriteSet) XXX_Size() int

func (*TxReadWriteSet) XXX_Unmarshal Uses

func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error

type TxReadWriteSet_DataModel Uses

type TxReadWriteSet_DataModel int32
const (
    TxReadWriteSet_KV TxReadWriteSet_DataModel = 0
)

func (TxReadWriteSet_DataModel) EnumDescriptor Uses

func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int)

func (TxReadWriteSet_DataModel) String Uses

func (x TxReadWriteSet_DataModel) String() string

Directories

PathSynopsis
kvrwset

Package rwset imports 4 packages (graph) and is imported by 26 packages. Updated 2018-12-12. Refresh now. Tools for package owners.