Documentation
¶
Index ¶
- func ConfigExists(pkgbase string) (bool, error)
- func GetMergedVersion(pkgbase string) (string, error)
- func GetPackages() ([]string, error)
- func GetUpstreamPkgnames(pkgbase string) ([]string, error)
- func GetUpstreamVersion(pkgbase string) (string, error)
- func PackageExists(pkgbase string) (bool, error)
- type PackageConfig
- func (pconfig *PackageConfig) CleanPkgrelBumpVersions(pkgver string) error
- func (pconfig *PackageConfig) Load(pkgbase string) error
- func (pconfig *PackageConfig) Merge(pkgbase string) error
- func (pconfig *PackageConfig) ProcessOverrides(pkgbase string) error
- func (pconfig *PackageConfig) Write(pkgbase string) error
- type PackageConfigModifySection
- type PackageConfigOverrideFromTo
- type PackageConfigOverrides
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigExists ¶
func GetMergedVersion ¶
func GetPackages ¶
func GetUpstreamPkgnames ¶
func GetUpstreamVersion ¶
func PackageExists ¶
Types ¶
type PackageConfig ¶
type PackageConfig struct {
Source string `yaml:"source,omitempty"`
BuildFirst bool `yaml:"buildFirst,omitempty"`
Overrides PackageConfigOverrides `yaml:"overrides,omitempty"`
Ignore bool `yaml:"ignore,omitempty"`
}
func LoadConfig ¶
func LoadConfig(pkgbase string) (*PackageConfig, error)
func (*PackageConfig) CleanPkgrelBumpVersions ¶
func (pconfig *PackageConfig) CleanPkgrelBumpVersions(pkgver string) error
func (*PackageConfig) Load ¶
func (pconfig *PackageConfig) Load(pkgbase string) error
func (*PackageConfig) Merge ¶
func (pconfig *PackageConfig) Merge(pkgbase string) error
func (*PackageConfig) ProcessOverrides ¶
func (pconfig *PackageConfig) ProcessOverrides(pkgbase string) error
func (*PackageConfig) Write ¶
func (pconfig *PackageConfig) Write(pkgbase string) error
type PackageConfigModifySection ¶
type PackageConfigModifySection struct {
Type string `yaml:"type,omitempty"`
Section string `yaml:"section,omitempty"`
Sections []string `yaml:"sections,omitempty"`
Package string `yaml:"package,omitempty"`
Packages []string `yaml:"packages,omitempty"`
Append string `yaml:"append,omitempty"`
Prepend string `yaml:"prepend,omitempty"`
Replace []PackageConfigOverrideFromTo `yaml:"replace,omitempty"`
}
type PackageConfigOverrides ¶
type PackageConfigOverrides struct {
BumpPkgrel map[string]int `yaml:"bumpPkgrel,omitempty"`
ClearDependsVersions bool `yaml:"clearDependsVersions,omitempty"`
ClearPkgverFunc bool `yaml:"clearPkgverFunc,omitempty"`
ClearSignatures bool `yaml:"clearSignatures,omitempty"`
DeleteFile []string `yaml:"deleteFile,omitempty"`
ModifySection []PackageConfigModifySection `yaml:"modifySection,omitempty"`
RemoveSource []string `yaml:"removeSource,omitempty"`
RenameFile []PackageConfigOverrideFromTo `yaml:"renameFile,omitempty"`
RenamePackage []PackageConfigOverrideFromTo `yaml:"renamePackage,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.