models

package
v0.0.0-...-5f6b411 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ComponentClassifierAPPLICATION captures enum value "APPLICATION"
	ComponentClassifierAPPLICATION string = "APPLICATION"

	// ComponentClassifierFRAMEWORK captures enum value "FRAMEWORK"
	ComponentClassifierFRAMEWORK string = "FRAMEWORK"

	// ComponentClassifierLIBRARY captures enum value "LIBRARY"
	ComponentClassifierLIBRARY string = "LIBRARY"

	// ComponentClassifierCONTAINER captures enum value "CONTAINER"
	ComponentClassifierCONTAINER string = "CONTAINER"

	// ComponentClassifierOPERATINGSYSTEM captures enum value "OPERATING_SYSTEM"
	ComponentClassifierOPERATINGSYSTEM string = "OPERATING_SYSTEM"

	// ComponentClassifierDEVICE captures enum value "DEVICE"
	ComponentClassifierDEVICE string = "DEVICE"

	// ComponentClassifierFIRMWARE captures enum value "FIRMWARE"
	ComponentClassifierFIRMWARE string = "FIRMWARE"

	// ComponentClassifierFILE captures enum value "FILE"
	ComponentClassifierFILE string = "FILE"
)
View Source
const (

	// DataClassificationDirectionINBOUND captures enum value "INBOUND"
	DataClassificationDirectionINBOUND string = "INBOUND"

	// DataClassificationDirectionOUTBOUND captures enum value "OUTBOUND"
	DataClassificationDirectionOUTBOUND string = "OUTBOUND"

	// DataClassificationDirectionBIDIRECTIONAL captures enum value "BI_DIRECTIONAL"
	DataClassificationDirectionBIDIRECTIONAL string = "BI_DIRECTIONAL"

	// DataClassificationDirectionUNKNOWN captures enum value "UNKNOWN"
	DataClassificationDirectionUNKNOWN string = "UNKNOWN"
)
View Source
const (

	// ExternalReferenceTypeVcs captures enum value "vcs"
	ExternalReferenceTypeVcs string = "vcs"

	// ExternalReferenceTypeIssueDashTracker captures enum value "issue-tracker"
	ExternalReferenceTypeIssueDashTracker string = "issue-tracker"

	// ExternalReferenceTypeWebsite captures enum value "website"
	ExternalReferenceTypeWebsite string = "website"

	// ExternalReferenceTypeAdvisories captures enum value "advisories"
	ExternalReferenceTypeAdvisories string = "advisories"

	// ExternalReferenceTypeBom captures enum value "bom"
	ExternalReferenceTypeBom string = "bom"

	// ExternalReferenceTypeMailingDashList captures enum value "mailing-list"
	ExternalReferenceTypeMailingDashList string = "mailing-list"

	// ExternalReferenceTypeSocial captures enum value "social"
	ExternalReferenceTypeSocial string = "social"

	// ExternalReferenceTypeChat captures enum value "chat"
	ExternalReferenceTypeChat string = "chat"

	// ExternalReferenceTypeDocumentation captures enum value "documentation"
	ExternalReferenceTypeDocumentation string = "documentation"

	// ExternalReferenceTypeSupport captures enum value "support"
	ExternalReferenceTypeSupport string = "support"

	// ExternalReferenceTypeDistribution captures enum value "distribution"
	ExternalReferenceTypeDistribution string = "distribution"

	// ExternalReferenceTypeLicense captures enum value "license"
	ExternalReferenceTypeLicense string = "license"

	// ExternalReferenceTypeBuildDashMeta captures enum value "build-meta"
	ExternalReferenceTypeBuildDashMeta string = "build-meta"

	// ExternalReferenceTypeBuildDashSystem captures enum value "build-system"
	ExternalReferenceTypeBuildDashSystem string = "build-system"

	// ExternalReferenceTypeOther captures enum value "other"
	ExternalReferenceTypeOther string = "other"
)
View Source
const (

	// FindingAttributionAnalyzerIdentityINTERNALANALYZER captures enum value "INTERNAL_ANALYZER"
	FindingAttributionAnalyzerIdentityINTERNALANALYZER string = "INTERNAL_ANALYZER"

	// FindingAttributionAnalyzerIdentityOSSINDEXANALYZER captures enum value "OSSINDEX_ANALYZER"
	FindingAttributionAnalyzerIdentityOSSINDEXANALYZER string = "OSSINDEX_ANALYZER"

	// FindingAttributionAnalyzerIdentityNPMAUDITANALYZER captures enum value "NPM_AUDIT_ANALYZER"
	FindingAttributionAnalyzerIdentityNPMAUDITANALYZER string = "NPM_AUDIT_ANALYZER"

	// FindingAttributionAnalyzerIdentityVULNDBANALYZER captures enum value "VULNDB_ANALYZER"
	FindingAttributionAnalyzerIdentityVULNDBANALYZER string = "VULNDB_ANALYZER"

	// FindingAttributionAnalyzerIdentityNONE captures enum value "NONE"
	FindingAttributionAnalyzerIdentityNONE string = "NONE"
)
View Source
const (

	// ProjectClassifierAPPLICATION captures enum value "APPLICATION"
	ProjectClassifierAPPLICATION string = "APPLICATION"

	// ProjectClassifierFRAMEWORK captures enum value "FRAMEWORK"
	ProjectClassifierFRAMEWORK string = "FRAMEWORK"

	// ProjectClassifierLIBRARY captures enum value "LIBRARY"
	ProjectClassifierLIBRARY string = "LIBRARY"

	// ProjectClassifierCONTAINER captures enum value "CONTAINER"
	ProjectClassifierCONTAINER string = "CONTAINER"

	// ProjectClassifierOPERATINGSYSTEM captures enum value "OPERATING_SYSTEM"
	ProjectClassifierOPERATINGSYSTEM string = "OPERATING_SYSTEM"

	// ProjectClassifierDEVICE captures enum value "DEVICE"
	ProjectClassifierDEVICE string = "DEVICE"

	// ProjectClassifierFIRMWARE captures enum value "FIRMWARE"
	ProjectClassifierFIRMWARE string = "FIRMWARE"

	// ProjectClassifierFILE captures enum value "FILE"
	ProjectClassifierFILE string = "FILE"
)
View Source
const (

	// ProjectPropertyPropertyTypeBOOLEAN captures enum value "BOOLEAN"
	ProjectPropertyPropertyTypeBOOLEAN string = "BOOLEAN"

	// ProjectPropertyPropertyTypeINTEGER captures enum value "INTEGER"
	ProjectPropertyPropertyTypeINTEGER string = "INTEGER"

	// ProjectPropertyPropertyTypeNUMBER captures enum value "NUMBER"
	ProjectPropertyPropertyTypeNUMBER string = "NUMBER"

	// ProjectPropertyPropertyTypeSTRING captures enum value "STRING"
	ProjectPropertyPropertyTypeSTRING string = "STRING"

	// ProjectPropertyPropertyTypeENCRYPTEDSTRING captures enum value "ENCRYPTEDSTRING"
	ProjectPropertyPropertyTypeENCRYPTEDSTRING string = "ENCRYPTEDSTRING"

	// ProjectPropertyPropertyTypeTIMESTAMP captures enum value "TIMESTAMP"
	ProjectPropertyPropertyTypeTIMESTAMP string = "TIMESTAMP"

	// ProjectPropertyPropertyTypeURL captures enum value "URL"
	ProjectPropertyPropertyTypeURL string = "URL"

	// ProjectPropertyPropertyTypeUUID captures enum value "UUID"
	ProjectPropertyPropertyTypeUUID string = "UUID"
)
View Source
const (

	// RepositoryMetaComponentRepositoryTypeMAVEN captures enum value "MAVEN"
	RepositoryMetaComponentRepositoryTypeMAVEN string = "MAVEN"

	// RepositoryMetaComponentRepositoryTypeNPM captures enum value "NPM"
	RepositoryMetaComponentRepositoryTypeNPM string = "NPM"

	// RepositoryMetaComponentRepositoryTypeGEM captures enum value "GEM"
	RepositoryMetaComponentRepositoryTypeGEM string = "GEM"

	// RepositoryMetaComponentRepositoryTypePYPI captures enum value "PYPI"
	RepositoryMetaComponentRepositoryTypePYPI string = "PYPI"

	// RepositoryMetaComponentRepositoryTypeNUGET captures enum value "NUGET"
	RepositoryMetaComponentRepositoryTypeNUGET string = "NUGET"

	// RepositoryMetaComponentRepositoryTypeHEX captures enum value "HEX"
	RepositoryMetaComponentRepositoryTypeHEX string = "HEX"

	// RepositoryMetaComponentRepositoryTypeCOMPOSER captures enum value "COMPOSER"
	RepositoryMetaComponentRepositoryTypeCOMPOSER string = "COMPOSER"

	// RepositoryMetaComponentRepositoryTypeCARGO captures enum value "CARGO"
	RepositoryMetaComponentRepositoryTypeCARGO string = "CARGO"

	// RepositoryMetaComponentRepositoryTypeGOMODULES captures enum value "GO_MODULES"
	RepositoryMetaComponentRepositoryTypeGOMODULES string = "GO_MODULES"

	// RepositoryMetaComponentRepositoryTypeUNSUPPORTED captures enum value "UNSUPPORTED"
	RepositoryMetaComponentRepositoryTypeUNSUPPORTED string = "UNSUPPORTED"
)
View Source
const (

	// VulnerabilitySeverityCRITICAL captures enum value "CRITICAL"
	VulnerabilitySeverityCRITICAL string = "CRITICAL"

	// VulnerabilitySeverityHIGH captures enum value "HIGH"
	VulnerabilitySeverityHIGH string = "HIGH"

	// VulnerabilitySeverityMEDIUM captures enum value "MEDIUM"
	VulnerabilitySeverityMEDIUM string = "MEDIUM"

	// VulnerabilitySeverityLOW captures enum value "LOW"
	VulnerabilitySeverityLOW string = "LOW"

	// VulnerabilitySeverityINFO captures enum value "INFO"
	VulnerabilitySeverityINFO string = "INFO"

	// VulnerabilitySeverityUNASSIGNED captures enum value "UNASSIGNED"
	VulnerabilitySeverityUNASSIGNED string = "UNASSIGNED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BomSubmitRequest

type BomSubmitRequest struct {

	// auto create
	// Read Only: true
	AutoCreate *bool `json:"autoCreate,omitempty"`

	// bom
	// Read Only: true
	// Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
	Bom string `json:"bom,omitempty"`

	// project
	// Read Only: true
	// Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
	Project string `json:"project,omitempty"`

	// project name
	// Read Only: true
	ProjectName string `json:"projectName,omitempty"`

	// project version
	// Read Only: true
	ProjectVersion string `json:"projectVersion,omitempty"`
}

BomSubmitRequest bom submit request

swagger:model BomSubmitRequest

func (*BomSubmitRequest) ContextValidate

func (m *BomSubmitRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bom submit request based on the context it is used

func (*BomSubmitRequest) MarshalBinary

func (m *BomSubmitRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BomSubmitRequest) UnmarshalBinary

func (m *BomSubmitRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BomSubmitRequest) Validate

func (m *BomSubmitRequest) Validate(formats strfmt.Registry) error

Validate validates this bom submit request

type Component

type Component struct {

	// author
	// Max Length: 255
	// Min Length: 0
	Author *string `json:"author,omitempty"`

	// blake2b 256
	// Pattern: ^[0-9a-f]{64}$
	Blake2b256 string `json:"blake2b_256,omitempty"`

	// blake2b 384
	// Pattern: ^[0-9a-f]{96}$
	Blake2b384 string `json:"blake2b_384,omitempty"`

	// blake2b 512
	// Pattern: ^[0-9a-f]{128}$
	Blake2b512 string `json:"blake2b_512,omitempty"`

	// blake3
	// Pattern: ^[A-Fa-f0-9]*$
	Blake3 string `json:"blake3,omitempty"`

	// bom ref
	BomRef string `json:"bomRef,omitempty"`

	// children
	Children []*Component `json:"children"`

	// classifier
	// Enum: [APPLICATION FRAMEWORK LIBRARY CONTAINER OPERATING_SYSTEM DEVICE FIRMWARE FILE]
	Classifier string `json:"classifier,omitempty"`

	// copyright
	// Max Length: 1024
	// Min Length: 0
	Copyright *string `json:"copyright,omitempty"`

	// cpe
	// Max Length: 255
	// Min Length: 0
	// Pattern: (cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})|([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})
	Cpe *string `json:"cpe,omitempty"`

	// description
	// Max Length: 1024
	// Min Length: 0
	Description *string `json:"description,omitempty"`

	// direct dependencies
	DirectDependencies string `json:"directDependencies,omitempty"`

	// extension
	// Max Length: 255
	// Min Length: 0
	Extension *string `json:"extension,omitempty"`

	// filename
	// Max Length: 255
	// Min Length: 0
	Filename *string `json:"filename,omitempty"`

	// group
	// Max Length: 255
	// Min Length: 0
	Group *string `json:"group,omitempty"`

	// is internal
	IsInternal bool `json:"isInternal,omitempty"`

	// last inherited risk score
	LastInheritedRiskScore float64 `json:"lastInheritedRiskScore,omitempty"`

	// license
	// Max Length: 255
	// Min Length: 0
	License *string `json:"license,omitempty"`

	// md5
	// Pattern: ^[0-9a-f]{32}$
	Md5 string `json:"md5,omitempty"`

	// metrics
	Metrics *DependencyMetrics `json:"metrics,omitempty"`

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// notes
	Notes string `json:"notes,omitempty"`

	// parent
	Parent *Component `json:"parent,omitempty"`

	// project
	// Required: true
	Project *Project `json:"project"`

	// publisher
	// Max Length: 255
	// Min Length: 0
	Publisher *string `json:"publisher,omitempty"`

	// purl
	Purl string `json:"purl,omitempty"`

	// purl coordinates
	PurlCoordinates string `json:"purlCoordinates,omitempty"`

	// repository meta
	RepositoryMeta *RepositoryMetaComponent `json:"repositoryMeta,omitempty"`

	// resolved license
	ResolvedLicense *License `json:"resolvedLicense,omitempty"`

	// sha1
	// Pattern: ^[0-9a-f]{40}$
	Sha1 string `json:"sha1,omitempty"`

	// sha256
	// Pattern: ^[0-9a-f]{64}$
	Sha256 string `json:"sha256,omitempty"`

	// sha384
	// Pattern: ^[0-9a-f]{96}$
	Sha384 string `json:"sha384,omitempty"`

	// sha3 256
	// Pattern: ^[0-9a-f]{64}$
	Sha3256 string `json:"sha3_256,omitempty"`

	// sha3 384
	// Pattern: ^[0-9a-f]{96}$
	Sha3384 string `json:"sha3_384,omitempty"`

	// sha3 512
	// Pattern: ^[0-9a-f]{128}$
	Sha3512 string `json:"sha3_512,omitempty"`

	// sha512
	// Pattern: ^[0-9a-f]{128}$
	Sha512 string `json:"sha512,omitempty"`

	// swid tag Id
	// Max Length: 255
	// Min Length: 0
	SwidTagID *string `json:"swidTagId,omitempty"`

	// used by
	UsedBy int32 `json:"usedBy,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`

	// version
	// Max Length: 255
	// Min Length: 0
	Version *string `json:"version,omitempty"`

	// vulnerabilities
	Vulnerabilities []*Vulnerability `json:"vulnerabilities"`
}

Component component

swagger:model Component

func (*Component) ContextValidate

func (m *Component) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this component based on the context it is used

func (*Component) MarshalBinary

func (m *Component) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Component) UnmarshalBinary

func (m *Component) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Component) Validate

