Documentation ¶
Index ¶
- func Fetch(opts ...Option) error
- type Criteria
- type Criterion
- type Definition
- type LocalVariable
- type Objects
- type Option
- type RpminfoObject
- type RpminfoState
- type RpminfoTest
- type RpmverifyfileObject
- type RpmverifyfileState
- type RpmverifyfileTest
- type States
- type Tests
- type Textfilecontent54Object
- type Textfilecontent54State
- type Textfilecontent54Test
- type UnameObject
- type UnameState
- type UnameTest
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct { Class string `xml:"class,attr" json:"class,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,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,omitempty"` Reference []struct { RefID string `xml:"ref_id,attr" json:"ref_id,omitempty"` RefURL string `xml:"ref_url,attr" json:"ref_url,omitempty"` Source string `xml:"source,attr" json:"source,omitempty"` } `xml:"reference" json:"reference,omitempty"` Description string `xml:"description" json:"description,omitempty"` Advisory struct { From string `xml:"from,attr" json:"from,omitempty"` 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,omitempty"` Updated struct { Date string `xml:"date,attr" json:"date,omitempty"` } `xml:"updated" json:"updated,omitempty"` Cve []struct { Text string `xml:",chardata" json:"text,omitempty"` Href string `xml:"href,attr" json:"href,omitempty"` Impact string `xml:"impact,attr" json:"impact,omitempty"` Public string `xml:"public,attr" json:"public,omitempty"` Cwe string `xml:"cwe,attr" json:"cwe,omitempty"` Cvss2 string `xml:"cvss2,attr" json:"cvss_2,omitempty"` Cvss3 string `xml:"cvss3,attr" json:"cvss_3,omitempty"` } `xml:"cve" json:"cve,omitempty"` Bugzilla []struct { Text string `xml:",chardata" json:"text,omitempty"` Href string `xml:"href,attr" json:"href,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` } `xml:"bugzilla" json:"bugzilla,omitempty"` AffectedCpeList struct { Cpe []string `xml:"cpe" json:"cpe,omitempty"` } `xml:"affected_cpe_list" json:"affected_cpe_list,omitempty"` } `xml:"advisory" json:"advisory,omitempty"` } `xml:"metadata" json:"metadata,omitempty"` Criteria Criteria `xml:"criteria" json:"criteria,omitempty"` }
type LocalVariable ¶
type LocalVariable struct { Comment string `xml:"comment,attr" json:"comment,omitempty"` Datatype string `xml:"datatype,attr" json:"datatype,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Arithmetic struct { ArithmeticOperation string `xml:"arithmetic_operation,attr" json:"arithmetic_operation,omitempty"` LiteralComponent struct { Text string `xml:",chardata" json:"text,omitempty"` Datatype string `xml:"datatype,attr" json:"datatype,omitempty"` } `xml:"literal_component" json:"literal_component,omitempty"` ObjectComponent struct { ItemField string `xml:"item_field,attr" json:"item_field,omitempty"` ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"` } `xml:"object_component" json:"object_component,omitempty"` } `xml:"arithmetic" json:"arithmetic,omitempty"` }
type Objects ¶
type Objects struct { RpminfoObject []RpminfoObject `xml:"rpminfo_object" json:"rpminfo_object,omitempty"` UnameObject UnameObject `xml:"uname_object" json:"uname_object,omitempty"` Textfilecontent54Object []Textfilecontent54Object `xml:"textfilecontent54_object" json:"textfilecontent_54_object,omitempty"` RpmverifyfileObject RpmverifyfileObject `xml:"rpmverifyfile_object" json:"rpmverifyfile_object,omitempty"` }
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithDataURL ¶
type RpminfoObject ¶
type RpminfoState ¶
type RpminfoState struct { ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Arch *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:"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"` SignatureKeyid *struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"signature_keyid" json:"signature_keyid,omitempty"` }
type RpminfoTest ¶
type RpminfoTest struct { Check string `xml:"check,attr" json:"check,omitempty"` Comment string `xml:"comment,attr" json:"comment,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` CheckExistence string `xml:"check_existence,attr" json:"check_existence,omitempty"` Object struct { ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"` } `xml:"object" json:"object,omitempty"` State struct { StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"` } `xml:"state" json:"state,omitempty"` }
type RpmverifyfileObject ¶
type RpmverifyfileObject struct { ID string `xml:"id,attr" json:"id,omitempty"` AttrVersion string `xml:"version,attr" json:"attr_version,omitempty"` Behaviors struct { Text string `xml:",chardata" json:"text,omitempty"` Noconfigfiles string `xml:"noconfigfiles,attr" json:"noconfigfiles,omitempty"` Noghostfiles string `xml:"noghostfiles,attr" json:"noghostfiles,omitempty"` Nogroup string `xml:"nogroup,attr" json:"nogroup,omitempty"` Nolinkto string `xml:"nolinkto,attr" json:"nolinkto,omitempty"` Nomd5 string `xml:"nomd5,attr" json:"nomd_5,omitempty"` Nomode string `xml:"nomode,attr" json:"nomode,omitempty"` Nomtime string `xml:"nomtime,attr" json:"nomtime,omitempty"` Nordev string `xml:"nordev,attr" json:"nordev,omitempty"` Nosize string `xml:"nosize,attr" json:"nosize,omitempty"` Nouser string `xml:"nouser,attr" json:"nouser,omitempty"` } `xml:"behaviors" json:"behaviors,omitempty"` Name struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"name" json:"name,omitempty"` Epoch struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"epoch" json:"epoch,omitempty"` Version struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"version" json:"version,omitempty"` Release struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"release" json:"release,omitempty"` Arch struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"arch" json:"arch,omitempty"` Filepath string `xml:"filepath" json:"filepath,omitempty"` }
type RpmverifyfileState ¶
type RpmverifyfileState struct { ID string `xml:"id,attr" json:"id,omitempty"` AttrVersion string `xml:"version,attr" json:"attr_version,omitempty"` Name struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"name" json:"name,omitempty"` Version struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"version" json:"version,omitempty"` }
type RpmverifyfileTest ¶
type RpmverifyfileTest struct { Check string `xml:"check,attr" json:"check,omitempty"` Comment string `xml:"comment,attr" json:"comment,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Object struct { ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"` } `xml:"object" json:"object,omitempty"` State struct { StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"` } `xml:"state" json:"state,omitempty"` }
type States ¶
type States struct { RpminfoState []RpminfoState `xml:"rpminfo_state" json:"rpminfo_state,omitempty"` UnameState []UnameState `xml:"uname_state" json:"uname_state,omitempty"` Textfilecontent54State []Textfilecontent54State `xml:"textfilecontent54_state" json:"textfilecontent_54_state,omitempty"` RpmverifyfileState []RpmverifyfileState `xml:"rpmverifyfile_state" json:"rpmverifyfile_state,omitempty"` }
type Tests ¶
type Tests struct { RpminfoTest []RpminfoTest `xml:"rpminfo_test" json:"rpminfo_test,omitempty"` UnameTest []UnameTest `xml:"uname_test" json:"uname_test,omitempty"` Textfilecontent54Test []Textfilecontent54Test `xml:"textfilecontent54_test" json:"textfilecontent_54_test,omitempty"` RpmverifyfileTest []RpmverifyfileTest `xml:"rpmverifyfile_test" json:"rpmverifyfile_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,omitempty"` Pattern struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"pattern" json:"pattern,omitempty"` Instance struct { Text string `xml:",chardata" json:"text,omitempty"` Datatype string `xml:"datatype,attr" json:"datatype,omitempty"` VarRef string `xml:"var_ref,attr" json:"var_ref,omitempty"` } `xml:"instance" json:"instance,omitempty"` }
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,omitempty"` }
type Textfilecontent54Test ¶
type Textfilecontent54Test struct { Check string `xml:"check,attr" json:"check,omitempty"` Comment string `xml:"comment,attr" json:"comment,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Object struct { ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"` } `xml:"object" json:"object,omitempty"` State struct { StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"` } `xml:"state" json:"state,omitempty"` }
type UnameObject ¶
type UnameState ¶
type UnameState struct { ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` OsRelease struct { Text string `xml:",chardata" json:"text,omitempty"` Operation string `xml:"operation,attr" json:"operation,omitempty"` } `xml:"os_release" json:"os_release,omitempty"` }
type UnameTest ¶
type UnameTest struct { Check string `xml:"check,attr" json:"check,omitempty"` Comment string `xml:"comment,attr" json:"comment,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Object struct { ObjectRef string `xml:"object_ref,attr" json:"object_ref,omitempty"` } `xml:"object" json:"object,omitempty"` State struct { StateRef string `xml:"state_ref,attr" json:"state_ref,omitempty"` } `xml:"state" json:"state,omitempty"` }
type Variables ¶
type Variables struct {
LocalVariable LocalVariable `xml:"local_variable" json:"local_variable,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.