Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct {
ID string `xml:"id,attr" json:"id,omitempty"`
Version string `xml:"version,attr" json:"version,omitempty"`
Class string `xml:"class,attr" json:"class,omitempty"`
Metadata struct {
Title string `xml:"title" json:"title,omitempty"`
Affected struct {
Family string `xml:"family,attr" json:"family,omitempty"`
Platform []string `xml:"platform" json:"platform,omitempty"`
} `xml:"affected" json:"affected,omitzero"`
Reference []struct {
Source string `xml:"source,attr" json:"source,omitempty"`
RefID string `xml:"ref_id,attr" json:"ref_id,omitempty"`
RefURL string `xml:"ref_url,attr" json:"ref_url,omitempty"`
} `xml:"reference" json:"reference,omitempty"`
Description string `xml:"description" json:"description,omitempty"`
Advisory struct {
Severity string `xml:"severity" json:"severity,omitempty"`
Rights string `xml:"rights" json:"rights,omitempty"`
Issued struct {
Date string `xml:"date,attr" json:"date,omitempty"`
} `xml:"issued" json:"issued,omitzero"`
Cve []struct {
Text string `xml:",chardata" json:"text,omitempty"`
Href string `xml:"href,attr" json:"href,omitempty"`
CVSS2 string `xml:"cvss2,attr" json:"cvss2,omitempty"`
CVSS3 string `xml:"cvss3,attr" json:"cvss3,omitempty"`
Public string `xml:"public,attr" json:"public,omitempty"`
} `xml:"cve" json:"cve,omitempty"`
AffectedCpeList struct {
Cpe []string `xml:"cpe" json:"cpe,omitempty"`
} `xml:"affected_cpe_list" json:"affected_cpe_list,omitzero"`
} `xml:"advisory" json:"advisory,omitzero"`
} `xml:"metadata" json:"metadata,omitzero"`
Criteria Criteria `xml:"criteria" json:"criteria,omitzero"`
}
type Objects ¶
type Objects struct {
RpminfoObject []RpminfoObject `xml:"rpminfo_object" json:"rpminfo_object,omitempty"`
Textfilecontent54Object []Textfilecontent54Object `xml:"textfilecontent54_object" json:"textfilecontent_54_object,omitempty"`
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithBaseURL ¶
func WithConcurrency ¶
type RpminfoObject ¶
type RpminfoState ¶
type RpminfoState struct {
Xmlns string `xml:"xmlns,attr" json:"xmlns,omitempty"`
ID string `xml:"id,attr" json:"id,omitempty"`
AttrVersion string `xml:"version,attr" json:"attr_version,omitempty"`
SignatureKeyid *struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"signature_keyid" json:"signature_keyid,omitempty"`
Version *struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"version" json:"version,omitempty"`
Arch *struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"arch" json:"arch,omitempty"`
Evr *struct {
Text string `xml:",chardata" json:"text,omitempty"`
Datatype string `xml:"datatype,attr" json:"datatype,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"evr" json:"evr,omitempty"`
Release *struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"release" json:"release,omitempty"`
}
type RpminfoTest ¶
type RpminfoTest struct {
ID string `xml:"id,attr" json:"id,omitempty"`
Version string `xml:"version,attr" json:"version,omitempty"`
Comment string `xml:"comment,attr" json:"comment,omitempty"`
Check string `xml:"check,attr" json:"check,omitempty"`
Xmlns string `xml:"xmlns,attr" json:"xmlns,omitempty"`
Object struct {
ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"`
} `xml:"object" json:"object,omitzero"`
State struct {
StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"`
} `xml:"state" json:"state,omitzero"`
}
type States ¶
type States struct {
RpminfoState []RpminfoState `xml:"rpminfo_state" json:"rpminfo_state,omitempty"`
Textfilecontent54State []Textfilecontent54State `xml:"textfilecontent54_state" json:"textfilecontent_54_state,omitempty"`
}
type Tests ¶
type Tests struct {
RpminfoTest []RpminfoTest `xml:"rpminfo_test" json:"rpminfo_test,omitempty"`
Textfilecontent54Test []Textfilecontent54Test `xml:"textfilecontent54_test" json:"textfilecontent_54_test,omitempty"`
}
type Textfilecontent54Object ¶
type Textfilecontent54Object struct {
ID string `xml:"id,attr" json:"id,omitempty"`
Version string `xml:"version,attr" json:"version,omitempty"`
Filepath struct {
Text string `xml:",chardata" json:"text,omitempty"`
Datatype string `xml:"datatype,attr" json:"datatype,omitempty"`
} `xml:"filepath" json:"filepath,omitzero"`
Pattern struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"pattern" json:"pattern,omitzero"`
Instance struct {
Text string `xml:",chardata" json:"text,omitempty"`
Datatype string `xml:"datatype,attr" json:"datatype,omitempty"`
} `xml:"instance" json:"instance,omitzero"`
}
type Textfilecontent54State ¶
type Textfilecontent54State struct {
ID string `xml:"id,attr" json:"id,omitempty"`
Version string `xml:"version,attr" json:"version,omitempty"`
Text struct {
Text string `xml:",chardata" json:"text,omitempty"`
Operation string `xml:"operation,attr" json:"operation,omitempty"`
} `xml:"text" json:"text,omitzero"`
}
type Textfilecontent54Test ¶
type Textfilecontent54Test struct {
ID string `xml:"id,attr" json:"id,omitempty"`
Version string `xml:"version,attr" json:"version,omitempty"`
Comment string `xml:"comment,attr" json:"comment,omitempty"`
Check string `xml:"check,attr" json:"check,omitempty"`
Object struct {
ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"`
} `xml:"object" json:"object,omitzero"`
State struct {
StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"`
} `xml:"state" json:"state,omitzero"`
}
Click to show internal directories.
Click to hide internal directories.