-
Notifications
You must be signed in to change notification settings - Fork 44
/
options.go
99 lines (81 loc) · 1.9 KB
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package types
import (
time "time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/bnb-chain/greenfield/types/common"
)
type CreateBucketOptions struct {
Visibility VisibilityType
SourceType SourceType
ChargedReadQuota uint64
PaymentAddress string
PrimarySpApproval *common.Approval
ApprovalMsgBytes []byte
}
type DeleteBucketOptions struct {
SourceType SourceType
}
type UpdateBucketOptions struct {
Visibility VisibilityType
SourceType SourceType
PaymentAddress string
ChargedReadQuota *uint64
}
type CreateObjectOptions struct {
Visibility VisibilityType
ContentType string
SourceType SourceType
RedundancyType RedundancyType
Checksums [][]byte
PrimarySpApproval *common.Approval
ApprovalMsgBytes []byte
Delegated bool
Creator sdk.AccAddress
}
type CancelCreateObjectOptions struct {
SourceType SourceType
}
type DeleteObjectOptions struct {
SourceType SourceType
}
type CopyObjectOptions struct {
SourceType SourceType
Visibility VisibilityType
PrimarySpApproval *common.Approval
ApprovalMsgBytes []byte
}
type CreateGroupOptions struct {
SourceType SourceType
Extra string
}
type LeaveGroupOptions struct {
SourceType SourceType
}
type UpdateGroupMemberOptions struct {
SourceType SourceType
MembersToAdd []string
MembersExpirationToAdd []*time.Time
MembersToDelete []string
}
type RenewGroupMemberOptions struct {
SourceType SourceType
Members []string
MembersExpiration []*time.Time
}
type DeleteGroupOptions struct {
SourceType SourceType
}
type CreatePolicyOptions struct {
SourceType SourceType
Extra string
Tags *ResourceTags
}
type DeletePolicyOptions struct {
SourceType SourceType
}
type UpdateObjectOptions struct {
ContentType string
Checksums [][]byte
Delegated bool
Updater sdk.AccAddress
}