Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemovePack ¶
RemovePack removes a pack given a pack path
func RemovePdsc ¶
RemovePdsc removes a pack given a pdsc path
func SetPackRoot ¶
SetPackRoot sets the working directory of the packs installation
Types ¶
type PacksInstallationType ¶
type PacksInstallationType struct {
// PackRoot is the working directory if the packs installation
PackRoot string
// DownloadDir stores copies of all packs that were installed via pack files
// from external servers.
DownloadDir string
// LocalDir stores "local_repository.pidx" containing a list of all packs
// installed via PDSC files.
LocalDir string
// WebDir stores "index.pidx" containing a list of PDSC tags with all
// publicly available packs.
WebDir string
// LocalPidx is a reference to "local_repository.pidx" that contains a flat
// list of PDSC tags representing all packs installed via PDSC files.
LocalPidx *xml.PidxXML
// PackIdx is the "pack.idx" file used by other tools to be notified that
// the pack installation had changed.
PackIdx string
// contains filtered or unexported fields
}
PacksInstallationType is the scruct tha manages Open-CMSIS-Pack installation/deletion.
var Installation *PacksInstallationType
Installation is a singleton variable that keeps the only reference to PacksInstallationType
func (*PacksInstallationType) PackIsInstalled ¶
func (p *PacksInstallationType) PackIsInstalled(pack *PackType) bool
PackIsInstalled checks whether a given pack is already installed or not
Click to show internal directories.
Click to hide internal directories.