func (m *Component) Validate(formats strfmt.Registry) error

Validate validates this component

type Cwe

type Cwe struct {

	// cwe Id
	CweID int32 `json:"cweId,omitempty"`

	// name
	// Required: true
	// Max Length: 255
	// Min Length: 0
	Name *string `json:"name"`
}

Cwe cwe

swagger:model Cwe

func (*Cwe) ContextValidate

func (m *Cwe) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cwe based on context it is used

func (*Cwe) MarshalBinary

func (m *Cwe) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cwe) UnmarshalBinary

func (m *Cwe) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cwe) Validate

func (m *Cwe) Validate(formats strfmt.Registry) error

Validate validates this cwe

type DataClassification

type DataClassification struct {

	// direction
	// Enum: [INBOUND OUTBOUND BI_DIRECTIONAL UNKNOWN]
	Direction string `json:"direction,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

DataClassification data classification

swagger:model DataClassification

func (*DataClassification) ContextValidate

func (m *DataClassification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this data classification based on context it is used

func (*DataClassification) MarshalBinary

func (m *DataClassification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataClassification) UnmarshalBinary

func (m *DataClassification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataClassification) Validate

func (m *DataClassification) Validate(formats strfmt.Registry) error

Validate validates this data classification

type DependencyMetrics

type DependencyMetrics struct {

	// component
	// Required: true
	Component *Component `json:"component"`

	// critical
	Critical int32 `json:"critical,omitempty"`

	// findings audited
	FindingsAudited int32 `json:"findingsAudited,omitempty"`

	// findings total
	FindingsTotal int32 `json:"findingsTotal,omitempty"`

	// findings unaudited
	FindingsUnaudited int32 `json:"findingsUnaudited,omitempty"`

	// first occurrence
	// Required: true
	// Format: date-time
	FirstOccurrence *strfmt.DateTime `json:"firstOccurrence"`

	// high
	High int32 `json:"high,omitempty"`

	// inherited risk score
	InheritedRiskScore float64 `json:"inheritedRiskScore,omitempty"`

	// last occurrence
	// Required: true
	// Format: date-time
	LastOccurrence *strfmt.DateTime `json:"lastOccurrence"`

	// low
	Low int32 `json:"low,omitempty"`

	// medium
	Medium int32 `json:"medium,omitempty"`

	// policy violations audited
	PolicyViolationsAudited int32 `json:"policyViolationsAudited,omitempty"`

	// policy violations fail
	PolicyViolationsFail int32 `json:"policyViolationsFail,omitempty"`

	// policy violations info
	PolicyViolationsInfo int32 `json:"policyViolationsInfo,omitempty"`

	// policy violations license audited
	PolicyViolationsLicenseAudited int32 `json:"policyViolationsLicenseAudited,omitempty"`

	// policy violations license total
	PolicyViolationsLicenseTotal int32 `json:"policyViolationsLicenseTotal,omitempty"`

	// policy violations license unaudited
	PolicyViolationsLicenseUnaudited int32 `json:"policyViolationsLicenseUnaudited,omitempty"`

	// policy violations operational audited
	PolicyViolationsOperationalAudited int32 `json:"policyViolationsOperationalAudited,omitempty"`

	// policy violations operational total
	PolicyViolationsOperationalTotal int32 `json:"policyViolationsOperationalTotal,omitempty"`

	// policy violations operational unaudited
	PolicyViolationsOperationalUnaudited int32 `json:"policyViolationsOperationalUnaudited,omitempty"`

	// policy violations security audited
	PolicyViolationsSecurityAudited int32 `json:"policyViolationsSecurityAudited,omitempty"`

	// policy violations security total
	PolicyViolationsSecurityTotal int32 `json:"policyViolationsSecurityTotal,omitempty"`

	// policy violations security unaudited
	PolicyViolationsSecurityUnaudited int32 `json:"policyViolationsSecurityUnaudited,omitempty"`

	// policy violations total
	PolicyViolationsTotal int32 `json:"policyViolationsTotal,omitempty"`

	// policy violations unaudited
	PolicyViolationsUnaudited int32 `json:"policyViolationsUnaudited,omitempty"`

	// policy violations warn
	PolicyViolationsWarn int32 `json:"policyViolationsWarn,omitempty"`

	// project
	// Required: true
	Project *Project `json:"project"`

	// suppressed
	Suppressed int32 `json:"suppressed,omitempty"`

	// unassigned
	Unassigned int32 `json:"unassigned,omitempty"`

	// vulnerabilities
	Vulnerabilities int64 `json:"vulnerabilities,omitempty"`
}

DependencyMetrics dependency metrics

swagger:model DependencyMetrics

func (*DependencyMetrics) ContextValidate

func (m *DependencyMetrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dependency metrics based on the context it is used

func (*DependencyMetrics) MarshalBinary

func (m *DependencyMetrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DependencyMetrics) UnmarshalBinary

func (m *DependencyMetrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DependencyMetrics) Validate

func (m *DependencyMetrics) Validate(formats strfmt.Registry) error

Validate validates this dependency metrics

type ExternalReference

type ExternalReference struct {

	// comment
	Comment string `json:"comment,omitempty"`

	// type
	// Enum: [vcs issue-tracker website advisories bom mailing-list social chat documentation support distribution license build-meta build-system other]
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

ExternalReference external reference

swagger:model ExternalReference

func (*ExternalReference) ContextValidate

func (m *ExternalReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this external reference based on context it is used

func (*ExternalReference) MarshalBinary

func (m *ExternalReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExternalReference) UnmarshalBinary

func (m *ExternalReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExternalReference) Validate

func (m *ExternalReference) Validate(formats strfmt.Registry) error

Validate validates this external reference

type Finding

type Finding struct {

	// analysis
	Analysis map[string]interface{} `json:"analysis,omitempty"`

	// attribution
	Attribution map[string]interface{} `json:"attribution,omitempty"`

	// component
	Component map[string]interface{} `json:"component,omitempty"`

	// matrix
	Matrix string `json:"matrix,omitempty"`

	// vulnerability
	Vulnerability map[string]interface{} `json:"vulnerability,omitempty"`
}

Finding finding

swagger:model Finding

func (*Finding) ContextValidate

func (m *Finding) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this finding based on context it is used

func (*Finding) MarshalBinary

func (m *Finding) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Finding) UnmarshalBinary

func (m *Finding) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Finding) Validate

func (m *Finding) Validate(formats strfmt.Registry) error

Validate validates this finding

type FindingAttribution

type FindingAttribution struct {

	// alternate identifier
	AlternateIdentifier string `json:"alternateIdentifier,omitempty"`

	// analyzer identity
	// Enum: [INTERNAL_ANALYZER OSSINDEX_ANALYZER NPM_AUDIT_ANALYZER VULNDB_ANALYZER NONE]
	AnalyzerIdentity string `json:"analyzerIdentity,omitempty"`

	// attributed on
	// Required: true
	// Format: date-time
	AttributedOn *strfmt.DateTime `json:"attributedOn"`

	// component
	// Required: true
	Component *Component `json:"component"`

	// reference Url
	ReferenceURL string `json:"referenceUrl,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`

	// vulnerability
	// Required: true
	Vulnerability *Vulnerability `json:"vulnerability"`
}

