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: 17 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(ctx code.Context) code.Response

AddFileNs adds file namespace

func (*Xdata) AddNode

func (x *Xdata) AddNode(ctx code.Context) code.Response

AddNode adds a node to xchain

func (*Xdata) ChallengeAnswer

func (x *Xdata) ChallengeAnswer(ctx code.Context) code.Response

ChallengeAnswer sets a challengeAnswer on chain

func (*Xdata) ChallengeRequest

func (x *Xdata) ChallengeRequest(ctx code.Context) code.Response

ChallengeRequest sets a challenge request onto blockchain

func (*Xdata) ConfirmFileAuthApplication

func (x *Xdata) ConfirmFileAuthApplication(ctx code.Context) code.Response

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

func (*Xdata) GetAuthApplicationByID

func (x *Xdata) GetAuthApplicationByID(ctx code.Context) code.Response

GetAuthApplicationByID query authorization application detail by authID

func (*Xdata) GetChallengeByID

func (x *Xdata) GetChallengeByID(ctx code.Context) code.Response

GetChallengeByID queries challenge result

func (*Xdata) GetChallengeNum

func (x *Xdata) GetChallengeNum(ctx code.Context) code.Response

GetChallengeNum gets number of challenges with given filter

func (*Xdata) GetFileByID

func (x *Xdata) GetFileByID(ctx code.Context) code.Response

GetFileByID gets file by id from xchain

func (*Xdata) GetFileByName

func (x *Xdata) GetFileByName(ctx code.Context) code.Response

GetFileByName gets file by name from xchain

func (*Xdata) GetHeartbeatNum

func (x *Xdata) GetHeartbeatNum(ctx code.Context) code.Response

GetHeartbeatNum gets heartbeat by time

func (*Xdata) GetNode

func (x *Xdata) GetNode(ctx code.Context) code.Response

GetNode gets node by id

func (*Xdata) GetNsByName

func (x *Xdata) GetNsByName(ctx code.Context) code.Response

func (*Xdata) GetSliceMigrateRecords

func (x *Xdata) GetSliceMigrateRecords(ctx code.Context) code.Response

GetSliceMigrateRecords queries node slice migration records

func (*Xdata) Heartbeat

func (x *Xdata) Heartbeat(ctx code.Context) code.Response

Heartbeat updates heartbeat of node

func (*Xdata) Initialize

func (x *Xdata) Initialize(ctx code.Context) code.Response

func (*Xdata) ListChallengeRequests

func (x *Xdata) ListChallengeRequests(ctx code.Context) code.Response

ListChallengeRequests lists challenge requests on blockchain

func (*Xdata) ListExpiredFiles

func (x *Xdata) ListExpiredFiles(ctx code.Context) code.Response

ListExpiredFiles lists expired but valid files

func (*Xdata) ListFileAuthApplications

func (x *Xdata) ListFileAuthApplications(ctx code.Context) code.Response

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

func (*Xdata) ListFileNs

func (x *Xdata) ListFileNs(ctx code.Context) code.Response

ListFileNs lists file namespaces by owner

func (*Xdata) ListFiles

func (x *Xdata) ListFiles(ctx code.Context) code.Response

ListFiles lists files from xchain

func (*Xdata) ListNodes

func (x *Xdata) ListNodes(ctx code.Context) code.Response

ListNodes gets all nodes from xchain

func (*Xdata) ListNodesExpireSlice

func (x *Xdata) ListNodesExpireSlice(ctx code.Context) code.Response

ListNodesExpireSlice lists expired slices from xchain

func (*Xdata) NodeOffline

func (x *Xdata) NodeOffline(ctx code.Context) code.Response

NodeOffline gets node offline

func (*Xdata) NodeOnline

func (x *Xdata) NodeOnline(ctx code.Context) code.Response

NodeOnline gets node online

func (*Xdata) PublishFile

func (x *Xdata) PublishFile(ctx code.Context) code.Response

PublishFile publishes file on xchain

func (*Xdata) PublishFileAuthApplication

func (x *Xdata) PublishFileAuthApplication(ctx code.Context) code.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(ctx code.Context) code.Response

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

func (*Xdata) SliceMigrateRecord

func (x *Xdata) SliceMigrateRecord(ctx code.Context) code.Response

SliceMigrateRecord is used by node to slice migration record

func (*Xdata) UpdateFileExpireTime

func (x *Xdata) UpdateFileExpireTime(ctx code.Context) code.Response

UpdateFileExpireTime updates file expiration time

func (*Xdata) UpdateFilePublicSliceMeta

func (x *Xdata) UpdateFilePublicSliceMeta(ctx code.Context) code.Response

UpdateFilePublicSliceMeta is used to update file public slice metas

func (*Xdata) UpdateNsReplica

func (x *Xdata) UpdateNsReplica(ctx code.Context) code.Response

UpdateNsReplica updates file namespace replica

Jump to

Keyboard shortcuts

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