Skip to content

Commit

Permalink
fix cancel migrate bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Dec 25, 2023
1 parent bb8472b commit 47f9d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 10 additions & 0 deletions types/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ type UploadOffset struct {
Offset uint64 `xml:"Offset"` // Offset defines the offset info of resumable uploading object
}

// MigrationProgress indicates the progress info of bucket migration
type MigrationProgress struct {
XMLName xml.Name `xml:"QueryMigrationProgress"`
Version string `xml:"version,attr"` // Version defines version info
ProgressDescription string `xml:"ProgressDescription"` // ProgressDescription defines a string message representing the upload progress.
ErrorDescription string `xml:"ErrorDescription"` // ErrorDescription defines a string message representing an upload error exception.
MigratedBytes uint64 `xml:"MigratedBytes"`
MigrationState uint64 `xml:"MigrationState"`
}

// ChallengeV2Result indicates the response info of challenge v2 API
type ChallengeV2Result struct {
XMLName xml.Name `xml:"GetChallengeInfo"`
Expand Down
8 changes: 2 additions & 6 deletions types/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ type MigrateBucketOptions struct {

// CancelMigrateBucketOptions indicates the metadata to construct `CancelMigrateBucket` msg of storage module.
type CancelMigrateBucketOptions struct {
ProposalDepositAmount math.Int // ProposalDepositAmount defines the amount in wei BNB.
ProposalTitle string // ProposalTitle defines the title for proposal.
ProposalSummary string // ProposalSummary defines the summary for proposal.
ProposalMetadata string // ProposalMetadata defines the metadata for proposal.
TxOpts gnfdsdktypes.TxOption // TxOpts defines the options to customize a transaction.
IsAsyncMode bool // IsAsyncMode indicates whether to create the bucket in asynchronous mode.
TxOpts *gnfdsdktypes.TxOption
IsAsyncMode bool // indicate whether to create the bucket in asynchronous mode
}

// VoteProposalOptions indicates the metadata to construct `VoteProposal` msg.
Expand Down

0 comments on commit 47f9d66

Please sign in to comment.