1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fixes missing TLPLabel type for TLPLabel constants

This commit is contained in:
Tim Bastin 2025-11-05 18:02:22 +01:00 committed by GitHub
parent 8dd4cb4fa8
commit eb60aeb4dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,23 +26,23 @@ type TLPLabel string
const ( const (
// TLPLabelUnlabeled is the 'UNLABELED' policy. // TLPLabelUnlabeled is the 'UNLABELED' policy.
TLPLabelUnlabeled = "UNLABELED" TLPLabelUnlabeled TLPLabel = "UNLABELED"
// TLPLabelWhite is the 'WHITE' policy. // TLPLabelWhite is the 'WHITE' policy.
TLPLabelWhite = "WHITE" TLPLabelWhite TLPLabel = "WHITE"
// TLPLabelGreen is the 'GREEN' policy. // TLPLabelGreen is the 'GREEN' policy.
TLPLabelGreen = "GREEN" TLPLabelGreen TLPLabel = "GREEN"
// TLPLabelAmber is the 'AMBER' policy. // TLPLabelAmber is the 'AMBER' policy.
TLPLabelAmber = "AMBER" TLPLabelAmber TLPLabel = "AMBER"
// TLPLabelRed is the 'RED' policy. // TLPLabelRed is the 'RED' policy.
TLPLabelRed = "RED" TLPLabelRed TLPLabel = "RED"
) )
var tlpLabelPattern = alternativesUnmarshal( var tlpLabelPattern = alternativesUnmarshal(
TLPLabelUnlabeled, string(TLPLabelUnlabeled),
TLPLabelWhite, string(TLPLabelWhite),
TLPLabelGreen, string(TLPLabelGreen),
TLPLabelAmber, string(TLPLabelAmber),
TLPLabelRed, string(TLPLabelRed),
) )
// JSONURL is an URL to JSON document. // JSONURL is an URL to JSON document.