FindingAttribution finding attribution

swagger:model FindingAttribution

func (*FindingAttribution) ContextValidate

func (m *FindingAttribution) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this finding attribution based on the context it is used

func (*FindingAttribution) MarshalBinary

func (m *FindingAttribution) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FindingAttribution) UnmarshalBinary

func (m *FindingAttribution) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FindingAttribution) Validate

func (m *FindingAttribution) Validate(formats strfmt.Registry) error

Validate validates this finding attribution

type License

type License struct {

	// is deprecated license Id
	IsDeprecatedLicenseID bool `json:"isDeprecatedLicenseId,omitempty"`

	// is fsf libre
	IsFsfLibre bool `json:"isFsfLibre,omitempty"`

	// is osi approved
	IsOsiApproved bool `json:"isOsiApproved,omitempty"`

	// license comments
	LicenseComments string `json:"licenseComments,omitempty"`

	// license groups
	LicenseGroups []*LicenseGroup `json:"licenseGroups"`

	// license Id
	// Max Length: 255
	// Min Length: 1
	// Pattern: ^[a-zA-Z0-9_.\-+]*$
	LicenseID string `json:"licenseId,omitempty"`

	// license text
	LicenseText string `json:"licenseText,omitempty"`

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// see also
	SeeAlso []string `json:"seeAlso"`

	// standard license header
	StandardLicenseHeader string `json:"standardLicenseHeader,omitempty"`

	// standard license template
	StandardLicenseTemplate string `json:"standardLicenseTemplate,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`
}

