-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fynn-0xc
committed
Feb 27, 2023
1 parent
faa3a90
commit 766c0e7
Showing
2 changed files
with
61 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package keeper | ||
|
||
import "github.com/bnb-chain/greenfield/x/storage/types" | ||
|
||
type CreateBucketOptions struct { | ||
IsPublic bool | ||
types.SourceType | ||
ReadQuota types.ReadQuota | ||
PaymentAddress string | ||
PrimarySpApproval *types.Approval | ||
ApprovalMsgBytes []byte | ||
} | ||
|
||
type DeleteBucketOptions struct { | ||
types.SourceType | ||
} | ||
|
||
type UpdateBucketOptions struct { | ||
types.SourceType | ||
types.ReadQuota | ||
PaymentAddress string | ||
} | ||
|
||
type CreateObjectOptions struct { | ||
IsPublic bool | ||
ContentType string | ||
types.SourceType | ||
types.RedundancyType | ||
Checksums [][]byte | ||
SecondarySpAddresses []string | ||
PrimarySpApproval *types.Approval | ||
ApprovalMsgBytes []byte | ||
} | ||
|
||
type CancelCreateObjectOptions struct { | ||
types.SourceType | ||
} | ||
|
||
type DeleteObjectOptions struct { | ||
types.SourceType | ||
} | ||
|
||
type CopyObjectOptions struct { | ||
types.SourceType | ||
IsPublic bool | ||
PrimarySpApproval *types.Approval | ||
ApprovalMsgBytes []byte | ||
} | ||
type CreateGroupOptions struct { | ||
Members []string | ||
SourceType types.SourceType | ||
} | ||
type LeaveGroupOptions struct { | ||
types.SourceType | ||
} | ||
|
||
type UpdateGroupMemberOptions struct { | ||
types.SourceType | ||
MembersToAdd []string | ||
MembersToDelete []string | ||
} |