Documentation
¶
Index ¶
- func AddCreds(c echo.Context) error
- func AddSlaves(c echo.Context) error
- func DeleteCreds(c echo.Context) error
- func GetCreds(c echo.Context) error
- func GetSlaves(c echo.Context) error
- func HealthCheck(c echo.Context) error
- func StartBruteForce(c echo.Context) error
- func UpdateCreds(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCreds ¶
func AddCreds(c echo.Context) error
AddCreds godoc @Summary Add credentials @Description Add credentials to the database @Tags Creds @Accept json @Param credentials body []internalTypes.ICredentialsCreate true "ICredentialsCreate" @Success 200 {array} internalTypes.ICredentialsCreate @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [post]
func AddSlaves ¶
func AddSlaves(c echo.Context) error
AddSlaves godoc (POST /slaves) @Summary Add slaves @Description Add slaves to the database @Tags Slaves @Accept json @Produce json @Success 200 {array} internalTypes.SlaveDTO @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /slaves [post]
func DeleteCreds ¶
func DeleteCreds(c echo.Context) error
DeleteCreds godoc @Summary Delete credentials by ID @Description IDeleteParams credentials from the database @Tags Creds @Param id query string true "ID of the credentials to delete" @Success 200 @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [delete]
func GetCreds ¶
func GetCreds(c echo.Context) error
GetCreds godoc @Summary Get credentials @Description Get credentials from the database @Tags Creds @Param limit query int false "Limit the number of results" @Param page query int false "Offset number" @Success 200 {array} internalTypes.IReadCredentials @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [get]
func GetSlaves ¶
func GetSlaves(c echo.Context) error
GetSlaves ... Get all slaves @Summary Get slaves @Description Get slaves from the database @Tags Slaves @Produce json @Param limit query int false "Limit the number of results" @Param page query int false "Offset number" @Success 200 {array} internalTypes.SlaveDTO @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /slaves [get]
func HealthCheck ¶
func HealthCheck(c echo.Context) error
HealthCheck @Summary API Health Check @Description API HealthCheck @Tags Health Check @Produce json @Success 200 {object} internalTypes.Health @Router /health [get]
func StartBruteForce ¶
func StartBruteForce(c echo.Context) error
StartBruteForce godoc (POST /brute) @Summary Start new brute force action @Description Start brute force task @Tags Brute Force @Accept json @Produce json @Param credentials body []internalTypes.IBruteForceCreate true "IBruteForceCreate" @Success 200 {array} internalTypes.IBruteForceRead @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /brute [post]
func UpdateCreds ¶
func UpdateCreds(c echo.Context) error
UpdateCreds godoc @Summary Update credentials @Description Update credentials in the database @Tags Creds @Accept json @Param credentials body []internalTypes.IUpdateCredentials true "ICredentialsCreate" @Success 200 {array} internalTypes.IReadCredentials @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [put]
Types ¶
This section is empty.