License license

swagger:model License

func (*License) ContextValidate

func (m *License) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this license based on the context it is used

func (*License) MarshalBinary

func (m *License) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*License) UnmarshalBinary

func (m *License) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*License) Validate

func (m *License) Validate(formats strfmt.Registry) error

Validate validates this license

type LicenseGroup

type LicenseGroup struct {

	// licenses
	Licenses []*License `json:"licenses"`

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// risk weight
	RiskWeight int32 `json:"riskWeight,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`
}

LicenseGroup license group

swagger:model LicenseGroup

func (*LicenseGroup) ContextValidate

func (m *LicenseGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this license group based on the context it is used

func (*LicenseGroup) MarshalBinary

func (m *LicenseGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LicenseGroup) UnmarshalBinary

func (m *LicenseGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LicenseGroup) Validate

func (m *LicenseGroup) Validate(formats strfmt.Registry) error

Validate validates this license group

type OrganizationalContact

type OrganizationalContact struct {

	// email
	Email string `json:"email,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`
}

OrganizationalContact organizational contact

swagger:model OrganizationalContact

func (*OrganizationalContact) ContextValidate

func (m *OrganizationalContact) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this organizational contact based on context it is used

func (*OrganizationalContact) MarshalBinary

func (m *OrganizationalContact) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrganizationalContact) UnmarshalBinary

