Kiln » gitkiln Read More
Clone URL:  
api.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
package kiln // Represents the error JSON returned by Kiln API requests type KilnError struct { // Guaranteed-unique code for Kiln errors Code string `json:"codeError"` // Human-readable description Description string `json:"sError"` } // Represents the project JSON returned from the Kiln API type KilnProject struct { Id int64 `json:"ixProject"` Slug string `json:"sSlug"` Name string `json:"sName"` Description string `json:"sDescription"` DefaultPermission string `json:"permissionDefault"` RepoGroups []KilnRepoGroup } type KilnRepoGroup struct { Id int64 `json:"ixRepoGroup"` ProjectId int64 `json:"ixProject"` Slug string `json:"sSlug"` Name string `json:"sName"` Repos []KilnRepo `json:"repos"` } type KilnRepo struct { Id int64 `json:"ixRepo"` RepoGroupId int64 `json:"ixRepoGroup"` ParentId int64 `json:"ixParent"` IsCentral bool `json:"fCentral"` Slug string `json:"sSlug"` GroupSlug string `json:"sGroupSlug"` ProjectSlug string `json:"sProjectSlug"` GitUrl string `json:"sGitUrl"` GitSshUrl string `json:"sGitSshUrl"` Name string `json:"sName"` Description string `json:"sDescription"` Status string `json:"sStatus"` Size int64 `json:"bytesSize"` Vcs int `json:"vcs"` Creator KilnPerson `json:"personCreator"` DefaultPermission string `json:"permissionDefault"` Branches []KilnRepo `json:"repoBranches"` } type KilnPerson struct { Id int64 `json:"ixPerson"` Name string `json:"sName"` Email string `json:"sEmail"` }