Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestPayload ¶
type SController ¶
type SController struct {
// contains filtered or unexported fields
}
func NewServerController ¶
func NewServerController( jobs map[string]*config.Job, connections *network.Connections, loggers chaoslogger.Loggers, ) *SController
func (*SController) ServerAction ¶
func (sc *SController) ServerAction(w http.ResponseWriter, r *http.Request)
ServerAction godoc @Summary Inject Server failures @Description Perform Server fault injection. Supports action to kill the server specified. A shutdown will be executed after 1 minute. @Tags Failure injections @Accept json @Produce json @Param action query string true "Specify to perform a kill action on the server" Enums(kill) @Param requestPayload body RequestPayload true "Specify the job name and target" @Success 200 {object} response.Payload @Failure 400 {string} http.Error @Failure 500 {string} http.Error @Router /server [post]
Click to show internal directories.
Click to hide internal directories.