func (m *OrganizationalContact) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrganizationalContact) Validate

func (m *OrganizationalContact) Validate(formats strfmt.Registry) error

Validate validates this organizational contact

type OrganizationalEntity

type OrganizationalEntity struct {

	// contacts
	Contacts []*OrganizationalContact `json:"contacts"`

	// name
	Name string `json:"name,omitempty"`

	// urls
	Urls []string `json:"urls"`
}

OrganizationalEntity organizational entity

swagger:model OrganizationalEntity

func (*OrganizationalEntity) ContextValidate

func (m *OrganizationalEntity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this organizational entity based on the context it is used

func (*OrganizationalEntity) MarshalBinary

func (m *OrganizationalEntity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrganizationalEntity) UnmarshalBinary

func (m *OrganizationalEntity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrganizationalEntity) Validate

func (m *OrganizationalEntity) Validate(formats strfmt.Registry) error

Validate validates this organizational entity

type PackageURL

type PackageURL struct {

	// coordinates
	Coordinates string `json:"coordinates,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// qualifiers
	Qualifiers map[string]string `json:"qualifiers,omitempty"`

	// scheme
	Scheme string `json:"scheme,omitempty"`

	// subpath
	Subpath string `json:"subpath,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

PackageURL package URL

swagger:model PackageURL

func (*PackageURL) ContextValidate

func (m *PackageURL) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package URL based on context it is used

func (*PackageURL) MarshalBinary

func (m *PackageURL) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageURL) UnmarshalBinary

func (m *PackageURL) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageURL) Validate

