core

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Xdata

type Xdata struct{}

func (*Xdata) AddFileNs

func (x *Xdata) AddFileNs(stub shim.ChaincodeStubInterface, args []string) pb.Response

AddFileNs adds file namespace

func (*Xdata) AddNode

func (x *Xdata) AddNode(stub shim.ChaincodeStubInterface, args []string) pb.Response

AddNode adds a node to fabric

func (*Xdata) ChallengeAnswer

func (x *Xdata) ChallengeAnswer(stub shim.ChaincodeStubInterface, args []string) pb.Response

ChallengeAnswer Set a challengeAnswer on chain args = {ChallengeAnswerOptions}

func (*Xdata) ChallengeRequest

func (x *Xdata) ChallengeRequest(stub shim.ChaincodeStubInterface, args []string) pb.Response

ChallengeRequest Set a challenge request on chain args = {ChallengeRequestOptions}

func (*Xdata) ConfirmFileAuthApplication

func (x *Xdata) ConfirmFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response

ConfirmFileAuthApplication is called when the dataOwner node confirms file's authorization

func (*Xdata) GetAuthApplicationByID

func (x *Xdata) GetAuthApplicationByID(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetAuthApplicationByID query authorization application detail by authID

func (*Xdata) GetChallengeByID

func (x *Xdata) GetChallengeByID(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetChallengeByID query challenge result args = {id}

func (*Xdata) GetChallengeNum

func (x *Xdata) GetChallengeNum(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetChallengeNum get challenges number given filter args = {GetChallengeNumOptions}

func (*Xdata) GetFileByID

func (x *Xdata) GetFileByID(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetFileByID gets file by id from fabric

func (*Xdata) GetFileByName

func (x *Xdata) GetFileByName(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetFileByName gets file by name from fabric

func (*Xdata) GetHeartbeatNum

func (x *Xdata) GetHeartbeatNum(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetHeartbeatNum gets heartbeat by time

func (*Xdata) GetNode

func (x *Xdata) GetNode(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetNode gets node by id

func (*Xdata) GetNsByName

func (x *Xdata) GetNsByName(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetNsByName gets namespace by nsName from fabric

func (*Xdata) GetSliceMigrateRecords

func (x *Xdata) GetSliceMigrateRecords(stub shim.ChaincodeStubInterface, args []string) pb.Response

GetSliceMigrateRecords is used to query node slice migration records

func (*Xdata) GetValue

func (x *Xdata) GetValue(stub shim.ChaincodeStubInterface, args []string) pb.Response

func (*Xdata) Heartbeat

func (x *Xdata) Heartbeat(stub shim.ChaincodeStubInterface, args []string) pb.Response

Heartbeat updates heartbeat of node

func (*Xdata) Init

func (*Xdata) Invoke

func (x *Xdata) Invoke(stub shim.ChaincodeStubInterface) pb.Response

func (*Xdata) ListChallengeRequests

func (x *Xdata) ListChallengeRequests(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListChallengeRequests List challenge requests on chain args = {ListChallengeOptions}

func (*Xdata) ListExpiredFiles

func (x *Xdata) ListExpiredFiles(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListExpiredFiles lists expired but valid files

func (*Xdata) ListFileAuthApplications

func (x *Xdata) ListFileAuthApplications(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListFileAuthApplications list the authorization applications of files Support query by time range and fileID

func (*Xdata) ListFileNs

func (x *Xdata) ListFileNs(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListFileNs lists file namespaces by owner

func (*Xdata) ListFiles

func (x *Xdata) ListFiles(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListFiles lists files from fabric

func (*Xdata) ListNodes

func (x *Xdata) ListNodes(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListNodes gets all nodes from fabric

func (*Xdata) ListNodesExpireSlice

func (x *Xdata) ListNodesExpireSlice(stub shim.ChaincodeStubInterface, args []string) pb.Response

ListNodesExpireSlice lists expired slices from fabric

func (*Xdata) NodeOffline

func (x *Xdata) NodeOffline(stub shim.ChaincodeStubInterface, args []string) pb.Response

NodeOffline args = {id, sig}

func (*Xdata) NodeOnline

func (x *Xdata) NodeOnline(stub shim.ChaincodeStubInterface, args []string) pb.Response

NodeOnline args = {id, sig}

func (*Xdata) PublishFile

func (x *Xdata) PublishFile(stub shim.ChaincodeStubInterface, args []string) pb.Response

PublishFile publishes file onto fabric

func (*Xdata) PublishFileAuthApplication

func (x *Xdata) PublishFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response

PublishFileAuthApplication add applier's file authorization application into chain In order to facilitate the applier or authorizer to query the list of applications, the authorization application will be written under the index_fileauth_list of applier and authorizer

func (*Xdata) RejectFileAuthApplication

func (x *Xdata) RejectFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response

RejectFileAuthApplication is called when the dataOwner node rejects file's authorization

func (*Xdata) SetValue

func (x *Xdata) SetValue(stub shim.ChaincodeStubInterface, args []string) pb.Response

func (*Xdata) SliceMigrateRecord

func (x *Xdata) SliceMigrateRecord(stub shim.ChaincodeStubInterface, args []string) pb.Response

SliceMigrateRecord is used by node to slice migration record

func (*Xdata) UpdateFileExpireTime

func (x *Xdata) UpdateFileExpireTime(stub shim.ChaincodeStubInterface, args []string) pb.Response

UpdateFileExpireTime updates file expiration time

func (*Xdata) UpdateFilePublicSliceMeta

func (x *Xdata) UpdateFilePublicSliceMeta(stub shim.ChaincodeStubInterface, args []string) pb.Response

UpdateFilePublicSliceMeta is used to update file public slice metas

func (*Xdata) UpdateNsReplica

func (x *Xdata) UpdateNsReplica(stub shim.ChaincodeStubInterface, args []string) pb.Response

UpdateNsReplica updates file namespace replica

Jump to

Keyboard shortcuts

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