-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
100 lines (83 loc) · 2.21 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
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
package config
type GlobalCloudConfig struct {
CloudConfigSource CloudConfigSource `yaml:"cloudConfigSource"`
}
type CloudConfigSource struct {
RootUrl string `yaml:"rootUrl"`
RelativFileUrl string `yaml:"relativFileUrl"`
}
type LocalGitConfig struct {
Git Git `yaml:"git"`
}
type Git struct {
Url string `yaml:"url"`
}
type GitInfo struct {
IsRepo bool
IsDirty bool
EnableCommit bool
}
type SourceProvider struct {
Host string `yaml:"host"`
AccessToken string `yaml:"access_token"`
ExcludeProjects []string `yaml:"exclude_projects"`
}
type Nexus struct {
Url string `yaml:"url"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
type TerminalConfig struct {
Width int `yaml:"width"`
Format string `yaml:"format"`
}
type CloudDeprecated struct {
Type string `json:"type"`
Data struct {
Dependencies []CloudDeprecatedDependency `json:"dependencies"`
} `json:"data"`
}
type Links struct {
Href string `json:"href"`
Title string `json:"title,omitempty"`
Templated bool `json:"templated"`
}
type CloudServices struct {
Type string `json:"type"`
Data []CloudService `json:"data"`
}
type CloudService struct {
GroupID string `json:"groupId"`
ArtifactID string `json:"artifactId"`
BuildInfo string `json:"build-info"`
DefaultEnvironment string `json:"defaultEnvironment"`
Environments []struct {
Name string `json:"name"`
Links map[string]Links `json:"_links"`
} `json:"environments"`
}
type CloudDeprecatedDependency struct {
GroupId string `json:"groupId"`
ArtifactId string `json:"artifactId"`
Files []string `json:"files"`
Associated struct {
Files []string `json:"files"`
Dependencies []CloudDeprecatedDependency `json:"dependencies"`
} `json:"associated"`
ReplacementTemplates []string `json:"replacement_templates"`
}
type Directory interface {
Dir() string
FilePath(fileName string) (string, error)
}
type DirConfig struct {
Path string
}
type CloudTemplate struct {
Name string
Project Project
}
type CloudProjectDefaults struct {
Type string `json:"type"`
Settings ProjectSettings `json:"settings"`
}