Documentation
¶
Index ¶
- func ExtractSegmenthash(segment []pattern.SegmentDataInfo) []string
- type ChainSDK
- func (c *ChainSDK) CheckSpaceUsageAuthorization(puk []byte) (bool, error)
- func (c *ChainSDK) ClaimRewards() (string, error)
- func (c *ChainSDK) CreateBucket(owner_pkey []byte, name string) (string, error)
- func (c *ChainSDK) DeleteBucket(owner_pkey []byte, name string) (string, error)
- func (c *ChainSDK) DeleteFile(puk []byte, filehash []string) (string, []pattern.FileHash, error)
- func (c *ChainSDK) Exit(role string) (string, error)
- func (c *ChainSDK) ExtractAccountPuk(account string) ([]byte, error)
- func (c *ChainSDK) GenerateStorageOrder(roothash string, segment []pattern.SegmentDataInfo, owner []byte, ...) error
- func (c *ChainSDK) GetChainState() bool
- func (c *ChainSDK) GetFile(roothash, dir string) (string, error)
- func (c *ChainSDK) GetKeyEvents() types.StorageKey
- func (c *ChainSDK) GetMetadata() *types.Metadata
- func (c *ChainSDK) GetSignatureAcc() string
- func (c *ChainSDK) GetSignatureURIs() string
- func (c *ChainSDK) GetSubstrateAPI() *gsrpc.SubstrateAPI
- func (c *ChainSDK) GetTokenSymbol() string
- func (c *ChainSDK) IncreaseSminerStakes(token string) (string, error)
- func (c *ChainSDK) IncreaseStakes(tokens *big.Int) (string, error)
- func (c *ChainSDK) NetListening() (bool, error)
- func (c *ChainSDK) NewAccountId(pubkey []byte) types.AccountID
- func (c *ChainSDK) ProcessingData(path string) ([]pattern.SegmentDataInfo, string, error)
- func (c *ChainSDK) PutFile(owner []byte, segmentInfo []pattern.SegmentDataInfo, ...) (uint8, error)
- func (c *ChainSDK) QuaryAuthorizedAcc(puk []byte) (types.AccountID, error)
- func (c *ChainSDK) QuaryAuthorizedAccount(puk []byte) (string, error)
- func (c *ChainSDK) QuaryRewards(puk []byte) (pattern.RewardsType, error)
- func (c *ChainSDK) QueryAccountInfo(puk []byte) (types.AccountInfo, error)
- func (c *ChainSDK) QueryAllBucketName(owner []byte) ([]string, error)
- func (c *ChainSDK) QueryAssignedMiner(minerTaskList []pattern.MinerTaskList) ([]string, error)
- func (c *ChainSDK) QueryAssignedProof() ([][]pattern.ProofAssignmentInfo, error)
- func (c *ChainSDK) QueryBlockHeight(hash string) (uint32, error)
- func (c *ChainSDK) QueryBucketInfo(puk []byte, bucketname string) (pattern.BucketInfo, error)
- func (c *ChainSDK) QueryBucketList(puk []byte) ([]types.Bytes, error)
- func (c *ChainSDK) QueryChallenge(pubkey []byte) (pattern.ChallengeInfo, error)
- func (c *ChainSDK) QueryChallengeSnapshot() (pattern.ChallengeSnapShot, error)
- func (c *ChainSDK) QueryChallengeSt() (pattern.ChallengeSnapshot, error)
- func (c *ChainSDK) QueryDeoss(pubkey []byte) ([]byte, error)
- func (c *ChainSDK) QueryFileMetadata(roothash string) (pattern.FileMetadata, error)
- func (c *ChainSDK) QueryMinerRewards(puk []byte) (pattern.MinerReward, error)
- func (c *ChainSDK) QueryNodeSynchronizationSt() (bool, error)
- func (c *ChainSDK) QueryPendingReplacements(puk []byte) (uint32, error)
- func (c *ChainSDK) QuerySminerList() ([]types.AccountID, error)
- func (c *ChainSDK) QuerySpacePricePerGib() (string, error)
- func (c *ChainSDK) QueryStorageMiner(puk []byte) (pattern.MinerInfo, error)
- func (c *ChainSDK) QueryStorageOrder(roothash string) (pattern.StorageOrder, error)
- func (c *ChainSDK) QueryTeeAssignedProof(puk []byte) ([]pattern.ProofAssignmentInfo, error)
- func (c *ChainSDK) QueryTeeInfoList() ([]pattern.TeeWorkerInfo, error)
- func (c *ChainSDK) QueryTeePeerID(puk []byte) ([]byte, error)
- func (c *ChainSDK) QueryTeePodr2Puk() ([]byte, error)
- func (c *ChainSDK) QueryTeeWorkerList() ([]pattern.TeeWorkerSt, error)
- func (c *ChainSDK) QueryUserSpaceInfo(puk []byte) (pattern.UserSpaceInfo, error)
- func (c *ChainSDK) QueryUserSpaceSt(puk []byte) (pattern.UserSpaceSt, error)
- func (c *ChainSDK) Reconnect() error
- func (c *ChainSDK) Register(role string, puk []byte, earnings string, pledge uint64) (string, string, error)
- func (c *ChainSDK) ReplaceFile(roothash []string) (string, []string, error)
- func (c *ChainSDK) ReplaceIdleFiles(roothash []pattern.FileHash) (string, []pattern.FileHash, error)
- func (c *ChainSDK) ReportFiles(roothash []string) (string, []string, error)
- func (c *ChainSDK) ReportProof(idlesigma, servicesigma string) (string, error)
- func (c *ChainSDK) SetChainState(state bool)
- func (c *ChainSDK) Sign(msg []byte) ([]byte, error)
- func (c *ChainSDK) StorageData(roothash string, segment []pattern.SegmentDataInfo, ...) error
- func (c *ChainSDK) SubmitFileReport(roothash []pattern.FileHash) (string, []pattern.FileHash, error)
- func (c *ChainSDK) SubmitIdleFile(teeAcc []byte, idlefiles []pattern.IdleFileMeta) (string, error)
- func (c *ChainSDK) SubmitIdleMetadata(teeAcc []byte, idlefiles []pattern.IdleMetadata) (string, error)
- func (c *ChainSDK) SyncState() (pattern.SysSyncState, error)
- func (c *ChainSDK) SysProperties() (pattern.SysProperties, error)
- func (c *ChainSDK) SysVersion() (string, error)
- func (c *ChainSDK) UpdateAddress(role, multiaddr string) (string, error)
- func (c *ChainSDK) UpdateIncomeAcc(puk []byte) (string, error)
- func (c *ChainSDK) UpdateIncomeAccount(income string) (string, error)
- func (c *ChainSDK) UploadDeclaration(filehash string, dealinfo []pattern.SegmentList, user pattern.UserBrief) (string, error)
- func (c *ChainSDK) Withdraw() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSegmenthash ¶
func ExtractSegmenthash(segment []pattern.SegmentDataInfo) []string
Types ¶
type ChainSDK ¶
type ChainSDK struct {
// contains filtered or unexported fields
}
func NewChainSDK ¶
func (*ChainSDK) CheckSpaceUsageAuthorization ¶
func (*ChainSDK) CreateBucket ¶
func (*ChainSDK) DeleteBucket ¶
func (*ChainSDK) DeleteFile ¶
func (*ChainSDK) ExtractAccountPuk ¶
ExtractAccountPublickey
func (*ChainSDK) GenerateStorageOrder ¶
func (*ChainSDK) GetChainState ¶
func (*ChainSDK) GetKeyEvents ¶
func (c *ChainSDK) GetKeyEvents() types.StorageKey
func (*ChainSDK) GetMetadata ¶
func (*ChainSDK) GetSignatureAcc ¶
func (*ChainSDK) GetSignatureURIs ¶
func (*ChainSDK) GetSubstrateAPI ¶
func (c *ChainSDK) GetSubstrateAPI() *gsrpc.SubstrateAPI
func (*ChainSDK) GetTokenSymbol ¶
func (*ChainSDK) IncreaseSminerStakes ¶
func (*ChainSDK) IncreaseStakes ¶
Storage miners increase deposit function
func (*ChainSDK) NetListening ¶
func (*ChainSDK) ProcessingData ¶
func (*ChainSDK) QuaryAuthorizedAcc ¶
func (*ChainSDK) QuaryAuthorizedAccount ¶
func (*ChainSDK) QuaryRewards ¶
func (c *ChainSDK) QuaryRewards(puk []byte) (pattern.RewardsType, error)
func (*ChainSDK) QueryAccountInfo ¶
func (c *ChainSDK) QueryAccountInfo(puk []byte) (types.AccountInfo, error)
QueryAccountInfo
func (*ChainSDK) QueryAllBucketName ¶
func (*ChainSDK) QueryAssignedMiner ¶
func (c *ChainSDK) QueryAssignedMiner(minerTaskList []pattern.MinerTaskList) ([]string, error)
func (*ChainSDK) QueryAssignedProof ¶
func (c *ChainSDK) QueryAssignedProof() ([][]pattern.ProofAssignmentInfo, error)
func (*ChainSDK) QueryBlockHeight ¶
QueryBlockHeight
func (*ChainSDK) QueryBucketInfo ¶
func (*ChainSDK) QueryBucketList ¶
func (*ChainSDK) QueryChallenge ¶
func (c *ChainSDK) QueryChallenge(pubkey []byte) (pattern.ChallengeInfo, error)
func (*ChainSDK) QueryChallengeSnapshot ¶
func (c *ChainSDK) QueryChallengeSnapshot() (pattern.ChallengeSnapShot, error)
func (*ChainSDK) QueryChallengeSt ¶
func (c *ChainSDK) QueryChallengeSt() (pattern.ChallengeSnapshot, error)
func (*ChainSDK) QueryDeoss ¶
QueryDeoss
func (*ChainSDK) QueryFileMetadata ¶
func (c *ChainSDK) QueryFileMetadata(roothash string) (pattern.FileMetadata, error)
QueryFileMetaData
func (*ChainSDK) QueryMinerRewards ¶
func (c *ChainSDK) QueryMinerRewards(puk []byte) (pattern.MinerReward, error)
QueryMinerRewards
func (*ChainSDK) QueryNodeSynchronizationSt ¶
QueryNodeSynchronizationSt
func (*ChainSDK) QueryPendingReplacements ¶
func (*ChainSDK) QuerySminerList ¶
QuerySminerList
func (*ChainSDK) QuerySpacePricePerGib ¶
func (*ChainSDK) QueryStorageMiner ¶
QueryStorageMiner
func (*ChainSDK) QueryStorageOrder ¶
func (c *ChainSDK) QueryStorageOrder(roothash string) (pattern.StorageOrder, error)
func (*ChainSDK) QueryTeeAssignedProof ¶
func (c *ChainSDK) QueryTeeAssignedProof(puk []byte) ([]pattern.ProofAssignmentInfo, error)
func (*ChainSDK) QueryTeeInfoList ¶
func (c *ChainSDK) QueryTeeInfoList() ([]pattern.TeeWorkerInfo, error)
func (*ChainSDK) QueryTeePodr2Puk ¶
func (*ChainSDK) QueryTeeWorkerList ¶
func (c *ChainSDK) QueryTeeWorkerList() ([]pattern.TeeWorkerSt, error)
func (*ChainSDK) QueryUserSpaceInfo ¶
func (c *ChainSDK) QueryUserSpaceInfo(puk []byte) (pattern.UserSpaceInfo, error)
func (*ChainSDK) QueryUserSpaceSt ¶
func (c *ChainSDK) QueryUserSpaceSt(puk []byte) (pattern.UserSpaceSt, error)
func (*ChainSDK) ReplaceFile ¶
func (*ChainSDK) ReplaceIdleFiles ¶
func (*ChainSDK) ReportFiles ¶
func (*ChainSDK) ReportProof ¶
func (*ChainSDK) SetChainState ¶
func (*ChainSDK) StorageData ¶
func (c *ChainSDK) StorageData(roothash string, segment []pattern.SegmentDataInfo, minerTaskList []pattern.MinerTaskList) error
func (*ChainSDK) SubmitFileReport ¶
func (*ChainSDK) SubmitIdleFile ¶
func (*ChainSDK) SubmitIdleMetadata ¶
func (*ChainSDK) SysProperties ¶
func (c *ChainSDK) SysProperties() (pattern.SysProperties, error)
func (*ChainSDK) SysVersion ¶
func (*ChainSDK) UpdateAddress ¶
func (*ChainSDK) UpdateIncomeAccount ¶
func (*ChainSDK) UploadDeclaration ¶
Click to show internal directories.
Click to hide internal directories.