-
Notifications
You must be signed in to change notification settings - Fork 218
/
types.go
50 lines (43 loc) · 1.39 KB
/
types.go
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
// Copyright 2024 Daytona Platforms Inc.
// SPDX-License-Identifier: Apache-2.0
package gitprovider
type GitProviderConfig struct {
Id string `json:"id"`
Username string `json:"username"`
Token string `json:"token"`
BaseApiUrl *string `json:"baseApiUrl,omitempty"`
} // @name GitProvider
type GitUser struct {
Id string `json:"id"`
Username string `json:"username"`
Name string `json:"name"`
Email string `json:"email"`
} // @name GitUser
type GitRepository struct {
Id string `json:"id"`
Url string `json:"url"`
Name string `json:"name"`
Branch *string `json:"branch,omitempty"`
Sha string `json:"sha"`
Owner string `json:"owner"`
PrNumber *uint32 `json:"prNumber,omitempty"`
Source string `json:"source"`
Path *string `json:"path,omitempty"`
} // @name GitRepository
type GitNamespace struct {
Id string `json:"id"`
Name string `json:"name"`
} // @name GitNamespace
type GitBranch struct {
Name string `json:"name"`
Sha string `json:"sha"`
} // @name GitBranch
type GitPullRequest struct {
Name string `json:"name"`
Branch string `json:"branch"`
Sha string `json:"sha"`
SourceRepoId string `json:"sourceRepoId"`
SourceRepoUrl string `json:"sourceRepoUrl"`
SourceRepoOwner string `json:"sourceRepoOwner"`
SourceRepoName string `json:"sourceRepoName"`
} // @name GitPullRequest