Documentation
¶
Index ¶
Constants ¶
View Source
const IniFilename = "info.ini"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IniFile ¶
type IniFile struct {
Name string // Name of the package
Organization string // Organization that created this package
Architecture string // Target architecture. For example "windows/amd64".
Actions []IniAction // Actions to take
}
IniFile contains the parsed data from the info.ini file
func ParseIniFile ¶
type UpdatePackage ¶
type UpdatePackage struct {
Filename string // Filename of the update package
Err error // Parsing error if any
Header *IniFile // Header info
Reader *zip.ReadCloser // Access to files in the ZIP file
}
func ParseUpdateFiles ¶
func ParseUpdateFiles(Directory string) (files []UpdatePackage, err error)
ParseUpdateFiles returns a list of parsed update packages. It will check each file in the directory if a ZIP file containing a valid info.ini file. The caller must close all returned readers.
func (*UpdatePackage) Delete ¶
func (update *UpdatePackage) Delete() (err error)
Deletes the update package file
func (*UpdatePackage) Execute ¶
func (update *UpdatePackage) Execute(DataFolder, PluginFolder string) (err error)
Execute the actions described in the info header
Click to show internal directories.
Click to hide internal directories.