Documentation ¶
Index ¶
- Constants
- func AmendCveDoc(doc string) string
- func Render(w io.Writer, source []byte) error
- func ValidateCveData(cves []Vulnerability)
- type AdditionalFields
- type Attributes
- type Content
- type JSONRenderer
- type K8sVulnDB
- type Layout
- type Mark
- type MarkAttributes
- type MarkStruct
- type Node
- type NodeType
- type Version
- type Vulnerability
Constants ¶
View Source
const ( NodeTypeNone = "none" NodeTypeBlockquote = "blockquote" NodeTypeBulletList = "bulletList" NodeTypeCodeBlock = "codeBlock" NodeTypeHeading = "heading" NodeTypeMediaGroup = "mediaGroup" NodeTypeMediaSingle = "mediaSingle" NodeTypeOrderedList = "orderedList" NodeTypePanel = "panel" NodeTypeParagraph = "paragraph" NodeTypeRule = "rule" NodeTypeTable = "table" NodeTypeListItem = "listItem" NodeTypeMedia = "media" NodeTypeTableCell = "table_cell" NodeTypeTableHeader = "table_header" NodeTypeTableRow = "table_row" NodeTypeEmoji = "emoji" NodeTypeHardBreak = "hardBreak" NodeTypeInlineCard = "inlineCard" NodeTypeMention = "mention" NodeTypeText = "text" )
View Source
const ( LayoutWrapLeft = "wrap-left" LayoutCenter = "center" LayoutWrapRight = "wrap-right" LayoutWide = "wide" LayoutFullWidth = "full-width" LayoutAlignStart = "align-start" LayoutAlignEnd = "align-end" )
Enum values for Layout in Attributes struct
Variables ¶
This section is empty.
Functions ¶
func AmendCveDoc ¶
func ValidateCveData ¶
func ValidateCveData(cves []Vulnerability)
Types ¶
type AdditionalFields ¶
type Attributes ¶
type JSONRenderer ¶
type JSONRenderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer() *JSONRenderer
func (*JSONRenderer) AddOptions ¶
func (*JSONRenderer) AddOptions(...renderer.Option)
type MarkAttributes ¶
type MarkStruct ¶
type MarkStruct struct { Type Mark `json:"type,omitempty"` Attributes *MarkAttributes `json:"attrs,omitempty"` }
type Node ¶
type Node struct { Type NodeType `json:"type"` Version int `json:"version,omitempty"` Attributes *Attributes `json:"attrs,omitempty"` Content []*Node `json:"content,omitempty"` Marks []MarkStruct `json:"marks,omitempty"` Text string `json:"text,omitempty"` }
func (*Node) AddContent ¶
type Vulnerability ¶
type Vulnerability struct { ID string `json:"id,omitempty"` CreatedAt string `json:"created_at,omitempty"` Summary string `json:"summary,omitempty"` Component string `json:"component,omitempty"` Description string `json:"description,omitempty"` AffectedVersion []Version `json:"affected_version,omitempty"` FixedVersion []Version `json:"fixed_version,omitempty"` Urls []string `json:"urls,omitempty"` Cvss string `json:"cvss,omitempty"` Severity string `json:"severity,omitempty"` Score float64 `json:"score,omitempty"` }
Click to show internal directories.
Click to hide internal directories.