-
Notifications
You must be signed in to change notification settings - Fork 14
/
resource.go
29 lines (26 loc) · 1011 Bytes
/
resource.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
package bamboo
// ResourceMetadata holds metadata about the API service response
// - Expand: Element of the expand parameter used for the service
// - Link: See ServiceLink
type ResourceMetadata struct {
Expand string `json:"expand"`
Link *Link `json:"link"`
}
// Link holds link information for the service
// - HREF: Relationship between link and element (defaults to "self")
// - Rel: URL for the project
type Link struct {
HREF string `json:"href"`
Rel string `json:"rel"`
}
// CollectionMetadata holds metadata about a collection of Bamboo resources
// - Size: Number of resources
// - Expand: Element of the expand parameter used for the collection
// - StartIndex: Index from which to the request started gathering resources
// - MaxResult: The maximum number of returned resources for the request
type CollectionMetadata struct {
Size int `json:"size"`
Expand string `json:"expand"`
StartIndex int `json:"start-index"`
MaxResult int `json:"max-result"`
}