-
Notifications
You must be signed in to change notification settings - Fork 4
/
group.go
24 lines (22 loc) · 996 Bytes
/
group.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
package scm
type GroupInterface interface {
ListGroups(token, baseUrl string, page int) ([]Group, error)
GetGroup(token, baseUrl string, gid int) (*Group, error)
ListGroupProjects(token, baseUrl string, gid, page int) ([]Project, error)
}
type Group struct {
ID int `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
Description string `json:"description"`
LFSEnabled bool `json:"lfs_enabled"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
RequestAccessEnabled bool `json:"request_access_enabled"`
FullName string `json:"full_name"`
FullPath string `json:"full_path"`
ParentID int `json:"parent_id"`
Projects []*Project `json:"projects"`
AccessLevelValue int `json:"access_level_value"`
Page int `json:"page"`
}