-
Notifications
You must be signed in to change notification settings - Fork 47
/
options.go
76 lines (64 loc) · 1.52 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
package types
import (
time "time"
"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
}
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
}