Documentation ¶
Index ¶
- type Asset
- type AssetRisk
- type Assets
- type Attributes
- type Component
- type ComponentRepresentation
- type ComponentThreat
- type Dataflow
- type Mitigation
- type Otm
- type Parent
- type Position
- type Project
- type Repository
- type Representation
- type Size
- type Threat
- type ThreatRisk
- type TrustZone
- type TrustZoneRepresentation
- type TrustZoneRisk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
CMDBID string `json:"cmdbId"`
}
type Component ¶
type Component struct { Name string `json:"name"` ID string `json:"id"` Description string `json:"description"` Parent Parent `json:"parent"` Type string `json:"type"` Tags []string `json:"tags,omitempty"` Representations []ComponentRepresentation `json:"representations"` Assets *Assets `json:"assets,omitempty"` Threats []ComponentThreat `json:"threats,omitempty"` Attributes interface{} `json:"attributes"` }
type ComponentRepresentation ¶
type ComponentRepresentation struct { Representation string `json:"representation"` ID string `json:"id"` Position *Position `json:"position,omitempty"` Size *Size `json:"size,omitempty"` Package *string `json:"package,omitempty"` File *string `json:"file,omitempty"` Line *int64 `json:"line,omitempty"` CodeSnippet *string `json:"codeSnippet,omitempty"` }
type ComponentThreat ¶
type ComponentThreat struct { Threat string `json:"threat"` State string `json:"state"` Mitigations []Mitigation `json:"mitigations"` }
type Dataflow ¶
type Dataflow struct { Name string `json:"name"` ID string `json:"id"` Bidirectional bool `json:"bidirectional"` Source string `json:"source"` Destination string `json:"destination"` Tags []string `json:"tags"` Assets []string `json:"assets"` Representations interface{} `json:"representations"` Threats []ComponentThreat `json:"threats"` Attributes interface{} `json:"attributes"` }
type Mitigation ¶
type Otm ¶
type Otm struct { OtmVersion string `json:"otmVersion"` Project Project `json:"project"` Representations []Representation `json:"representations"` Assets []Asset `json:"assets"` Components []Component `json:"components"` Dataflows []Dataflow `json:"dataflows"` TrustZones []TrustZone `json:"trustZones"` Threats []Threat `json:"threats"` Mitigations []Asset `json:"mitigations"` }
type Repository ¶
type Repository struct {
URL string `json:"url"`
}
type Representation ¶
type Representation struct { Name string `json:"name"` ID string `json:"id"` Type string `json:"type"` Size *Size `json:"size,omitempty"` Attributes interface{} `json:"attributes"` Repository *Repository `json:"repository,omitempty"` }
type ThreatRisk ¶
type TrustZone ¶
type TrustZone struct { Name string `json:"name"` ID string `json:"id"` Type string `json:"type"` Description string `json:"description"` Risk TrustZoneRisk `json:"risk"` Representations []TrustZoneRepresentation `json:"representations"` Attributes interface{} `json:"attributes"` Parent *Parent `json:"parent,omitempty"` }
type TrustZoneRepresentation ¶
type TrustZoneRisk ¶
type TrustZoneRisk struct {
TrustRating int64 `json:"trustRating"`
}
Click to show internal directories.
Click to hide internal directories.