analysis

package
v1.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite,
	broker brokerLib.IBroker, config app.IAppConfig) httpUtil.Interface

Types

type Handler

type Handler struct {
	httpUtil.Interface
	// contains filtered or unexported fields
}

func (*Handler) Delete

func (h *Handler) Delete(w netHTTP.ResponseWriter, _ *netHTTP.Request)

func (*Handler) Get

@Tags Analysis @Security ApiKeyAuth @Description Get analysis on database @ID get-one-analysis @Accept json @Produce json @Param analysisID path string true "analysisID of the analysis" @Success 200 {object} http.Response{content=horusec.Analysis{vulnerabilities=[]horusec.Vulnerability{commitAuthor=horusec.CommitAuthor{}}}} "OK" @Success 400 {object} http.Response{content=string} "BAD REQUEST" @Success 404 {object} http.Response{content=string} "NOT FOUND" @Failure 500 {object} http.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/analysis/{analysisID} [get]

func (*Handler) Options

func (h *Handler) Options(w netHTTP.ResponseWriter, _ *netHTTP.Request)

func (*Handler) Post

func (h *Handler) Post(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Analysis @Security ApiKeyAuth @Description Start new analysis @ID start-new-analysis @Accept json @Produce json @Param SendNewAnalysis body horusec.Analysis true "send new analysis info" @Success 201 {object} http.Response{content=string} "CREATED" @Success 400 {object} http.Response{content=string} "BAD REQUEST" @Success 404 {object} http.Response{content=string} "NOT FOUND" @Failure 500 {object} http.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/analysis [post]

func (*Handler) Put

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL