management

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite) *Handler

func (*Handler) Get

@Tags Management @Security ApiKeyAuth @Description Get all vuln vulnerability data in repository @ID get-vuln-data @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param page query string false "page query string" @Param size query string false "size query string" @Param vulnHash query string false "vulnHash query string" @Param vulnType query string false "vulnType query string" @Param vulnSeverity query string false "vulnSeverity query string" @Success 200 {object} http.Response{content=string} "OK" @Failure 400 {object} http.Response{content=string} "BAD REQUEST" @Failure 500 {object} http.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/companies/{companyID}/repositories/{repositoryID}/management [get]

func (*Handler) Options

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

func (*Handler) UpdateVulnType

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

@Tags Management @Security ApiKeyAuth @Description update vulnerability type @ID update-vuln-type @Accept json @Produce json @Param UpdateVulnType body dto.UpdateVulnType true "type of vulnerability" @Param vulnerabilityID path string true "vulnerabilityID of the vulnerability" @Param repositoryID path string true "repositoryID of the repository" @Success 200 {object} http.Response{content=string} "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/companies/{companyID}/repositories/{repositoryID}/management/{vulnerabilityID}/type [put]

Jump to

Keyboard shortcuts

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