Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changelog ¶
type Changelog struct {
Releases []Release `xml:"release"`
}
Changelog contains all the releases of a specific Package.
type ConfigureOption ¶
type Dependencies ¶
type Dependencies struct { Required RequiredDependencies `xml:"required"` Optional OptionalDependencies `xml:"optional"` }
type ExtSrcRelease ¶
type ExtSrcRelease struct {
ConfigureOptions []ConfigureOption `xml:"configureoption"`
}
type ExtensionConstraint ¶
type OptionalDependencies ¶
type OptionalDependencies struct {
Extensions []ExtensionConstraint `xml:"extension"`
}
type PHPConstraint ¶
type Package ¶
type Package struct { Name string `xml:"name"` Summary string `xml:"summary"` Description string `xml:"description"` PublishDate string `xml:"date"` PublishTime string `xml:"time"` User string `xml:"user"` Email string `xml:"email"` Version Version `xml:"version"` Stability PackageStability `xml:"stability"` License License `xml:"license"` Dependencies Dependencies `xml:"dependencies"` ExtSrcRelease ExtSrcRelease `xml:"extsrcrelease"` Changelog Changelog `xml:"changelog"` }
Package represents a package.xml file.
func LoadPackageXML ¶
LoadPackageXML reads an XML file from the given io.Reader and transforms it into a Package struct.
func LoadPackageXMLFromFile ¶
LoadPackageXMLFromFile loads the XML file at xmlpath and converts it into a Package struct.
type PackageStability ¶
type Release ¶
type Release struct { Date string `xml:"date"` Time string `xml:"time"` Version Version `xml:"version"` Stability PackageStability `xml:"stability"` Notes string `xml:"notes"` }
Release contains all the metadata about a single release as provided by package.xml files.
type RequiredDependencies ¶
type RequiredDependencies struct { PHP PHPConstraint `xml:"php"` Extensions []ExtensionConstraint `xml:"extension"` }
Click to show internal directories.
Click to hide internal directories.