func (m *PackageURL) Validate(formats strfmt.Registry) error

Validate validates this package URL

type Project

type Project struct {

	// active
	Active bool `json:"active,omitempty"`

	// author
	// Max Length: 255
	// Min Length: 0
	Author *string `json:"author,omitempty"`

	// children
	Children []*Project `json:"children"`

	// classifier
	// Enum: [APPLICATION FRAMEWORK LIBRARY CONTAINER OPERATING_SYSTEM DEVICE FIRMWARE FILE]
	Classifier string `json:"classifier,omitempty"`

	// cpe
	// Max Length: 255
	// Min Length: 0
	// Pattern: (cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})|([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})
	Cpe *string `json:"cpe,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// direct dependencies
	DirectDependencies string `json:"directDependencies,omitempty"`

	// group
	// Max Length: 255
	// Min Length: 0
	Group *string `json:"group,omitempty"`

	// last bom import
	LastBomImport float64 `json:"lastBomImport,omitempty"`

	// last bom import format
	LastBomImportFormat string `json:"lastBomImportFormat,omitempty"`

	// last inherited risk score
	LastInheritedRiskScore float64 `json:"lastInheritedRiskScore,omitempty"`

	// metrics
	Metrics *ProjectMetrics `json:"metrics,omitempty"`

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// parent
	Parent *Project `json:"parent,omitempty"`

	// properties
	Properties []*ProjectProperty `json:"properties"`

	// publisher
	// Max Length: 255
	// Min Length: 0
	Publisher *string `json:"publisher,omitempty"`

	// purl
	Purl *PackageURL `json:"purl,omitempty"`

	// swid tag Id
	// Max Length: 255
	// Min Length: 0
	SwidTagID *string `json:"swidTagId,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`

	// version
	Version string `json:"version,omitempty"`
}

Project project

swagger:model Project

func (*Project) ContextValidate

func (m *Project) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project based on the context it is used

func (*Project) MarshalBinary

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type ProjectMetrics

type ProjectMetrics struct {

	// components
	Components int32 `json:"components,omitempty"`

	// critical
	Critical int32 `json:"critical,omitempty"`

	// findings audited
	FindingsAudited int32 `json:"findingsAudited,omitempty"`

	// findings total
	FindingsTotal int32 `json:"findingsTotal,omitempty"`

	// findings unaudited
	FindingsUnaudited int32 `json:"findingsUnaudited,omitempty"`

	// first occurrence
	// Required: true
	// Format: date-time
	FirstOccurrence *strfmt.DateTime `json:"firstOccurrence"`

	// high
	High int32 `json:"high,omitempty"`

	// inherited risk score
	InheritedRiskScore float64 `json:"inheritedRiskScore,omitempty"`

	// last occurrence
	// Required: true
	// Format: date-time
	LastOccurrence *strfmt.DateTime `json:"lastOccurrence"`

	// low
	Low int32 `json:"low,omitempty"`

	// medium
	Medium int32 `json:"medium,omitempty"`

	// policy violations audited
	PolicyViolationsAudited int32 `json:"policyViolationsAudited,omitempty"`

	// policy violations fail
	PolicyViolationsFail int32 `json:"policyViolationsFail,omitempty"`

	// policy violations info
	PolicyViolationsInfo int32 `json:"policyViolationsInfo,omitempty"`

	// policy violations license audited
	PolicyViolationsLicenseAudited int32 `json:"policyViolationsLicenseAudited,omitempty"`

	// policy violations license total
	PolicyViolationsLicenseTotal int32 `json:"policyViolationsLicenseTotal,omitempty"`

	// policy violations license unaudited
	PolicyViolationsLicenseUnaudited int32 `json:"policyViolationsLicenseUnaudited,omitempty"`

	// policy violations operational audited
	PolicyViolationsOperationalAudited int32 `json:"policyViolationsOperationalAudited,omitempty"`

	// policy violations operational total
	PolicyViolationsOperationalTotal int32 `json:"policyViolationsOperationalTotal,omitempty"`

	// policy violations operational unaudited
	PolicyViolationsOperationalUnaudited int32 `json:"policyViolationsOperationalUnaudited,omitempty"`

	// policy violations security audited
	PolicyViolationsSecurityAudited int32 `json:"policyViolationsSecurityAudited,omitempty"`

	// policy violations security total
	PolicyViolationsSecurityTotal int32 `json:"policyViolationsSecurityTotal,omitempty"`

	// policy violations security unaudited
	PolicyViolationsSecurityUnaudited int32 `json:"policyViolationsSecurityUnaudited,omitempty"`

	// policy violations total
	PolicyViolationsTotal int32 `json:"policyViolationsTotal,omitempty"`

	// policy violations unaudited
	PolicyViolationsUnaudited int32 `json:"policyViolationsUnaudited,omitempty"`

	// policy violations warn
	PolicyViolationsWarn int32 `json:"policyViolationsWarn,omitempty"`

	// project
	// Required: true
	Project *Project `json:"project"`

	// suppressed
	Suppressed int32 `json:"suppressed,omitempty"`

	// unassigned
	Unassigned int32 `json:"unassigned,omitempty"`

	// vulnerabilities
	Vulnerabilities int64 `json:"vulnerabilities,omitempty"`

	// vulnerable components
	VulnerableComponents int32 `json:"vulnerableComponents,omitempty"`
}

