forked from ashwanthkumar/go-gocd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
materials.go
26 lines (23 loc) · 906 Bytes
/
materials.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
package gocd
// Material represents a material (Can be Git, Mercurial, Perforce, Subversion, Tfs, Pipeline, SCM)
type Material struct {
ID int `json:"id"`
Type string `json:"type"`
Description string `json:"description"`
Fingerprint string `json:"fingerprint"`
}
// MaterialModification represents a modification done on a material configuration
type MaterialModification struct {
ID int `json:"id"`
ModifiedTime int64 `json:"modified_time"`
UserName string `json:"user_name"`
EmailAddress string `json:"email_address"`
Comment string `json:"comment"`
Revision string `json:"revision"`
}
// MaterialRevision is a given revision of a material
type MaterialRevision struct {
Material Material `json:"material"`
Modifications []MaterialModification `json:"modifications"`
Changed bool `json:"changed"`
}