-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathrunner_admin.go
More file actions
28 lines (24 loc) · 758 Bytes
/
runner_admin.go
File metadata and controls
28 lines (24 loc) · 758 Bytes
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 protocol
type Runner struct {
Name string `json:"name"`
Id int64 `json:"id"`
Authorization struct {
AuthorizationURL string `json:"authorization_url"`
ServerURL string `json:"server_url"`
ClientId string `json:"client_id"`
} `json:"authorization"`
}
type RunnerGroup struct {
Id int32 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
IsDefault bool `json:"default,omitempty"`
IsHosted bool `json:"is_hosted,omitempty"`
}
type RunnerGroupList struct {
RunnerGroups []RunnerGroup `json:"runner_groups"`
Count int `json:"total_count"`
}
type ListRunnersResponse struct {
TotalCount int `json:"total_count"`
Runners []Runner `json:"runners"`
}