Documentation
¶
Overview ¶
It reads a Tree and spit it in human readable form (YAML), called recipe, It also loads a tree (recipe) from a YAML (to a db, e.g. BoltDB), allowing to query it with the solver, using the package object.
It reads a Tree and spit it in human readable form (YAML), called recipe, It also loads a tree (recipe) from a YAML (to a db, e.g. BoltDB), allowing to query it with the solver, using the package object.
It reads a Tree and spit it in human readable form (YAML), called recipe, It also loads a tree (recipe) from a YAML (to a db, e.g. BoltDB), allowing to query it with the solver, using the package object.
Index ¶
- Constants
- Variables
- func BuildCollectionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func BuildDefinitionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func BuildDockerfileParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func ReadDefinitionFile(path string) (types.Package, error)
- func RuntimeCollectionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func RuntimeDefinitionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func RuntimeDockerfileParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
- func WriteDefinitionFile(p *types.Package, definitionFilePath string) error
- type Builder
- type CompilerRecipe
- type FileParser
- type InstallerRecipe
- type Parser
- type Recipe
Constants ¶
const (
CompilerDefinitionFile = "build.yaml"
)
const (
FinalizerFile = "finalize.yaml"
)
Variables ¶
var DefaultCompilerParsers = []FileParser{ BuildCollectionParser, BuildDefinitionParser, }
var DefaultInstallerParsers = []FileParser{ RuntimeCollectionParser, RuntimeDefinitionParser, }
Functions ¶
func BuildCollectionParser ¶
func BuildCollectionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
func BuildDefinitionParser ¶
func BuildDefinitionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
func BuildDockerfileParser ¶
func BuildDockerfileParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
func RuntimeCollectionParser ¶
func RuntimeCollectionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
func RuntimeDefinitionParser ¶
func RuntimeDefinitionParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
func RuntimeDockerfileParser ¶
func RuntimeDockerfileParser(srcDir, currentpath, name string, templates []string, db types.PackageDatabase) error
Types ¶
type Builder ¶
type Builder interface { Save(string) error // A tree might be saved to a folder structure (human editable) Load(string) error // A tree might be loaded from a db (e.g. bolt) and written to folder GetDatabase() types.PackageDatabase WithDatabase(d types.PackageDatabase) GetSourcePath() []string }
reads a luet tree and generates the package lists
func NewCompilerRecipe ¶
func NewCompilerRecipe(d types.PackageDatabase, fp ...FileParser) Builder
func NewGeneralRecipe ¶
func NewGeneralRecipe(db types.PackageDatabase, fp ...FileParser) Builder
func NewInstallerRecipe ¶
func NewInstallerRecipe(db types.PackageDatabase, fp ...FileParser) Builder
type CompilerRecipe ¶
type CompilerRecipe struct { Recipe // contains filtered or unexported fields }
Recipe is the "general" reciper for Trees
func (*CompilerRecipe) GetDatabase ¶
func (r *CompilerRecipe) GetDatabase() types.PackageDatabase
func (*CompilerRecipe) GetSourcePath ¶
func (r *CompilerRecipe) GetSourcePath() []string
func (*CompilerRecipe) Load ¶
func (r *CompilerRecipe) Load(path string) error
func (*CompilerRecipe) Save ¶
func (r *CompilerRecipe) Save(path string) error
CompilerRecipes copies tree 1:1 as they contain the specs and the build context required for reproducible builds
func (*CompilerRecipe) WithDatabase ¶
func (r *CompilerRecipe) WithDatabase(d types.PackageDatabase)
type FileParser ¶
type InstallerRecipe ¶
type InstallerRecipe struct { SourcePath []string Database types.PackageDatabase // contains filtered or unexported fields }
InstallerRecipe is the "general" reciper for Trees
func (*InstallerRecipe) GetDatabase ¶
func (r *InstallerRecipe) GetDatabase() types.PackageDatabase
func (*InstallerRecipe) GetSourcePath ¶
func (r *InstallerRecipe) GetSourcePath() []string
func (*InstallerRecipe) Load ¶
func (r *InstallerRecipe) Load(path string) error
func (*InstallerRecipe) Save ¶
func (r *InstallerRecipe) Save(path string) error
func (*InstallerRecipe) WithDatabase ¶
func (r *InstallerRecipe) WithDatabase(d types.PackageDatabase)
type Parser ¶
type Parser interface {
Generate(string) (types.PackageDatabase, error) // Generate scannable luet tree (by builder)
}
parses ebuilds (?) and generates data which is readable by the builder
type Recipe ¶
type Recipe struct { SourcePath []string Database types.PackageDatabase // contains filtered or unexported fields }
Recipe is the "general" reciper for Trees
func (*Recipe) GetDatabase ¶
func (r *Recipe) GetDatabase() types.PackageDatabase
func (*Recipe) GetSourcePath ¶
func (*Recipe) WithDatabase ¶
func (r *Recipe) WithDatabase(d types.PackageDatabase)