Documentation
¶
Index ¶
- type Xdata
- func (x *Xdata) AddFileNs(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) AddNode(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ChallengeAnswer(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ChallengeRequest(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ConfirmFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetAuthApplicationByID(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetChallengeByID(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetChallengeNum(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetFileByID(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetFileByName(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetHeartbeatNum(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetNode(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetNsByName(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetSliceMigrateRecords(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) GetValue(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) Heartbeat(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (x *Xdata) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (x *Xdata) ListChallengeRequests(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListExpiredFiles(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListFileAuthApplications(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListFileNs(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListFiles(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListNodes(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) ListNodesExpireSlice(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) NodeOffline(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) NodeOnline(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) PublishFile(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) PublishFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) RejectFileAuthApplication(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) SetValue(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) SliceMigrateRecord(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) UpdateFileExpireTime(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) UpdateFilePublicSliceMeta(stub shim.ChaincodeStubInterface, args []string) pb.Response
- func (x *Xdata) UpdateNsReplica(stub shim.ChaincodeStubInterface, args []string) pb.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Xdata ¶
type Xdata struct{}
func (*Xdata) ChallengeAnswer ¶
ChallengeAnswer Set a challengeAnswer on chain args = {ChallengeAnswerOptions}
func (*Xdata) ChallengeRequest ¶
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 ¶
GetAuthApplicationByID query authorization application detail by authID
func (*Xdata) GetChallengeByID ¶
GetChallengeByID query challenge result args = {id}
func (*Xdata) GetChallengeNum ¶
GetChallengeNum get challenges number given filter args = {GetChallengeNumOptions}
func (*Xdata) GetFileByID ¶
GetFileByID gets file by id from fabric
func (*Xdata) GetFileByName ¶
GetFileByName gets file by name from fabric
func (*Xdata) GetHeartbeatNum ¶
GetHeartbeatNum gets heartbeat by time
func (*Xdata) GetNsByName ¶
GetNsByName gets namespace by nsName from fabric
func (*Xdata) GetSliceMigrateRecords ¶
GetSliceMigrateRecords is used to query node slice migration records
func (*Xdata) ListChallengeRequests ¶
ListChallengeRequests List challenge requests on chain args = {ListChallengeOptions}
func (*Xdata) ListExpiredFiles ¶
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 ¶
ListFileNs lists file namespaces by owner
func (*Xdata) ListNodesExpireSlice ¶
ListNodesExpireSlice lists expired slices from fabric
func (*Xdata) NodeOffline ¶
NodeOffline args = {id, sig}
func (*Xdata) NodeOnline ¶
NodeOnline args = {id, sig}
func (*Xdata) PublishFile ¶
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) SliceMigrateRecord ¶
SliceMigrateRecord is used by node to slice migration record
func (*Xdata) UpdateFileExpireTime ¶
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 ¶
UpdateNsReplica updates file namespace replica