ProjectMetrics project metrics

swagger:model ProjectMetrics

func (*ProjectMetrics) ContextValidate

func (m *ProjectMetrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project metrics based on the context it is used

func (*ProjectMetrics) MarshalBinary

func (m *ProjectMetrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectMetrics) UnmarshalBinary

func (m *ProjectMetrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectMetrics) Validate

func (m *ProjectMetrics) Validate(formats strfmt.Registry) error

Validate validates this project metrics

type ProjectProperty

type ProjectProperty struct {

	// description
	// Max Length: 255
	// Min Length: 0
	Description *string `json:"description,omitempty"`

	// group name
	// Max Length: 255
	// Min Length: 1
	GroupName string `json:"groupName,omitempty"`

	// project
	Project *Project `json:"project,omitempty"`

	// property name
	// Max Length: 255
	// Min Length: 1
	PropertyName string `json:"propertyName,omitempty"`

	// property type
	// Required: true
	// Enum: [BOOLEAN INTEGER NUMBER STRING ENCRYPTEDSTRING TIMESTAMP URL UUID]
	PropertyType *string `json:"propertyType"`

	// property value
	// Max Length: 1024
	// Min Length: 0
	PropertyValue *string `json:"propertyValue,omitempty"`
}

ProjectProperty project property

swagger:model ProjectProperty

func (*ProjectProperty) ContextValidate

func (m *ProjectProperty) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project property based on the context it is used

func (*ProjectProperty) MarshalBinary

func (m *ProjectProperty) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectProperty) UnmarshalBinary

func (m *ProjectProperty) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectProperty) Validate

func (m *ProjectProperty) Validate(formats strfmt.Registry) error

Validate validates this project property

type RepositoryMetaComponent

type RepositoryMetaComponent struct {

	// last check
	// Required: true
	// Format: date-time
	LastCheck *strfmt.DateTime `json:"lastCheck"`

	// latest version
	// Required: true
	LatestVersion *string `json:"latestVersion"`

	// name
	// Required: true
	Name *string `json:"name"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// published
	Published float64 `json:"published,omitempty"`

	// repository type
	// Required: true
	// Enum: [MAVEN NPM GEM PYPI NUGET HEX COMPOSER CARGO GO_MODULES UNSUPPORTED]
	RepositoryType *string `json:"repositoryType"`
}

RepositoryMetaComponent repository meta component

swagger:model RepositoryMetaComponent

func (*RepositoryMetaComponent) ContextValidate

func (m *RepositoryMetaComponent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this repository meta component based on context it is used

func (*RepositoryMetaComponent) MarshalBinary

func (m *RepositoryMetaComponent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepositoryMetaComponent) UnmarshalBinary

func (m *RepositoryMetaComponent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepositoryMetaComponent) Validate

func (m *RepositoryMetaComponent) Validate(formats strfmt.Registry) error

Validate validates this repository meta component

type ServiceComponent

type ServiceComponent struct {

	// authenticated
	Authenticated bool `json:"authenticated,omitempty"`

	// bom ref
	BomRef string `json:"bomRef,omitempty"`

	// children
	Children []*ServiceComponent `json:"children"`

	// crosses trust boundary
	CrossesTrustBoundary bool `json:"crossesTrustBoundary,omitempty"`

	// data
	Data []*DataClassification `json:"data"`

	// description
	// Max Length: 1024
	// Min Length: 0
	Description *string `json:"description,omitempty"`

	// endpoints
	Endpoints []string `json:"endpoints"`

	// external references
	ExternalReferences []*ExternalReference `json:"externalReferences"`

	// group
	// Max Length: 255
	// Min Length: 0
	Group *string `json:"group,omitempty"`

	// last inherited risk score
	LastInheritedRiskScore float64 `json:"lastInheritedRiskScore,omitempty"`

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// notes
	Notes string `json:"notes,omitempty"`

	// parent
	Parent *ServiceComponent `json:"parent,omitempty"`

	// project
	// Required: true
	Project *Project `json:"project"`

	// provider
	Provider *OrganizationalEntity `json:"provider,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`

	// version
	// Max Length: 255
	// Min Length: 0
	Version *string `json:"version,omitempty"`

	// vulnerabilities
	Vulnerabilities []*Vulnerability `json:"vulnerabilities"`
}

ServiceComponent service component

swagger:model ServiceComponent

func (*ServiceComponent) ContextValidate

