Documentation
¶
Index ¶
- type Xdata
- func (x *Xdata) AddFileNs(ctx code.Context) code.Response
- func (x *Xdata) AddNode(ctx code.Context) code.Response
- func (x *Xdata) ChallengeAnswer(ctx code.Context) code.Response
- func (x *Xdata) ChallengeRequest(ctx code.Context) code.Response
- func (x *Xdata) ConfirmFileAuthApplication(ctx code.Context) code.Response
- func (x *Xdata) GetAuthApplicationByID(ctx code.Context) code.Response
- func (x *Xdata) GetChallengeByID(ctx code.Context) code.Response
- func (x *Xdata) GetChallengeNum(ctx code.Context) code.Response
- func (x *Xdata) GetFileByID(ctx code.Context) code.Response
- func (x *Xdata) GetFileByName(ctx code.Context) code.Response
- func (x *Xdata) GetHeartbeatNum(ctx code.Context) code.Response
- func (x *Xdata) GetNode(ctx code.Context) code.Response
- func (x *Xdata) GetNsByName(ctx code.Context) code.Response
- func (x *Xdata) GetSliceMigrateRecords(ctx code.Context) code.Response
- func (x *Xdata) Heartbeat(ctx code.Context) code.Response
- func (x *Xdata) Initialize(ctx code.Context) code.Response
- func (x *Xdata) ListChallengeRequests(ctx code.Context) code.Response
- func (x *Xdata) ListExpiredFiles(ctx code.Context) code.Response
- func (x *Xdata) ListFileAuthApplications(ctx code.Context) code.Response
- func (x *Xdata) ListFileNs(ctx code.Context) code.Response
- func (x *Xdata) ListFiles(ctx code.Context) code.Response
- func (x *Xdata) ListNodes(ctx code.Context) code.Response
- func (x *Xdata) ListNodesExpireSlice(ctx code.Context) code.Response
- func (x *Xdata) NodeOffline(ctx code.Context) code.Response
- func (x *Xdata) NodeOnline(ctx code.Context) code.Response
- func (x *Xdata) PublishFile(ctx code.Context) code.Response
- func (x *Xdata) PublishFileAuthApplication(ctx code.Context) code.Response
- func (x *Xdata) RejectFileAuthApplication(ctx code.Context) code.Response
- func (x *Xdata) SliceMigrateRecord(ctx code.Context) code.Response
- func (x *Xdata) UpdateFileExpireTime(ctx code.Context) code.Response
- func (x *Xdata) UpdateFilePublicSliceMeta(ctx code.Context) code.Response
- func (x *Xdata) UpdateNsReplica(ctx code.Context) code.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 sets a challengeAnswer on chain
func (*Xdata) ChallengeRequest ¶
ChallengeRequest sets a challenge request onto blockchain
func (*Xdata) ConfirmFileAuthApplication ¶
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 queries challenge result
func (*Xdata) GetChallengeNum ¶
GetChallengeNum gets number of challenges with given filter
func (*Xdata) GetFileByID ¶
GetFileByID gets file by id from xchain
func (*Xdata) GetFileByName ¶
GetFileByName gets file by name from xchain
func (*Xdata) GetHeartbeatNum ¶
GetHeartbeatNum gets heartbeat by time
func (*Xdata) GetSliceMigrateRecords ¶
GetSliceMigrateRecords queries node slice migration records
func (*Xdata) ListChallengeRequests ¶
ListChallengeRequests lists challenge requests on blockchain
func (*Xdata) ListExpiredFiles ¶
ListExpiredFiles lists expired but valid files
func (*Xdata) ListFileAuthApplications ¶
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 xchain
func (*Xdata) NodeOffline ¶
NodeOffline gets node offline
func (*Xdata) NodeOnline ¶
NodeOnline gets node online
func (*Xdata) PublishFile ¶
PublishFile publishes file on xchain
func (*Xdata) PublishFileAuthApplication ¶
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 ¶
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 ¶
UpdateFilePublicSliceMeta is used to update file public slice metas