Documentation
¶
Index ¶
- func AddPack(packPath string, checkEula, extractEula bool) error
- func AddPdsc(pdscPath string) error
- func RemovePack(packPath string, purge bool) error
- func RemovePdsc(pdscPath string) error
- func SetPackRoot(packRoot string, create bool) error
- func UpdatePublicIndex(indexPath string, overwrite bool) error
- type PackType
- type PacksInstallationType
- type PdscType
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 if create == true, cpackget will try to create needed resources
func UpdatePublicIndex ¶ added in v0.2.0
UpdatePublicIndex receives a index path and place it under .Web/index.pidx.
Types ¶
type PackType ¶
type PackType struct {
xml.PdscTag
// pdsc holds a pointer to the PDSC file already parsed as XML
Pdsc *xml.PdscXML
// contains filtered or unexported fields
}
PackType is the struct that represents the installation of a single pack
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
// PublicIndex stores the path PackRoot/WebDir/index.pidx
PublicIndex 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.