Download this file
| 1 | package wire |
| 2 | |
| 3 | // ProjectConnection identifies the source of reachable repositories. |
| 4 | type ProjectConnection struct { |
| 5 | ID string `json:"id"` |
| 6 | Forge string `json:"forge"` |
| 7 | Title string `json:"title"` |
| 8 | State string `json:"state"` |
| 9 | CanAdd bool `json:"can_add"` |
| 10 | } |
| 11 | |
| 12 | type ReachableProject struct { |
| 13 | Repo string `json:"repo"` |
| 14 | Name string `json:"name"` |
| 15 | Title string `json:"title"` |
| 16 | Description string `json:"description"` |
| 17 | DescriptionSource string `json:"description_source"` |
| 18 | Forge string `json:"forge"` |
| 19 | ConnectionID string `json:"connection_id"` |
| 20 | } |
| 21 | |
| 22 | type SetProjectStar struct { |
| 23 | Starred bool `json:"starred"` |
| 24 | } |
| 25 | |
| 26 | // EditProject contains only owner-editable metadata. Names belong to the team. |
| 27 | type EditProject struct { |
| 28 | UseTitle bool `json:"use_title,omitempty"` |
| 29 | Revision int64 `json:"revision"` |
| 30 | Title string `json:"title"` |
| 31 | Description string `json:"description"` |
| 32 | Names []string `json:"names"` |
| 33 | } |
| 34 | |
| 35 | // ForgetProjectName removes a private name, leaving team names intact. |
| 36 | type ForgetProjectName struct { |
| 37 | Name string `json:"name"` |
| 38 | } |
| 39 | |