-
Notifications
You must be signed in to change notification settings - Fork 273
/
analyzer_types.go
50 lines (43 loc) 路 1.69 KB
/
analyzer_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
package diagnostics
type Analyze struct {
CustomResourceDefinition *customResourceDefinition `json:"customResourceDefinition,omitempty"`
Secret *analyzeSecret `json:"secret,omitempty"`
ImagePullSecret *imagePullSecret `json:"imagePullSecret,omitempty"`
DeploymentStatus *deploymentStatus `json:"deploymentStatus,omitempty"`
TextAnalyze *textAnalyze `json:"textAnalyze,omitempty"`
}
type customResourceDefinition struct {
analyzeMeta `json:",inline"`
Outcomes []*outcome `json:"outcomes"`
CustomResourceDefinitionName string `json:"customResourceDefinitionName"`
}
type analyzeSecret struct {
analyzeMeta `json:",inline"`
Outcomes []*outcome `json:"outcomes"`
SecretName string `json:"secretName"`
Namespace string `json:"namespace"`
Key string `json:"key,omitempty"`
}
type imagePullSecret struct {
analyzeMeta `json:",inline"`
Outcomes []*outcome `json:"outcomes"`
RegistryName string `json:"registryName"`
}
type deploymentStatus struct {
analyzeMeta `json:",inline"`
Outcomes []*outcome `json:"outcomes"`
Namespace string `json:"namespace"`
Name string `json:"name"`
}
type textAnalyze struct {
analyzeMeta `json:",inline"`
CollectorName string `json:"collectorName,omitempty"`
FileName string `json:"fileName,omitempty"`
RegexPattern string `json:"regex,omitempty"`
RegexGroups string `json:"regexGroups,omitempty"`
Outcomes []*outcome `json:"outcomes"`
}
type analyzeMeta struct {
CheckName string `json:"checkName,omitempty"`
Exclude bool `json:"exclude,omitempty"`
}