Documentation ¶
Index ¶
- func BuildContainerfile(recipe *api.Recipe) 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 ChangeWorkingDirectory(workdir string, containerfile *os.File) error
- func CompileRecipe(recipePath string, runtime string, isRoot bool, origGid int, origUid int) error
- func GenModule(modulePath string) (map[string]interface{}, error)
- func GetContainerStorage(runtime string) (cstorage.Store, error)
- func GetImageID(name string, store cstorage.Store) (string, error)
- func GetTopLayerID(imageid string, store cstorage.Store) (string, error)
- func LoadRecipe(path string) (*api.Recipe, error)
- func MountImage(imagename string, imageid string, runtime string) (string, error)
- func RestoreWorkingDirectory(workdir string, containerfile *os.File) error
- func TestRecipe(path string) (*api.Recipe, error)
- type Finalize
- type IncludesModule
- type Module
- type ModuleCommand
- type Plugin
- type ShellModule
- type StorageConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContainerfile ¶
BuildContainerfile builds a Containerfile from a recipe and a list of modules commands
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 ChangeWorkingDirectory ¶ added in v0.7.3
func CompileRecipe ¶ added in v0.2.4
CompileRecipe compiles a recipe into a runnable image.
func GetContainerStorage ¶ added in v0.8.0
func GetImageID ¶ added in v0.8.0
func GetTopLayerID ¶ added in v0.8.0
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
func MountImage ¶ added in v0.8.0
func RestoreWorkingDirectory ¶ added in v0.7.3
Types ¶
type IncludesModule ¶ 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
type ShellModule ¶ added in v0.3.2
type StorageConf ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.