-
Notifications
You must be signed in to change notification settings - Fork 0
/
repository.go
43 lines (37 loc) · 1.04 KB
/
repository.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
package proto
type Repository struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
TeamId string `json:"teamId,omitempty"`
IsDeleted bool `json:"isDeleted,omitempty"`
IsActive bool `json:"isActive,omitempty"`
Members *[]Bucket `json:"members,omitempty"`
Details *Details `json:"details,omitempty"`
Properties *[]Property `json:"properties,omitempty"`
}
type RepositoryFilter struct {
Name string `json:"name,omitempty"`
TeamId string `json:"teamId,omitempty"`
IsDeleted bool `json:"isDeleted,omitempty"`
IsActive bool `json:"isActive,omitempty"`
}
func NewRepositoryRequest() Request {
return Request{
Flags: &Flags{},
Repository: &Repository{},
}
}
func NewRepositoryFilter() Request {
return Request{
Filter: &Filter{
Repository: &RepositoryFilter{},
},
}
}
func NewRepositoryResult() Result {
return Result{
Errors: &[]string{},
Repositories: &[]Repository{},
}
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix