Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDockerNotInstalled = errors.New( "you must have the docker installed to run formulas inside it, check how to install it at: [https://docs.docker.com/get-docker]", ) ErrDockerImageNotFound = errors.New( "config.json does not contain the \"dockerImageBuilder\" field, to run this formula with docker add a docker image name to it", ) ErrDockerfileNotFound = errors.New( "the formula cannot be executed inside the docker, you must add a \"Dockerfile\" to execute the formula inside the docker", ) ErrInvalidVolume = errors.New( "config.json file does not contain a valid volume to be mounted", ) )
Functions ¶
func NewRunner ¶
func NewRunner( postRun formula.PostRunner, input formula.InputResolver, preRun formula.PreRunner, file stream.FileWriteExistAppender, env env.Finder, homeDir string, ) formula.Runner
Types ¶
type PreRunManager ¶
type PreRunManager struct {
// contains filtered or unexported fields
}
func NewPreRun ¶
func NewPreRun( ritchieHome string, docker formula.Builder, dir stream.DirCreateListCopyRemover, file stream.FileReadExister, checker runner.PreRunCheckerManager, ) PreRunManager
func (PreRunManager) PreRun ¶
func (pr PreRunManager) PreRun(def formula.Definition) (formula.Setup, error)
type RunManager ¶
type RunManager struct { formula.PostRunner formula.InputResolver formula.PreRunner // contains filtered or unexported fields }
func (RunManager) Run ¶
func (ru RunManager) Run(def formula.Definition, inputType api.TermInputType, verbose bool, flags *pflag.FlagSet) error
Click to show internal directories.
Click to hide internal directories.