FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/pkg/api/httpapi_schema.go at master · fuez/sourcegraph · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
fuez
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
pkg
/
api
/
httpapi_schema.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (48 loc) · 2.11 KB
Breadcrumbs
sourcegraph
/
pkg
/
api
/
httpapi_schema.go
Copy path
File metadata and controls
58 lines (48 loc) · 2.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
api
// RepoCreateOrUpdateRequest is a request to create or update a repository.
//
// The request handler determines if the request refers to an existing repository (and should therefore update
// instead of create). If ExternalRepo is set, then it tries to find a stored repository with the same ExternalRepo
// values. If ExternalRepo is not set, then it tries to find a stored repository with the same RepoName value.
//
// NOTE: Some fields are only used during creation (and are not used to update an existing repository).
type
RepoCreateOrUpdateRequest
struct
{
// ExternalRepo identifies this repository by its ID on the external service where it resides (and the external
// service itself).
ExternalRepo
ExternalRepoSpec
// RepoName is the repository's name.
//
// TODO(sqs): Add a way for callers to request that this repository be renamed.
RepoName
`json:"repo"`
// Enabled is whether the repository should be enabled when initially created.
//
// NOTE: If the repository already exists when this request is received, its enablement is not updated. This
// field is used only when creating the repository.
Enabled
bool
`json:"enabled"`
// Description is the repository's description on its external origin.
Description
string
`json:"description"`
// Fork is whether this repository is a fork (according to its external origin).
Fork
bool
`json:"fork"`
// Archived is whether this repository is archived (according to its external origin).
Archived
bool
`json:"archived"`
}
type
ReposUpdateMetadataRequest
struct
{
RepoName
`json:"repo"`
Description
string
`json:"description"`
Fork
bool
`json:"fork"`
Archived
bool
`json:"Archived"`
}
type
PhabricatorRepoCreateRequest
struct
{
RepoName
`json:"repo"`
Callsign
string
`json:"callsign"`
URL
string
`json:"url"`
}
type
ExternalServiceConfigsRequest
struct
{
Kind
string
`json:"kind"`
}
type
ExternalServicesListRequest
struct
{
// NOTE(tsenart): We must keep this field in addition to the
// Kinds field until after we roll-out this change, for backwards compatibility.
Kind
string
`json:"kind"`
Kinds
[]
string
`json:"kinds"`
}
Back
|
FazBrowse Home
|
New Git URL