Documentation ¶
Overview ¶
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuetPackage ¶
type LuetPackage struct { Name string `json:"name" yaml:"name"` Category string `json:"category" yaml:"category"` Version string `json:"version" yaml:"version"` }
func (*LuetPackage) GetCategory ¶
func (c *LuetPackage) GetCategory() string
func (*LuetPackage) GetName ¶
func (c *LuetPackage) GetName() string
func (*LuetPackage) GetVersion ¶
func (c *LuetPackage) GetVersion() string
func (*LuetPackage) HumanReadableString ¶
func (p *LuetPackage) HumanReadableString() string
type LuetRDCCleaner ¶
type LuetRDCCleaner struct {
Excludes []string `json:"excludes,omitempty" yaml:"excludes,omitempty"`
}
func (*LuetRDCCleaner) HasExcludes ¶
func (c *LuetRDCCleaner) HasExcludes() bool
type LuetRDCList ¶
type LuetRDCList struct {
ExcludePkgs []LuetPackage `json:"exclude_pkgs,omitempty" yaml:"exclude_pkgs,omitempty"`
}
func (*LuetRDCList) HasFilters ¶
func (c *LuetRDCList) HasFilters() bool
func (*LuetRDCList) ToIgnore ¶
func (c *LuetRDCList) ToIgnore(pkg *luet_pkg.DefaultPackage) bool
type LuetRDConfig ¶
type LuetRDConfig struct { Cleaner LuetRDCCleaner `json:"cleaner,omitempty" yaml:"cleaner,omitempty"` List LuetRDCList `json:"list,omitempty" yaml:"list,omitempty"` }
func LoadSpecsFile ¶
func LoadSpecsFile(file string) (*LuetRDConfig, error)
func NewLuetRDConfig ¶
func NewLuetRDConfig() *LuetRDConfig
func SpecsFromYaml ¶
func SpecsFromYaml(data []byte) (*LuetRDConfig, error)
func (*LuetRDConfig) GetCleaner ¶
func (c *LuetRDConfig) GetCleaner() *LuetRDCCleaner
func (*LuetRDConfig) GetList ¶
func (c *LuetRDConfig) GetList() *LuetRDCList