Vulnerability

Properties

NameTypeDescriptionNotes

Description

string

A description of the vulnerability as provided by the source.

Recommendations

Pointer to string

Recommendations for the vulnerability as provided by the source.

[optional]

DataSource

Fixable

bool

Indicates whether the vulnerability can be fixed by updating the affected package.

Affects

References

Pointer to []string

Published advisories of the vulnerability if provided.

[optional]

Severity

string

The CVSS vulnerability severity rating

Score

float32

The CVSS score of the vulnerability

Methods

NewVulnerability

func NewVulnerability(description string, dataSource VulnerabilityDataSource, fixable bool, affects []Purl, severity string, score float32, ) *Vulnerability

NewVulnerability instantiates a new Vulnerability object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewVulnerabilityWithDefaults

func NewVulnerabilityWithDefaults() *Vulnerability

NewVulnerabilityWithDefaults instantiates a new Vulnerability object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetDescription

func (o *Vulnerability) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Vulnerability) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *Vulnerability) SetDescription(v string)

SetDescription sets Description field to given value.

GetRecommendations

func (o *Vulnerability) GetRecommendations() string

GetRecommendations returns the Recommendations field if non-nil, zero value otherwise.

GetRecommendationsOk

func (o *Vulnerability) GetRecommendationsOk() (*string, bool)

GetRecommendationsOk returns a tuple with the Recommendations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRecommendations

func (o *Vulnerability) SetRecommendations(v string)

SetRecommendations sets Recommendations field to given value.

HasRecommendations

func (o *Vulnerability) HasRecommendations() bool

HasRecommendations returns a boolean if a field has been set.

GetDataSource

func (o *Vulnerability) GetDataSource() VulnerabilityDataSource

GetDataSource returns the DataSource field if non-nil, zero value otherwise.

GetDataSourceOk

func (o *Vulnerability) GetDataSourceOk() (*VulnerabilityDataSource, bool)

GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDataSource

func (o *Vulnerability) SetDataSource(v VulnerabilityDataSource)

SetDataSource sets DataSource field to given value.

GetFixable

func (o *Vulnerability) GetFixable() bool

GetFixable returns the Fixable field if non-nil, zero value otherwise.

GetFixableOk

func (o *Vulnerability) GetFixableOk() (*bool, bool)

GetFixableOk returns a tuple with the Fixable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFixable

func (o *Vulnerability) SetFixable(v bool)

SetFixable sets Fixable field to given value.

GetAffects

func (o *Vulnerability) GetAffects() []Purl

GetAffects returns the Affects field if non-nil, zero value otherwise.

GetAffectsOk

func (o *Vulnerability) GetAffectsOk() (*[]Purl, bool)

GetAffectsOk returns a tuple with the Affects field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAffects

func (o *Vulnerability) SetAffects(v []Purl)

SetAffects sets Affects field to given value.

GetReferences

func (o *Vulnerability) GetReferences() []string

GetReferences returns the References field if non-nil, zero value otherwise.

GetReferencesOk

func (o *Vulnerability) GetReferencesOk() (*[]string, bool)

GetReferencesOk returns a tuple with the References field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetReferences

func (o *Vulnerability) SetReferences(v []string)

SetReferences sets References field to given value.

HasReferences

func (o *Vulnerability) HasReferences() bool

HasReferences returns a boolean if a field has been set.

GetSeverity

func (o *Vulnerability) GetSeverity() string

GetSeverity returns the Severity field if non-nil, zero value otherwise.

GetSeverityOk

func (o *Vulnerability) GetSeverityOk() (*string, bool)

GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSeverity

func (o *Vulnerability) SetSeverity(v string)

SetSeverity sets Severity field to given value.

GetScore

func (o *Vulnerability) GetScore() float32

GetScore returns the Score field if non-nil, zero value otherwise.

GetScoreOk

func (o *Vulnerability) GetScoreOk() (*float32, bool)

GetScoreOk returns a tuple with the Score field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetScore

func (o *Vulnerability) SetScore(v float32)

SetScore sets Score field to given value.

Last updated