Documentation
¶
Index ¶
- Constants
- Variables
- type Direction
- type NodeResult
- type Ontology
- func (o *Ontology) AddRelation(relation *Relation, source *VulnInfoNode, dest *VulnInfoNode)
- func (o *Ontology) CWENodeById(identifier int) (*VulnInfoNode, error)
- func (o *Ontology) CommonAncestors(firstnode string, secondnode string, relationKind RelationKind) ([]VulnInfoPair, error)
- func (o *Ontology) Dot() string
- func (o *Ontology) InRelations(identifier string) ([]string, error)
- func (o *Ontology) NodeById(identifier string) (*VulnInfoNode, error)
- func (o *Ontology) OutRelations(identifier string) ([]string, error)
- func (o *Ontology) Relation(identifier string) (*Relation, error)
- func (o *Ontology) Slice(criterium string, direction Direction, relationKind RelationKind) (*Ontology, map[string]NodeResult, error)
- type Relation
- type RelationKind
- type VulnInfoKind
- type VulnInfoNode
- type VulnInfoPair
Constants ¶
View Source
const ( CWE = 1 OWASP = 2 TAXONOMY_MAPPING = 3 WEAKNESS = 4 )
View Source
const ( UNKNOWN = 1 CHILD_OF = 2 CAN_PRECEDE = 3 CAN_ALSO_BE = 4 MAPS_TO = 5 PARENT_OF = 6 PEER_OF = 7 REQUIRES = 8 STARTS_WITH = 9 FOLLOWED_BY = 10 )
View Source
const ( FORWARD = 1 BACKWARDS = 2 )
Variables ¶
View Source
var VulnInfo = Ontology{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type NodeResult ¶
type Ontology ¶
type Ontology struct {
// contains filtered or unexported fields
}
func (*Ontology) AddRelation ¶
func (o *Ontology) AddRelation(relation *Relation, source *VulnInfoNode, dest *VulnInfoNode)
func (*Ontology) CWENodeById ¶ added in v1.2.0
func (o *Ontology) CWENodeById(identifier int) (*VulnInfoNode, error)
func (*Ontology) CommonAncestors ¶
func (o *Ontology) CommonAncestors(firstnode string, secondnode string, relationKind RelationKind) ([]VulnInfoPair, error)
func (*Ontology) NodeById ¶ added in v1.1.0
func (o *Ontology) NodeById(identifier string) (*VulnInfoNode, error)
func (*Ontology) OutRelations ¶
func (*Ontology) Slice ¶
func (o *Ontology) Slice(criterium string, direction Direction, relationKind RelationKind) (*Ontology, map[string]NodeResult, error)
type Relation ¶
type Relation struct { Identifier string SourceId string TargetId string Label string Kind RelationKind }
type RelationKind ¶
type RelationKind int
type VulnInfoKind ¶
type VulnInfoKind int
type VulnInfoNode ¶
type VulnInfoNode struct { Identifier string Title string Description string Kind VulnInfoKind }
func (*VulnInfoNode) CWEIdentifier ¶ added in v1.3.0
func (n *VulnInfoNode) CWEIdentifier() string
type VulnInfoPair ¶
type VulnInfoPair struct { First NodeResult Second NodeResult }
Click to show internal directories.
Click to hide internal directories.