Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CVEAllowlist ¶
type CVEAllowlist struct { ID int64 `orm:"pk;auto;column(id)" json:"id,omitempty"` ProjectID int64 `orm:"column(project_id)" json:"project_id"` ExpiresAt *int64 `orm:"column(expires_at)" json:"expires_at,omitempty"` Items []CVEAllowlistItem `orm:"-" json:"items"` ItemsText string `orm:"column(items)" json:"-"` CreationTime time.Time `orm:"column(creation_time);auto_now_add"` UpdateTime time.Time `orm:"column(update_time);auto_now"` }
CVEAllowlist defines the data model for a CVE allowlist
func (*CVEAllowlist) CVESet ¶
func (c *CVEAllowlist) CVESet() CVESet
CVESet returns the set of CVE id of the items in the allowlist to help filter the vulnerability list
func (*CVEAllowlist) IsExpired ¶
func (c *CVEAllowlist) IsExpired() bool
IsExpired returns whether the allowlist is expired
type CVEAllowlistItem ¶
type CVEAllowlistItem struct {
CVEID string `json:"cve_id"`
}
CVEAllowlistItem defines one item in the CVE allowlist
Click to show internal directories.
Click to hide internal directories.