Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DController ¶
type DController struct {
// contains filtered or unexported fields
}
func NewDockerController ¶
func NewDockerController( jobs map[string]*config.Job, connections *network.Connections, cache *cache.Manager, logger log.Logger, ) *DController
func (*DController) DockerAction ¶
func (d *DController) DockerAction(w http.ResponseWriter, r *http.Request)
CalcExample godoc @Summary Inject docker failures @Description Perform start or stop action on a container. If random is specified you do not have to provide a target @Tags Failure injections @Accept json @Produce json @Param do query string false "Specify to perform action for container on random target" @Param action query string true "Specify to perform a start or a stop on the specified container" @Param requestPayload body RequestPayload true "Specify the job name, container name and target" @Success 200 {object} response.Payload @Failure 400 {object} response.Payload @Failure 500 {object} response.Payload @Router /docker [post]