Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCVEId = errors.New("invalid cve id") ErrInvalidSecurityLevel = errors.New("invalid security level") ErrEmptyCVEId = errors.New("cve id can't be empty") ErrExistCVE = errors.New("cve already exist") ErrNotFoundCVE = errors.New("cve could not be found") ErrAddCVE = errors.New("cve could not be created") ErrDeleteCVE = errors.New("cve could not be deleted") ErrUpdateCVE = errors.New("cve could not be updated") ErrNotPerformedOperation = errors.New("operation could not be performed") )
Contains error codes for authentication service.
Functions ¶
func CheckSeverity ¶
CheckSeverity function checks if the given string is a valid severity value ("None", "Low", "Medium", "High", "Critical"). If valid, it converts the string to a format starting with an uppercase letter. If not valid, it returns an error.
func FormatTime ¶
func IsValidCVE ¶
isValidCVE checks if the given string is a valid CVE ID
func NormalizeCVEId ¶
NormalizeCVEId normalizes the CVE id.
func ValidateCVEId ¶
ValidateCVEId validates the CVE id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.