Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(receiptExecutor RecipeExecutor, log *logrus.Logger) *Controller
func (*Controller) RunRecipe ¶
func (c *Controller) RunRecipe(sshExecutor shared.SSHExecutor, runRecipe *SSHRecipeRq) (*SSHRecipeRs, error)
type RecipeExecutor ¶
type RecipeRunController ¶
type RecipeRunController interface {
RunRecipe(shared.SSHExecutor, *SSHRecipeRq) (*SSHRecipeRs, error)
}
type SSHRecipeRq ¶
type SSHRecipeRq struct { Host string `json:"host" binding:"required"` Port int `json:"port" binding:"required"` Recipe []string `json:"recipe" binding:"required"` Timeout time.Duration `json:"timeout"` }
func (SSHRecipeRq) Validate ¶
func (r SSHRecipeRq) Validate() error
type SSHRecipeRs ¶
Click to show internal directories.
Click to hide internal directories.