-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathrepository_environments.go
28 lines (24 loc) · 1.13 KB
/
repository_environments.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
package api
type RepositoryEnvironment struct {
UUID string `json:"uuid"` // Identifier of the environment
ID string `json:"id"` // The environment ID
Name string `json:"name"` // The environment name
Description string `json:"description"` // The environment description
}
type RepositoryEnvironmentCollectionResponse struct {
Data []RepositoryEnvironment `json:"data"` // List of environments
Meta ResponseMetadata `json:"meta"` // Metadata about the request
Links Links `json:"links"` // Links to other pages of results
}
type SearchEnvironmentResponse struct {
EnvironmentName string `json:"environment_name"` // Environment found
Description string `json:"description"` // Description of the environment found
ID string `json:"id"` // ID of the environment found
}
// SetMetadata Map metadata to the collection.
// meta Metadata about the request.
// links Links to other pages of results.
func (r *RepositoryEnvironmentCollectionResponse) SetMetadata(meta ResponseMetadata, links Links) {
r.Meta = meta
r.Links = links
}