Documentation ¶
Overview ¶
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- Constants
- func NewCollection(data *[]byte) (*pkg.Collection, error)
- func ReadBuildFile(buildFile, definitionFile string, engine *render.RenderEngine, ...) (*specs.CompilationSpecLoad, error)
- func ReadBuildFileFromCollection(buildFile, cFile string, engine *render.RenderEngine, atom *pkg.DefaultPackage, ...) (*specs.CompilationSpecLoad, error)
- func ReadCollectionFile(cFile string) (*pkg.Collection, error)
- func ReadDefinitionFile(defFile string) (*pkg.DefaultPackage, error)
- func ReadDefinitionFileAsMap(defFile string) (*map[string]interface{}, error)
- func WriteDefinitionFile(p pkg.Package, definitionFilePath string) error
- type CollectionRender
- type ForestGuard
- type GenOpts
- type TreeIdx
- func (t *TreeIdx) AddPackage(name string, p *TreeIdxPkg)
- func (t *TreeIdx) DetectMode() *TreeIdx
- func (t *TreeIdx) Generate(treeDir string, opts *GenOpts) error
- func (t *TreeIdx) GetPackageVersion(name, version string) (*TreeIdxPkg, bool)
- func (t *TreeIdx) GetPackageVersions(name string) ([]*TreeIdxPkg, bool)
- func (t *TreeIdx) HasPackages() bool
- func (t *TreeIdx) Merge(tI *TreeIdx)
- func (t *TreeIdx) Read(treeDir string) error
- func (t *TreeIdx) ToJSON() ([]byte, error)
- func (t *TreeIdx) ToYAML() ([]byte, error)
- func (t *TreeIdx) Write() error
- type TreeIdxPkg
Constants ¶
View Source
const (
IDX_FILE = ".anise-idx.json"
)
Variables ¶
This section is empty.
Functions ¶
func NewCollection ¶
func NewCollection(data *[]byte) (*pkg.Collection, error)
func ReadBuildFile ¶
func ReadBuildFile(buildFile, definitionFile string, engine *render.RenderEngine, overrideValues map[string]interface{}, ) (*specs.CompilationSpecLoad, error)
Render the build file of a package with definition.yaml file
func ReadBuildFileFromCollection ¶
func ReadBuildFileFromCollection(buildFile, cFile string, engine *render.RenderEngine, atom *pkg.DefaultPackage, overrideValues map[string]interface{}, ) (*specs.CompilationSpecLoad, error)
Render the build file of a package with definition.yaml file
func ReadCollectionFile ¶
func ReadCollectionFile(cFile string) (*pkg.Collection, error)
func ReadDefinitionFile ¶
func ReadDefinitionFile(defFile string) (*pkg.DefaultPackage, error)
func ReadDefinitionFileAsMap ¶
Types ¶
type CollectionRender ¶
type CollectionRender struct {
Packages []map[string]interface{} `json:"packages" yaml:"packages"`
}
func NewCollectionRender ¶
func NewCollectionRender(data *[]byte) (*CollectionRender, error)
func ReadCollectionFileLoad ¶
func ReadCollectionFileLoad(cFile string) (*CollectionRender, error)
func (*CollectionRender) GetPackageValues ¶
func (c *CollectionRender) GetPackageValues(p *pkg.DefaultPackage) (*map[string]interface{}, error)
type ForestGuard ¶
type ForestGuard struct { Config *cfg.LuetConfig Trees []*TreeIdx }
func NewForestGuard ¶
func NewForestGuard(config *cfg.LuetConfig) *ForestGuard
func (*ForestGuard) LoadTrees ¶
func (fg *ForestGuard) LoadTrees(tpaths []string) error
type TreeIdx ¶
type TreeIdx struct { Map map[string][]*TreeIdxPkg `json:"packages,omitempty" yaml:"packages,omitempty"` BaseDir string `json:"basedir,omitempty" yaml:"basedir,omitempty"` Compress bool `json:"-" yaml:"-"` TreePath string `json:"-" yaml:"-"` }
func NewTreeIdx ¶
func (*TreeIdx) AddPackage ¶
func (t *TreeIdx) AddPackage(name string, p *TreeIdxPkg)
func (*TreeIdx) DetectMode ¶
func (*TreeIdx) GetPackageVersion ¶
func (t *TreeIdx) GetPackageVersion(name, version string) (*TreeIdxPkg, bool)
func (*TreeIdx) GetPackageVersions ¶
func (t *TreeIdx) GetPackageVersions(name string) ([]*TreeIdxPkg, bool)
func (*TreeIdx) HasPackages ¶
type TreeIdxPkg ¶
Click to show internal directories.
Click to hide internal directories.