mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
* add strict flag to Analyzer/AnalyzerMeta and regenerate schemas and controller-gen code * map analyzer strict to result * Update stdout for human and json format * fix review comment * update interactive result * update interactive results * Update types.go * Update upload_results.go * print strict when only true
22 lines
545 B
Go
22 lines
545 B
Go
package preflight
|
|
|
|
type UploadPreflightResult struct {
|
|
Strict bool `json:"strict,omitempty"`
|
|
IsFail bool `json:"isFail,omitempty"`
|
|
IsWarn bool `json:"isWarn,omitempty"`
|
|
IsPass bool `json:"isPass,omitempty"`
|
|
|
|
Title string `json:"title"`
|
|
Message string `json:"message"`
|
|
URI string `json:"uri,omitempty"`
|
|
}
|
|
|
|
type UploadPreflightError struct {
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
type UploadPreflightResults struct {
|
|
Results []*UploadPreflightResult `json:"results,omitempty"`
|
|
Errors []*UploadPreflightError `json:"errors,omitempty"`
|
|
}
|