v2.30.0-pre2 f03ab25

admin_route.go RawHistoryFolder

1// Package dto provides shared data transfer objects for API responses.
2package dto
3
4// Route represents route configuration in API responses.
5type Route struct {
6	Domain string `json:"domain"`
7	Image  string `json:"image"`
8	HTTPS  bool   `json:"https"`
9}
10
11// RouteInfo represents route details in API responses.
12type RouteInfo struct {
13	Domain          string       `json:"domain"`
14	Image           string       `json:"image"`
15	ContainerID     string       `json:"container_id"`
16	ContainerStatus string       `json:"container_status"`
17	Network         string       `json:"network"`
18	Attachments     []Attachment `json:"attachments"`
19}
20
21// Attachment represents an attached service in API responses.
22type Attachment struct {
23	Name        string `json:"name"`
24	Image       string `json:"image"`
25	ContainerID string `json:"container_id"`
26	Status      string `json:"status"`
27	Network     string `json:"network"`
28}
29
30// RoutesResponse represents a list of routes.
31type RoutesResponse struct {
32	Routes []Route `json:"routes"`
33}
34
35// RoutesDetailResponse represents a detailed list of routes.
36type RoutesDetailResponse struct {
37	Routes []RouteInfo `json:"routes"`
38}
39
40// AttachmentsResponse represents a list of attachments for a route.
41type AttachmentsResponse struct {
42	Attachments []Attachment `json:"attachments"`
43}
44
45// RoutesByImageResponse represents routes found for a given image.
46type RoutesByImageResponse struct {
47	Image  string  `json:"image"`
48	Routes []Route `json:"routes"`
49}
50
51// RouteDeleteResponse represents a route removal response.
52type RouteDeleteResponse struct {
53	Status string `json:"status"`
54}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close