Documentation ¶
Index ¶
- type AssetInstance
- type OtmSchemaJson
- type OtmSchemaJsonAssetsElem
- type OtmSchemaJsonAssetsElemAttributes
- type OtmSchemaJsonAssetsElemRisk
- type OtmSchemaJsonComponentsElem
- type OtmSchemaJsonComponentsElemAttributes
- type OtmSchemaJsonDataflowsElem
- type OtmSchemaJsonDataflowsElemAttributes
- type OtmSchemaJsonMitigationsElem
- type OtmSchemaJsonMitigationsElemAttributes
- type OtmSchemaJsonProject
- type OtmSchemaJsonProjectAttributes
- type OtmSchemaJsonRepresentationsElem
- type OtmSchemaJsonRepresentationsElemAttributes
- type OtmSchemaJsonRepresentationsElemRepository
- type OtmSchemaJsonThreatsElem
- type OtmSchemaJsonThreatsElemAttributes
- type OtmSchemaJsonThreatsElemRisk
- type OtmSchemaJsonTrustZonesElem
- type OtmSchemaJsonTrustZonesElemAttributes
- type OtmSchemaJsonTrustZonesElemRisk
- type Parent
- type Position
- type RepresentationElement
- type RepresentationElementAttributes
- type Size
- type Threat
- type ThreatMitigationsElem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetInstance ¶
type AssetInstance struct { // Processed corresponds to the JSON schema field "processed". Processed []*string `json:"processed,omitempty" yaml:"processed,omitempty" mapstructure:"processed,omitempty"` // Stored corresponds to the JSON schema field "stored". Stored []*string `json:"stored,omitempty" yaml:"stored,omitempty" mapstructure:"stored,omitempty"` }
type OtmSchemaJson ¶
type OtmSchemaJson struct { // Assets corresponds to the JSON schema field "assets". Assets []OtmSchemaJsonAssetsElem `json:"assets,omitempty" yaml:"assets,omitempty" mapstructure:"assets,omitempty"` // Components corresponds to the JSON schema field "components". Components []OtmSchemaJsonComponentsElem `json:"components,omitempty" yaml:"components,omitempty" mapstructure:"components,omitempty"` // Dataflows corresponds to the JSON schema field "dataflows". Dataflows []OtmSchemaJsonDataflowsElem `json:"dataflows,omitempty" yaml:"dataflows,omitempty" mapstructure:"dataflows,omitempty"` // Mitigations corresponds to the JSON schema field "mitigations". Mitigations []OtmSchemaJsonMitigationsElem `json:"mitigations,omitempty" yaml:"mitigations,omitempty" mapstructure:"mitigations,omitempty"` // OtmVersion corresponds to the JSON schema field "otmVersion". OtmVersion string `json:"otmVersion" yaml:"otmVersion" mapstructure:"otmVersion"` // Project corresponds to the JSON schema field "project". Project OtmSchemaJsonProject `json:"project" yaml:"project" mapstructure:"project"` // Representations corresponds to the JSON schema field "representations". Representations []OtmSchemaJsonRepresentationsElem `json:"representations,omitempty" yaml:"representations,omitempty" mapstructure:"representations,omitempty"` // Threats corresponds to the JSON schema field "threats". Threats []OtmSchemaJsonThreatsElem `json:"threats,omitempty" yaml:"threats,omitempty" mapstructure:"threats,omitempty"` // TrustZones corresponds to the JSON schema field "trustZones". TrustZones []OtmSchemaJsonTrustZonesElem `json:"trustZones,omitempty" yaml:"trustZones,omitempty" mapstructure:"trustZones,omitempty"` }
func (*OtmSchemaJson) UnmarshalJSON ¶
func (j *OtmSchemaJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonAssetsElem ¶
type OtmSchemaJsonAssetsElem struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonAssetsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Risk corresponds to the JSON schema field "risk". Risk OtmSchemaJsonAssetsElemRisk `json:"risk" yaml:"risk" mapstructure:"risk"` }
func (*OtmSchemaJsonAssetsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonAssetsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonAssetsElemAttributes ¶
type OtmSchemaJsonAssetsElemAttributes map[string]interface{}
type OtmSchemaJsonAssetsElemRisk ¶
type OtmSchemaJsonAssetsElemRisk struct { // Availability corresponds to the JSON schema field "availability". Availability float64 `json:"availability" yaml:"availability" mapstructure:"availability"` // Comment corresponds to the JSON schema field "comment". Comment *string `json:"comment,omitempty" yaml:"comment,omitempty" mapstructure:"comment,omitempty"` // Confidentiality corresponds to the JSON schema field "confidentiality". Confidentiality float64 `json:"confidentiality" yaml:"confidentiality" mapstructure:"confidentiality"` // Integrity corresponds to the JSON schema field "integrity". Integrity float64 `json:"integrity" yaml:"integrity" mapstructure:"integrity"` }
func (*OtmSchemaJsonAssetsElemRisk) UnmarshalJSON ¶
func (j *OtmSchemaJsonAssetsElemRisk) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonComponentsElem ¶
type OtmSchemaJsonComponentsElem struct { // Assets corresponds to the JSON schema field "assets". Assets *AssetInstance `json:"assets,omitempty" yaml:"assets,omitempty" mapstructure:"assets,omitempty"` // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonComponentsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Parent corresponds to the JSON schema field "parent". Parent Parent `json:"parent" yaml:"parent" mapstructure:"parent"` // Representations corresponds to the JSON schema field "representations". Representations []RepresentationElement `json:"representations,omitempty" yaml:"representations,omitempty" mapstructure:"representations,omitempty"` // Tags corresponds to the JSON schema field "tags". Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty" mapstructure:"tags,omitempty"` // Threats corresponds to the JSON schema field "threats". Threats []Threat `json:"threats,omitempty" yaml:"threats,omitempty" mapstructure:"threats,omitempty"` // Type corresponds to the JSON schema field "type". Type string `json:"type" yaml:"type" mapstructure:"type"` }
func (*OtmSchemaJsonComponentsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonComponentsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonComponentsElemAttributes ¶
type OtmSchemaJsonComponentsElemAttributes map[string]interface{}
type OtmSchemaJsonDataflowsElem ¶
type OtmSchemaJsonDataflowsElem struct { // Assets corresponds to the JSON schema field "assets". Assets []*string `json:"assets,omitempty" yaml:"assets,omitempty" mapstructure:"assets,omitempty"` // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonDataflowsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Bidirectional corresponds to the JSON schema field "bidirectional". Bidirectional *bool `json:"bidirectional,omitempty" yaml:"bidirectional,omitempty" mapstructure:"bidirectional,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Destination corresponds to the JSON schema field "destination". Destination string `json:"destination" yaml:"destination" mapstructure:"destination"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Source corresponds to the JSON schema field "source". Source string `json:"source" yaml:"source" mapstructure:"source"` // Tags corresponds to the JSON schema field "tags". Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty" mapstructure:"tags,omitempty"` // Threats corresponds to the JSON schema field "threats". Threats []Threat `json:"threats,omitempty" yaml:"threats,omitempty" mapstructure:"threats,omitempty"` }
func (*OtmSchemaJsonDataflowsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonDataflowsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonDataflowsElemAttributes ¶
type OtmSchemaJsonDataflowsElemAttributes map[string]interface{}
type OtmSchemaJsonMitigationsElem ¶
type OtmSchemaJsonMitigationsElem struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonMitigationsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // RiskReduction corresponds to the JSON schema field "riskReduction". RiskReduction float64 `json:"riskReduction" yaml:"riskReduction" mapstructure:"riskReduction"` }
func (*OtmSchemaJsonMitigationsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonMitigationsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonMitigationsElemAttributes ¶
type OtmSchemaJsonMitigationsElemAttributes map[string]interface{}
type OtmSchemaJsonProject ¶
type OtmSchemaJsonProject struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonProjectAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Owner corresponds to the JSON schema field "owner". Owner *string `json:"owner,omitempty" yaml:"owner,omitempty" mapstructure:"owner,omitempty"` // OwnerContact corresponds to the JSON schema field "ownerContact". OwnerContact *string `json:"ownerContact,omitempty" yaml:"ownerContact,omitempty" mapstructure:"ownerContact,omitempty"` // Tags corresponds to the JSON schema field "tags". Tags []string `json:"tags,omitempty" yaml:"tags,omitempty" mapstructure:"tags,omitempty"` }
func (*OtmSchemaJsonProject) UnmarshalJSON ¶
func (j *OtmSchemaJsonProject) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonProjectAttributes ¶
type OtmSchemaJsonProjectAttributes map[string]interface{}
type OtmSchemaJsonRepresentationsElem ¶
type OtmSchemaJsonRepresentationsElem struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonRepresentationsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Repository corresponds to the JSON schema field "repository". Repository *OtmSchemaJsonRepresentationsElemRepository `json:"repository,omitempty" yaml:"repository,omitempty" mapstructure:"repository,omitempty"` // Size corresponds to the JSON schema field "size". Size *Size `json:"size,omitempty" yaml:"size,omitempty" mapstructure:"size,omitempty"` // Type corresponds to the JSON schema field "type". Type string `json:"type" yaml:"type" mapstructure:"type"` }
func (*OtmSchemaJsonRepresentationsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonRepresentationsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonRepresentationsElemAttributes ¶
type OtmSchemaJsonRepresentationsElemAttributes map[string]interface{}
type OtmSchemaJsonRepresentationsElemRepository ¶
type OtmSchemaJsonRepresentationsElemRepository struct { // Url corresponds to the JSON schema field "url". Url *string `json:"url" yaml:"url" mapstructure:"url"` }
func (*OtmSchemaJsonRepresentationsElemRepository) UnmarshalJSON ¶
func (j *OtmSchemaJsonRepresentationsElemRepository) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonThreatsElem ¶
type OtmSchemaJsonThreatsElem struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonThreatsElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Categories corresponds to the JSON schema field "categories". Categories []*string `json:"categories,omitempty" yaml:"categories,omitempty" mapstructure:"categories,omitempty"` // Cwes corresponds to the JSON schema field "cwes". Cwes []*string `json:"cwes,omitempty" yaml:"cwes,omitempty" mapstructure:"cwes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Risk corresponds to the JSON schema field "risk". Risk OtmSchemaJsonThreatsElemRisk `json:"risk" yaml:"risk" mapstructure:"risk"` // Tags corresponds to the JSON schema field "tags". Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty" mapstructure:"tags,omitempty"` }
func (*OtmSchemaJsonThreatsElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonThreatsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonThreatsElemAttributes ¶
type OtmSchemaJsonThreatsElemAttributes map[string]interface{}
type OtmSchemaJsonThreatsElemRisk ¶
type OtmSchemaJsonThreatsElemRisk struct { // Impact corresponds to the JSON schema field "impact". Impact float64 `json:"impact" yaml:"impact" mapstructure:"impact"` // ImpactComment corresponds to the JSON schema field "impactComment". ImpactComment *string `json:"impactComment,omitempty" yaml:"impactComment,omitempty" mapstructure:"impactComment,omitempty"` // Likelihood corresponds to the JSON schema field "likelihood". Likelihood *float64 `json:"likelihood" yaml:"likelihood" mapstructure:"likelihood"` // LikelihoodComment corresponds to the JSON schema field "likelihoodComment". LikelihoodComment *string `json:"likelihoodComment,omitempty" yaml:"likelihoodComment,omitempty" mapstructure:"likelihoodComment,omitempty"` }
func (*OtmSchemaJsonThreatsElemRisk) UnmarshalJSON ¶
func (j *OtmSchemaJsonThreatsElemRisk) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonTrustZonesElem ¶
type OtmSchemaJsonTrustZonesElem struct { // Attributes corresponds to the JSON schema field "attributes". Attributes OtmSchemaJsonTrustZonesElemAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Description corresponds to the JSON schema field "description". Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Name corresponds to the JSON schema field "name". Name string `json:"name" yaml:"name" mapstructure:"name"` // Parent corresponds to the JSON schema field "parent". Parent *Parent `json:"parent,omitempty" yaml:"parent,omitempty" mapstructure:"parent,omitempty"` // Representations corresponds to the JSON schema field "representations". Representations []RepresentationElement `json:"representations,omitempty" yaml:"representations,omitempty" mapstructure:"representations,omitempty"` // Risk corresponds to the JSON schema field "risk". Risk OtmSchemaJsonTrustZonesElemRisk `json:"risk" yaml:"risk" mapstructure:"risk"` // Type corresponds to the JSON schema field "type". Type *string `json:"type,omitempty" yaml:"type,omitempty" mapstructure:"type,omitempty"` }
func (*OtmSchemaJsonTrustZonesElem) UnmarshalJSON ¶
func (j *OtmSchemaJsonTrustZonesElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type OtmSchemaJsonTrustZonesElemAttributes ¶
type OtmSchemaJsonTrustZonesElemAttributes map[string]interface{}
type OtmSchemaJsonTrustZonesElemRisk ¶
type OtmSchemaJsonTrustZonesElemRisk struct { // TrustRating corresponds to the JSON schema field "trustRating". TrustRating float64 `json:"trustRating" yaml:"trustRating" mapstructure:"trustRating"` }
func (*OtmSchemaJsonTrustZonesElemRisk) UnmarshalJSON ¶
func (j *OtmSchemaJsonTrustZonesElemRisk) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Parent ¶
type Parent struct { // Component corresponds to the JSON schema field "component". Component *string `json:"component,omitempty" yaml:"component,omitempty" mapstructure:"component,omitempty"` // TrustZone corresponds to the JSON schema field "trustZone". TrustZone *string `json:"trustZone,omitempty" yaml:"trustZone,omitempty" mapstructure:"trustZone,omitempty"` }
type Position ¶
type Position struct { // X corresponds to the JSON schema field "x". X float64 `json:"x" yaml:"x" mapstructure:"x"` // Y corresponds to the JSON schema field "y". Y float64 `json:"y" yaml:"y" mapstructure:"y"` }
func (*Position) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type RepresentationElement ¶
type RepresentationElement struct { // Attributes corresponds to the JSON schema field "attributes". Attributes RepresentationElementAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // CodeSnippet corresponds to the JSON schema field "codeSnippet". CodeSnippet *string `json:"codeSnippet,omitempty" yaml:"codeSnippet,omitempty" mapstructure:"codeSnippet,omitempty"` // File corresponds to the JSON schema field "file". File *string `json:"file,omitempty" yaml:"file,omitempty" mapstructure:"file,omitempty"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Line corresponds to the JSON schema field "line". Line *float64 `json:"line,omitempty" yaml:"line,omitempty" mapstructure:"line,omitempty"` // Name corresponds to the JSON schema field "name". Name *string `json:"name,omitempty" yaml:"name,omitempty" mapstructure:"name,omitempty"` // Position corresponds to the JSON schema field "position". Position *Position `json:"position,omitempty" yaml:"position,omitempty" mapstructure:"position,omitempty"` // Representation corresponds to the JSON schema field "representation". Representation string `json:"representation" yaml:"representation" mapstructure:"representation"` // Size corresponds to the JSON schema field "size". Size *Size `json:"size,omitempty" yaml:"size,omitempty" mapstructure:"size,omitempty"` }
func (*RepresentationElement) UnmarshalJSON ¶
func (j *RepresentationElement) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RepresentationElementAttributes ¶
type RepresentationElementAttributes map[string]interface{}
type Size ¶
type Size struct { // Height corresponds to the JSON schema field "height". Height float64 `json:"height" yaml:"height" mapstructure:"height"` // Width corresponds to the JSON schema field "width". Width float64 `json:"width" yaml:"width" mapstructure:"width"` }
func (*Size) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Threat ¶
type Threat struct { // Mitigations corresponds to the JSON schema field "mitigations". Mitigations []ThreatMitigationsElem `json:"mitigations,omitempty" yaml:"mitigations,omitempty" mapstructure:"mitigations,omitempty"` // State corresponds to the JSON schema field "state". State string `json:"state" yaml:"state" mapstructure:"state"` // Threat corresponds to the JSON schema field "threat". Threat string `json:"threat" yaml:"threat" mapstructure:"threat"` }
func (*Threat) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type ThreatMitigationsElem ¶
type ThreatMitigationsElem struct { // Mitigation corresponds to the JSON schema field "mitigation". Mitigation *string `json:"mitigation" yaml:"mitigation" mapstructure:"mitigation"` // State corresponds to the JSON schema field "state". State *string `json:"state" yaml:"state" mapstructure:"state"` }
func (*ThreatMitigationsElem) UnmarshalJSON ¶
func (j *ThreatMitigationsElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.