Documentation ¶
Index ¶
- func BuildAptModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildCMakeModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildContainerfile(recipe *api.Recipe) error
- func BuildDnfModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildDpkgBuildPkgModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildDpkgModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildGoModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildMakeModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildMesonModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func BuildModule(recipe *api.Recipe, moduleInterface interface{}) (string, error)
- func BuildRecipe(recipePath string) (api.Recipe, error)
- func BuildShellModule(moduleInterface interface{}, recipe *api.Recipe) (string, error)
- func CompileRecipe(recipePath string, runtime string) error
- func GenModule(modulePath string) (map[string]interface{}, error)
- func LoadPlugin(name string, module interface{}, recipe *api.Recipe) (string, error)
- func LoadRecipe(path string) (*api.Recipe, error)
- func TestRecipe(path string) (*api.Recipe, error)
- type AptModule
- type AptOptions
- type CMakeModule
- type DnfModule
- type DpkgBuildModule
- type DpkgModule
- type GoModule
- type IncludesModule
- type MakeModule
- type MesonModule
- type Module
- type ModuleCommand
- type Plugin
- type ShellModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAptModule ¶
BuildAptModule builds a module that installs packages using the apt package manager
func BuildCMakeModule ¶
BuildCMakeModule builds a module that builds a CMake project
func BuildContainerfile ¶
BuildContainerfile builds a Containerfile from a recipe and a list of modules commands
func BuildDnfModule ¶ added in v0.5.0
BuildDnfModule builds a module that installs packages using the dnf package manager
func BuildDpkgBuildPkgModule ¶
BuildDpkgModule builds a module that builds a dpkg project and installs the resulting .deb package
func BuildDpkgModule ¶
BuildDpkgModule builds a module that installs a .deb package
func BuildGoModule ¶
BuildGoModule builds a module that builds a Go project buildVars are used to customize the build command like setting the output binary name and location
func BuildMakeModule ¶
BuildMakeModule builds a module that builds a Make project
func BuildMesonModule ¶
BuildMesonModule builds a module that builds a Meson project
func BuildModule ¶
BuildModule builds a module command from a module this is done by calling the appropriate module builder function based on the module type
func BuildRecipe ¶
BuildRecipe builds a Containerfile from a recipe path
func BuildShellModule ¶ added in v0.2.1
func CompileRecipe ¶ added in v0.2.4
CompileRecipe compiles a recipe into a runnable image.
func LoadPlugin ¶ added in v0.3.2
func LoadRecipe ¶
LoadRecipe loads a recipe from a file and returns a Recipe Does not validate the recipe but it will catch some errors a proper validation will be done in the future
Types ¶
type AptModule ¶ added in v0.3.2
type AptModule struct { Name string `json:"name"` Type string `json:"type"` Options AptOptions `json:"options"` Source api.Source `json:"source"` }
type AptOptions ¶ added in v0.5.0
type CMakeModule ¶ added in v0.3.2
type DpkgBuildModule ¶ added in v0.3.2
type DpkgModule ¶ added in v0.3.2
type IncludesModule ¶ added in v0.3.2
type MakeModule ¶ added in v0.3.2
type MesonModule ¶ added in v0.3.2
type ModuleCommand ¶
func BuildModules ¶
func BuildModules(recipe *api.Recipe, modules []interface{}) ([]ModuleCommand, error)
BuildModules builds a list of modules commands from a list of modules