Versions in this module Expand all Collapse all v1 v1.0.0 Mar 10, 2023 Changes in this version + type API struct + func NewAPI(controller RecipeRunController, cfg *config.Config, log *logrus.Logger) *API + func (api *API) Start() error + type Controller struct + func NewController(receiptExecutor RecipeExecutor, log *logrus.Logger) *Controller + func (c *Controller) RunRecipe(sshExecutor shared.SSHExecutor, runRecipe *SSHRecipeRq) (*SSHRecipeRs, error) + type RecipeExecutor interface + Execute func(sshExecutor shared.SSHExecutor, recipe []string, timeout time.Duration) ([]string, string, error) + type RecipeRunController interface + RunRecipe func(shared.SSHExecutor, *SSHRecipeRq) (*SSHRecipeRs, error) + type SSHRecipeRq struct + Host string + Port int + Recipe []string + Timeout time.Duration + func (r SSHRecipeRq) Validate() error + type SSHRecipeRs struct + Error string + Response []string + ResponseErr string