-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathRepository.ts
More file actions
192 lines (189 loc) · 5.88 KB
/
Repository.ts
File metadata and controls
192 lines (189 loc) · 5.88 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// Original file: ../../vendor/zoekt/grpc/protos/zoekt/webserver/v1/webserver.proto
import type { RepositoryBranch as _zoekt_webserver_v1_RepositoryBranch, RepositoryBranch__Output as _zoekt_webserver_v1_RepositoryBranch__Output } from '../../../zoekt/webserver/v1/RepositoryBranch';
import type { Repository as _zoekt_webserver_v1_Repository, Repository__Output as _zoekt_webserver_v1_Repository__Output } from '../../../zoekt/webserver/v1/Repository';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { Long } from '@grpc/proto-loader';
export interface Repository {
/**
* Sourcegraph's repository ID
*/
'id'?: (number);
/**
* The repository name
*/
'name'?: (string);
/**
* The repository URL.
*/
'url'?: (string);
/**
* The physical source where this repo came from, eg. full
* path to the zip filename or git repository directory. This
* will not be exposed in the UI, but can be used to detect
* orphaned index shards.
*/
'source'?: (string);
/**
* The branches indexed in this repo.
*/
'branches'?: (_zoekt_webserver_v1_RepositoryBranch)[];
/**
* Nil if this is not the super project.
*/
'sub_repo_map'?: ({[key: string]: _zoekt_webserver_v1_Repository});
/**
* URL template to link to the commit of a branch
*/
'commit_url_template'?: (string);
/**
* The repository URL for getting to a file. Has access to
* {{.Version}}, {{.Path}}
*/
'file_url_template'?: (string);
/**
* The URL fragment to add to a file URL for line numbers. has
* access to {{.LineNumber}}. The fragment should include the
* separator, generally '#' or ';'.
*/
'line_fragment_template'?: (string);
/**
* Perf optimization: priority is set when we load the shard. It corresponds to
* the value of "priority" stored in RawConfig.
*/
'priority'?: (number | string);
/**
* All zoekt.* configuration settings.
*/
'raw_config'?: ({[key: string]: string});
/**
* Importance of the repository, bigger is more important
*/
'rank'?: (number);
/**
* index_options is a hash of the options used to create the index for the
* repo.
*/
'index_options'?: (string);
/**
* has_symbols is true if this repository has indexed ctags
* output. Sourcegraph specific: This field is more appropriate for
* IndexMetadata. However, we store it here since the Sourcegraph frontend
* can read this structure but not IndexMetadata.
*/
'has_symbols'?: (boolean);
/**
* tombstone is true if we are not allowed to search this repo.
*/
'tombstone'?: (boolean);
/**
* latest_commit_date is the date of the latest commit among all indexed Branches.
* The date might be time.Time's 0-value if the repository was last indexed
* before this field was added.
*/
'latest_commit_date'?: (_google_protobuf_Timestamp | null);
/**
* file_tombstones is a set of file paths that should be ignored across all branches
* in this shard.
*/
'file_tombstones'?: (string)[];
/**
* tenant_id is the tenant ID of the repository.
*/
'tenant_id'?: (number | string | Long);
/**
* Additional metadata about the repository.
*/
'metadata'?: ({[key: string]: string});
}
export interface Repository__Output {
/**
* Sourcegraph's repository ID
*/
'id': (number);
/**
* The repository name
*/
'name': (string);
/**
* The repository URL.
*/
'url': (string);
/**
* The physical source where this repo came from, eg. full
* path to the zip filename or git repository directory. This
* will not be exposed in the UI, but can be used to detect
* orphaned index shards.
*/
'source': (string);
/**
* The branches indexed in this repo.
*/
'branches': (_zoekt_webserver_v1_RepositoryBranch__Output)[];
/**
* Nil if this is not the super project.
*/
'sub_repo_map': ({[key: string]: _zoekt_webserver_v1_Repository__Output});
/**
* URL template to link to the commit of a branch
*/
'commit_url_template': (string);
/**
* The repository URL for getting to a file. Has access to
* {{.Version}}, {{.Path}}
*/
'file_url_template': (string);
/**
* The URL fragment to add to a file URL for line numbers. has
* access to {{.LineNumber}}. The fragment should include the
* separator, generally '#' or ';'.
*/
'line_fragment_template': (string);
/**
* Perf optimization: priority is set when we load the shard. It corresponds to
* the value of "priority" stored in RawConfig.
*/
'priority': (number);
/**
* All zoekt.* configuration settings.
*/
'raw_config': ({[key: string]: string});
/**
* Importance of the repository, bigger is more important
*/
'rank': (number);
/**
* index_options is a hash of the options used to create the index for the
* repo.
*/
'index_options': (string);
/**
* has_symbols is true if this repository has indexed ctags
* output. Sourcegraph specific: This field is more appropriate for
* IndexMetadata. However, we store it here since the Sourcegraph frontend
* can read this structure but not IndexMetadata.
*/
'has_symbols': (boolean);
/**
* tombstone is true if we are not allowed to search this repo.
*/
'tombstone': (boolean);
/**
* latest_commit_date is the date of the latest commit among all indexed Branches.
* The date might be time.Time's 0-value if the repository was last indexed
* before this field was added.
*/
'latest_commit_date': (_google_protobuf_Timestamp__Output | null);
/**
* file_tombstones is a set of file paths that should be ignored across all branches
* in this shard.
*/
'file_tombstones': (string)[];
/**
* tenant_id is the tenant ID of the repository.
*/
'tenant_id': (number);
/**
* Additional metadata about the repository.
*/
'metadata': ({[key: string]: string});
}