Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PdscTag ¶
type PdscTag struct {
XMLName xml.Name `xml:"pdsc"`
Vendor string `xml:"vendor,attr"`
URL string `xml:"url,attr"`
Name string `xml:"name,attr"`
Version string `xml:"version,attr"`
}
PdscTag maps a <pdsc> tag that goes in PIDX files.
type PdscXML ¶
type PdscXML struct {
XMLName xml.Name `xml:"package"`
Vendor string `xml:"vendor"`
URL string `xml:"url"`
Name string `xml:"name"`
ReleasesTag struct {
XMLName xml.Name `xml:"releases"`
Releases []ReleaseTag `xml:"release"`
} `xml:"releases"`
// contains filtered or unexported fields
}
PdscXML maps few tags of a PDSC file. Ref: https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/Utilities/PACK.xsd
func NewPdscXML ¶
NewPdscXML receives a PDSC file name to be later read into the PdscXML struct
func (*PdscXML) LatestVersion ¶
LatestVersion returns a string containing version of the first tag within the <releases> tag.
type PidxXML ¶
type PidxXML struct {
XMLName xml.Name `xml:"index"`
Timestamp string `xml:"timestamp"`
Pindex struct {
XMLName xml.Name `xml:"pindex"`
Pdscs []PdscTag `xml:"pdsc"`
} `xml:"pindex"`
// contains filtered or unexported fields
}
PidxXML maps the PIDX file format. Ref: https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/Utilities/PackIndex.xsd
func NewPidxXML ¶
NewPidxXML creates a new instance of the PidxXML struct.
func (*PidxXML) Read ¶
Read reads FileName into this PidxXML struct and allocates memory for all PDSC tags.
func (*PidxXML) RemovePdsc ¶
RemovePdsc takes in a PdscTag and remove it from the <pindex> tag.