aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/chavacava/garif
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-12-05 15:10:03 +0100
committerTaras Madan <tarasmadan@google.com>2023-12-06 11:31:44 +0000
commit2ab72b4feef2c97f22f90cfbf9e45a6cfcd08bda (patch)
treea6d19b94b6399fcc00a6cfa430885cd349dd1533 /vendor/github.com/chavacava/garif
parente08e8f492d31d672cc245944c185f8aadf2ee695 (diff)
vendor: updates
Diffstat (limited to 'vendor/github.com/chavacava/garif')
-rw-r--r--vendor/github.com/chavacava/garif/enums.go41
-rw-r--r--vendor/github.com/chavacava/garif/models.go4
2 files changed, 43 insertions, 2 deletions
diff --git a/vendor/github.com/chavacava/garif/enums.go b/vendor/github.com/chavacava/garif/enums.go
new file mode 100644
index 000000000..dea2daf13
--- /dev/null
+++ b/vendor/github.com/chavacava/garif/enums.go
@@ -0,0 +1,41 @@
+package garif
+
+type ResultKind string
+
+// declare JSON values
+const (
+ _pass ResultKind = "pass"
+ _open ResultKind = "open"
+ _informational ResultKind = "informational"
+ _notApplicable ResultKind = "notApplicable"
+ _review ResultKind = "review"
+ _fail ResultKind = "fail"
+)
+
+// create public visible constants with a namespace as enums
+const (
+ ResultKind_Pass ResultKind = _pass
+ ResultKind_Open ResultKind = _open
+ ResultKind_Informational ResultKind = _informational
+ ResultKind_NotApplicable ResultKind = _notApplicable
+ ResultKind_Review ResultKind = _review
+ ResultKind_Fail ResultKind = _fail
+)
+
+type ResultLevel string
+
+// declare JSON values
+const (
+ _warning ResultLevel = "warning"
+ _error ResultLevel = "error"
+ _note ResultLevel = "note"
+ _none ResultLevel = "none"
+)
+
+// create public visible constants with a namespace as enums
+const (
+ ResultLevel_Warning ResultLevel = _warning
+ ResultLevel_Error ResultLevel = _error
+ ResultLevel_Note ResultLevel = _note
+ ResultLevel_None ResultLevel = _none
+)
diff --git a/vendor/github.com/chavacava/garif/models.go b/vendor/github.com/chavacava/garif/models.go
index 3668436a3..f16a86136 100644
--- a/vendor/github.com/chavacava/garif/models.go
+++ b/vendor/github.com/chavacava/garif/models.go
@@ -935,10 +935,10 @@ type Result struct {
HostedViewerUri string `json:"hostedViewerUri,omitempty"`
// A value that categorizes results by evaluation state.
- Kind interface{} `json:"kind,omitempty"`
+ Kind ResultKind `json:"kind,omitempty"`
// A value specifying the severity level of the result.
- Level interface{} `json:"level,omitempty"`
+ Level ResultLevel `json:"level,omitempty"`
// The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.
Locations []*Location `json:"locations,omitempty"`