func (m *ServiceComponent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this service component based on the context it is used

func (*ServiceComponent) MarshalBinary

func (m *ServiceComponent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceComponent) UnmarshalBinary

func (m *ServiceComponent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceComponent) Validate

func (m *ServiceComponent) Validate(formats strfmt.Registry) error

Validate validates this service component

type Tag

type Tag struct {

	// name
	// Max Length: 255
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// projects
	Projects []*Project `json:"projects"`
}

Tag tag

swagger:model Tag

func (*Tag) ContextValidate

func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tag based on the context it is used

func (*Tag) MarshalBinary

func (m *Tag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

func (m *Tag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tag) Validate

func (m *Tag) Validate(formats strfmt.Registry) error

Validate validates this tag

type Vulnerability

type Vulnerability struct {

	// affected project count
	AffectedProjectCount int32 `json:"affectedProjectCount,omitempty"`

	// components
	Components []*Component `json:"components"`

	// created
	Created float64 `json:"created,omitempty"`

	// credits
	Credits string `json:"credits,omitempty"`

	// cvss v2 base score
	CvssV2BaseScore float64 `json:"cvssV2BaseScore,omitempty"`

	// cvss v2 exploitability sub score
	CvssV2ExploitabilitySubScore float64 `json:"cvssV2ExploitabilitySubScore,omitempty"`

	// cvss v2 impact sub score
	CvssV2ImpactSubScore float64 `json:"cvssV2ImpactSubScore,omitempty"`

	// cvss v2 vector
	CvssV2Vector string `json:"cvssV2Vector,omitempty"`

	// cvss v3 base score
	CvssV3BaseScore float64 `json:"cvssV3BaseScore,omitempty"`

	// cvss v3 exploitability sub score
	CvssV3ExploitabilitySubScore float64 `json:"cvssV3ExploitabilitySubScore,omitempty"`

	// cvss v3 impact sub score
	CvssV3ImpactSubScore float64 `json:"cvssV3ImpactSubScore,omitempty"`

	// cvss v3 vector
	CvssV3Vector string `json:"cvssV3Vector,omitempty"`

	// cwe
	Cwe *Cwe `json:"cwe,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// finding attribution
	FindingAttribution *FindingAttribution `json:"findingAttribution,omitempty"`

	// friendly vuln Id
	// Max Length: 255
	// Min Length: 1
	FriendlyVulnID string `json:"friendlyVulnId,omitempty"`

	// patched versions
	PatchedVersions string `json:"patchedVersions,omitempty"`

	// published
	// Format: date-time
	Published strfmt.DateTime `json:"published,omitempty"`

	// recommendation
	Recommendation string `json:"recommendation,omitempty"`

	// references
	References string `json:"references,omitempty"`

	// service components
	ServiceComponents []*ServiceComponent `json:"serviceComponents"`

	// severity
	// Enum: [CRITICAL HIGH MEDIUM LOW INFO UNASSIGNED]
	Severity string `json:"severity,omitempty"`

	// source
	// Max Length: 255
	// Min Length: 1
	Source string `json:"source,omitempty"`

	// sub title
	SubTitle string `json:"subTitle,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// uuid
	// Required: true
	// Format: uuid
	UUID *strfmt.UUID `json:"uuid"`

	// vuln Id
	// Max Length: 255
	// Min Length: 1
	VulnID string `json:"vulnId,omitempty"`

	// vulnerable software
	VulnerableSoftware []*VulnerableSoftware `json:"vulnerableSoftware"`

	// vulnerable versions
	VulnerableVersions string `json:"vulnerableVersions,omitempty"`
}

Vulnerability vulnerability

swagger:model Vulnerability

func (*Vulnerability) ContextValidate

func (m *Vulnerability) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this vulnerability based on the context it is used

func (*Vulnerability) MarshalBinary

func (m *Vulnerability) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Vulnerability) UnmarshalBinary

func (m *Vulnerability) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Vulnerability) Validate

func (m *Vulnerability) Validate(formats strfmt.Registry) error

Validate validates this vulnerability

type VulnerableSoftware

type VulnerableSoftware struct {

	// cpe22
	Cpe22 string `json:"cpe22,omitempty"`

	// cpe23
	Cpe23 string `json:"cpe23,omitempty"`

	// edition
	Edition string `json:"edition,omitempty"`

	// is vulnerable
	IsVulnerable bool `json:"isVulnerable,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// other
	Other string `json:"other,omitempty"`

	// part
	Part string `json:"part,omitempty"`

	// product
	Product string `json:"product,omitempty"`

	// purl
	Purl string `json:"purl,omitempty"`

	// purl name
	PurlName string `json:"purlName,omitempty"`

	// purl namespace
	PurlNamespace string `json:"purlNamespace,omitempty"`

	// purl qualifiers
	PurlQualifiers string `json:"purlQualifiers,omitempty"`

	// purl subpath
	PurlSubpath string `json:"purlSubpath,omitempty"`

	// purl type
	PurlType string `json:"purlType,omitempty"`

	// purl version
	PurlVersion string `json:"purlVersion,omitempty"`

	// sw edition
	SwEdition string `json:"swEdition,omitempty"`

	// target hw
	TargetHw string `json:"targetHw,omitempty"`

	// target sw
	TargetSw string `json:"targetSw,omitempty"`

	// update
	Update string `json:"update,omitempty"`

	// uuid
	// Format: uuid
	UUID strfmt.UUID `json:"uuid,omitempty"`

	// vendor
	Vendor string `json:"vendor,omitempty"`

	// version
	Version string `json:"version,omitempty"`

	// version end excluding
	VersionEndExcluding string `json:"versionEndExcluding,omitempty"`

	// version end including
	VersionEndIncluding string `json:"versionEndIncluding,omitempty"`

	// version start excluding
	VersionStartExcluding string `json:"versionStartExcluding,omitempty"`

	// version start including
	VersionStartIncluding string `json:"versionStartIncluding,omitempty"`

	// vulnerabilities
	Vulnerabilities []*Vulnerability `json:"vulnerabilities"`
}

VulnerableSoftware vulnerable software

swagger:model VulnerableSoftware

func (*VulnerableSoftware) ContextValidate

func (m *VulnerableSoftware) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this vulnerable software based on the context it is used

func (*VulnerableSoftware) MarshalBinary

func (m *VulnerableSoftware) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VulnerableSoftware) UnmarshalBinary

func (m *VulnerableSoftware) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VulnerableSoftware) Validate

func (m *VulnerableSoftware) Validate(formats strfmt.Registry) error

Validate validates this vulnerable software

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL