report_violations

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AssociateReportViolationsBadRequestCode int = 400

AssociateReportViolationsBadRequestCode is the HTTP code returned for type AssociateReportViolationsBadRequest

View Source
const AssociateReportViolationsConflictCode int = 409

AssociateReportViolationsConflictCode is the HTTP code returned for type AssociateReportViolationsConflict

View Source
const AssociateReportViolationsForbiddenCode int = 403

AssociateReportViolationsForbiddenCode is the HTTP code returned for type AssociateReportViolationsForbidden

View Source
const AssociateReportViolationsInternalServerErrorCode int = 500

AssociateReportViolationsInternalServerErrorCode is the HTTP code returned for type AssociateReportViolationsInternalServerError

View Source
const AssociateReportViolationsNoContentCode int = 204

AssociateReportViolationsNoContentCode is the HTTP code returned for type AssociateReportViolationsNoContent

View Source
const AssociateReportViolationsNotFoundCode int = 404

AssociateReportViolationsNotFoundCode is the HTTP code returned for type AssociateReportViolationsNotFound

View Source
const AssociateReportViolationsUnprocessableEntityCode int = 422

AssociateReportViolationsUnprocessableEntityCode is the HTTP code returned for type AssociateReportViolationsUnprocessableEntity

View Source
const GetReportViolationsByReportIDBadRequestCode int = 400

GetReportViolationsByReportIDBadRequestCode is the HTTP code returned for type GetReportViolationsByReportIDBadRequest

View Source
const GetReportViolationsByReportIDForbiddenCode int = 403

GetReportViolationsByReportIDForbiddenCode is the HTTP code returned for type GetReportViolationsByReportIDForbidden

View Source
const GetReportViolationsByReportIDInternalServerErrorCode int = 500

GetReportViolationsByReportIDInternalServerErrorCode is the HTTP code returned for type GetReportViolationsByReportIDInternalServerError

View Source
const GetReportViolationsByReportIDNotFoundCode int = 404

GetReportViolationsByReportIDNotFoundCode is the HTTP code returned for type GetReportViolationsByReportIDNotFound

View Source
const GetReportViolationsByReportIDOKCode int = 200

GetReportViolationsByReportIDOKCode is the HTTP code returned for type GetReportViolationsByReportIDOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateReportViolations

type AssociateReportViolations struct {
	Context *middleware.Context
	Handler AssociateReportViolationsHandler
}
AssociateReportViolations swagger:route POST /report-violations/{reportID} reportViolations associateReportViolations

Associate violations with an evaluation report

Associate violations with an evaluation report. This will overwrite any existing report-violations associations for the report and replace them with the newly provided ones. An empty array will remove all violation associations for a given report.

func NewAssociateReportViolations

func NewAssociateReportViolations(ctx *middleware.Context, handler AssociateReportViolationsHandler) *AssociateReportViolations

NewAssociateReportViolations creates a new http.Handler for the associate report violations operation

func (*AssociateReportViolations) ServeHTTP

type AssociateReportViolationsBadRequest

type AssociateReportViolationsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

AssociateReportViolationsBadRequest The request payload is invalid

swagger:response associateReportViolationsBadRequest

func NewAssociateReportViolationsBadRequest

func NewAssociateReportViolationsBadRequest() *AssociateReportViolationsBadRequest

NewAssociateReportViolationsBadRequest creates AssociateReportViolationsBadRequest with default headers values

func (*AssociateReportViolationsBadRequest) SetPayload

func (o *AssociateReportViolationsBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the associate report violations bad request response

func (*AssociateReportViolationsBadRequest) WithPayload

WithPayload adds the payload to the associate report violations bad request response

func (*AssociateReportViolationsBadRequest) WriteResponse

WriteResponse to the client

type AssociateReportViolationsConflict

type AssociateReportViolationsConflict struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

AssociateReportViolationsConflict Conflict error

swagger:response associateReportViolationsConflict

func NewAssociateReportViolationsConflict

func NewAssociateReportViolationsConflict() *AssociateReportViolationsConflict

NewAssociateReportViolationsConflict creates AssociateReportViolationsConflict with default headers values

func (*AssociateReportViolationsConflict) SetPayload

func (o *AssociateReportViolationsConflict) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the associate report violations conflict response

func (*AssociateReportViolationsConflict) WithPayload

WithPayload adds the payload to the associate report violations conflict response

func (*AssociateReportViolationsConflict) WriteResponse

func (o *AssociateReportViolationsConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssociateReportViolationsForbidden

type AssociateReportViolationsForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

AssociateReportViolationsForbidden The request was denied

swagger:response associateReportViolationsForbidden

func NewAssociateReportViolationsForbidden

func NewAssociateReportViolationsForbidden() *AssociateReportViolationsForbidden

NewAssociateReportViolationsForbidden creates AssociateReportViolationsForbidden with default headers values

func (*AssociateReportViolationsForbidden) SetPayload

func (o *AssociateReportViolationsForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the associate report violations forbidden response

func (*AssociateReportViolationsForbidden) WithPayload

WithPayload adds the payload to the associate report violations forbidden response

func (*AssociateReportViolationsForbidden) WriteResponse

WriteResponse to the client

type AssociateReportViolationsHandler

type AssociateReportViolationsHandler interface {
	Handle(AssociateReportViolationsParams) middleware.Responder
}

AssociateReportViolationsHandler interface for that can handle valid associate report violations params

type AssociateReportViolationsHandlerFunc

type AssociateReportViolationsHandlerFunc func(AssociateReportViolationsParams) middleware.Responder

AssociateReportViolationsHandlerFunc turns a function with the right signature into a associate report violations handler

func (AssociateReportViolationsHandlerFunc) Handle

Handle executing the request and returning a response

type AssociateReportViolationsInternalServerError

type AssociateReportViolationsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

AssociateReportViolationsInternalServerError A server error occurred

swagger:response associateReportViolationsInternalServerError

func NewAssociateReportViolationsInternalServerError

func NewAssociateReportViolationsInternalServerError() *AssociateReportViolationsInternalServerError

NewAssociateReportViolationsInternalServerError creates AssociateReportViolationsInternalServerError with default headers values

func (*AssociateReportViolationsInternalServerError) SetPayload

SetPayload sets the payload to the associate report violations internal server error response

func (*AssociateReportViolationsInternalServerError) WithPayload

WithPayload adds the payload to the associate report violations internal server error response

func (*AssociateReportViolationsInternalServerError) WriteResponse

WriteResponse to the client

type AssociateReportViolationsNoContent

type AssociateReportViolationsNoContent struct {
}

AssociateReportViolationsNoContent Successfully saved the report violations

swagger:response associateReportViolationsNoContent

func NewAssociateReportViolationsNoContent

func NewAssociateReportViolationsNoContent() *AssociateReportViolationsNoContent

NewAssociateReportViolationsNoContent creates AssociateReportViolationsNoContent with default headers values

func (*AssociateReportViolationsNoContent) WriteResponse

WriteResponse to the client

type AssociateReportViolationsNotFound

type AssociateReportViolationsNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

AssociateReportViolationsNotFound The requested resource wasn't found

swagger:response associateReportViolationsNotFound

func NewAssociateReportViolationsNotFound

func NewAssociateReportViolationsNotFound() *AssociateReportViolationsNotFound

NewAssociateReportViolationsNotFound creates AssociateReportViolationsNotFound with default headers values

func (*AssociateReportViolationsNotFound) SetPayload

func (o *AssociateReportViolationsNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the associate report violations not found response

func (*AssociateReportViolationsNotFound) WithPayload

WithPayload adds the payload to the associate report violations not found response

func (*AssociateReportViolationsNotFound) WriteResponse

func (o *AssociateReportViolationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssociateReportViolationsParams

type AssociateReportViolationsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body *ghcmessages.AssociateReportViolations
	/*the evaluation report ID that has associated violations
	  Required: true
	  In: path
	*/
	ReportID strfmt.UUID
}

AssociateReportViolationsParams contains all the bound params for the associate report violations operation typically these are obtained from a http.Request

swagger:parameters associateReportViolations

func NewAssociateReportViolationsParams

func NewAssociateReportViolationsParams() AssociateReportViolationsParams

NewAssociateReportViolationsParams creates a new AssociateReportViolationsParams object

There are no default values defined in the spec.

func (*AssociateReportViolationsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewAssociateReportViolationsParams() beforehand.

type AssociateReportViolationsURL

type AssociateReportViolationsURL struct {
	ReportID strfmt.UUID
	// contains filtered or unexported fields
}

AssociateReportViolationsURL generates an URL for the associate report violations operation

func (*AssociateReportViolationsURL) Build

func (o *AssociateReportViolationsURL) Build() (*url.URL, error)

Build a url path and query string

func (*AssociateReportViolationsURL) BuildFull

func (o *AssociateReportViolationsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AssociateReportViolationsURL) Must

func (o *AssociateReportViolationsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AssociateReportViolationsURL) SetBasePath

func (o *AssociateReportViolationsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*AssociateReportViolationsURL) String

String returns the string representation of the path with query string

func (*AssociateReportViolationsURL) StringFull

func (o *AssociateReportViolationsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AssociateReportViolationsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type AssociateReportViolationsUnprocessableEntity

type AssociateReportViolationsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

AssociateReportViolationsUnprocessableEntity The payload was unprocessable.

swagger:response associateReportViolationsUnprocessableEntity

func NewAssociateReportViolationsUnprocessableEntity

func NewAssociateReportViolationsUnprocessableEntity() *AssociateReportViolationsUnprocessableEntity

NewAssociateReportViolationsUnprocessableEntity creates AssociateReportViolationsUnprocessableEntity with default headers values

func (*AssociateReportViolationsUnprocessableEntity) SetPayload

SetPayload sets the payload to the associate report violations unprocessable entity response

func (*AssociateReportViolationsUnprocessableEntity) WithPayload

WithPayload adds the payload to the associate report violations unprocessable entity response

func (*AssociateReportViolationsUnprocessableEntity) WriteResponse

WriteResponse to the client

type GetReportViolationsByReportID

type GetReportViolationsByReportID struct {
	Context *middleware.Context
	Handler GetReportViolationsByReportIDHandler
}
GetReportViolationsByReportID swagger:route GET /report-violations/{reportID} reportViolations getReportViolationsByReportId

Fetch the report violations for an evaluation report

Fetch the report violations for an evaluation report

func NewGetReportViolationsByReportID

func NewGetReportViolationsByReportID(ctx *middleware.Context, handler GetReportViolationsByReportIDHandler) *GetReportViolationsByReportID

NewGetReportViolationsByReportID creates a new http.Handler for the get report violations by report ID operation

func (*GetReportViolationsByReportID) ServeHTTP

type GetReportViolationsByReportIDBadRequest

type GetReportViolationsByReportIDBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetReportViolationsByReportIDBadRequest The request payload is invalid

swagger:response getReportViolationsByReportIdBadRequest

func NewGetReportViolationsByReportIDBadRequest

func NewGetReportViolationsByReportIDBadRequest() *GetReportViolationsByReportIDBadRequest

NewGetReportViolationsByReportIDBadRequest creates GetReportViolationsByReportIDBadRequest with default headers values

func (*GetReportViolationsByReportIDBadRequest) SetPayload

SetPayload sets the payload to the get report violations by report Id bad request response

func (*GetReportViolationsByReportIDBadRequest) WithPayload

WithPayload adds the payload to the get report violations by report Id bad request response

func (*GetReportViolationsByReportIDBadRequest) WriteResponse

WriteResponse to the client

type GetReportViolationsByReportIDForbidden

type GetReportViolationsByReportIDForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetReportViolationsByReportIDForbidden The request was denied

swagger:response getReportViolationsByReportIdForbidden

func NewGetReportViolationsByReportIDForbidden

func NewGetReportViolationsByReportIDForbidden() *GetReportViolationsByReportIDForbidden

NewGetReportViolationsByReportIDForbidden creates GetReportViolationsByReportIDForbidden with default headers values

func (*GetReportViolationsByReportIDForbidden) SetPayload

SetPayload sets the payload to the get report violations by report Id forbidden response

func (*GetReportViolationsByReportIDForbidden) WithPayload

WithPayload adds the payload to the get report violations by report Id forbidden response

func (*GetReportViolationsByReportIDForbidden) WriteResponse

WriteResponse to the client

type GetReportViolationsByReportIDHandler

type GetReportViolationsByReportIDHandler interface {
	Handle(GetReportViolationsByReportIDParams) middleware.Responder
}

GetReportViolationsByReportIDHandler interface for that can handle valid get report violations by report ID params

type GetReportViolationsByReportIDHandlerFunc

type GetReportViolationsByReportIDHandlerFunc func(GetReportViolationsByReportIDParams) middleware.Responder

GetReportViolationsByReportIDHandlerFunc turns a function with the right signature into a get report violations by report ID handler

func (GetReportViolationsByReportIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetReportViolationsByReportIDInternalServerError

type GetReportViolationsByReportIDInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetReportViolationsByReportIDInternalServerError A server error occurred

swagger:response getReportViolationsByReportIdInternalServerError

func NewGetReportViolationsByReportIDInternalServerError

func NewGetReportViolationsByReportIDInternalServerError() *GetReportViolationsByReportIDInternalServerError

NewGetReportViolationsByReportIDInternalServerError creates GetReportViolationsByReportIDInternalServerError with default headers values

func (*GetReportViolationsByReportIDInternalServerError) SetPayload

SetPayload sets the payload to the get report violations by report Id internal server error response

func (*GetReportViolationsByReportIDInternalServerError) WithPayload

WithPayload adds the payload to the get report violations by report Id internal server error response

func (*GetReportViolationsByReportIDInternalServerError) WriteResponse

WriteResponse to the client

type GetReportViolationsByReportIDNotFound

type GetReportViolationsByReportIDNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetReportViolationsByReportIDNotFound The requested resource wasn't found

swagger:response getReportViolationsByReportIdNotFound

func NewGetReportViolationsByReportIDNotFound

func NewGetReportViolationsByReportIDNotFound() *GetReportViolationsByReportIDNotFound

NewGetReportViolationsByReportIDNotFound creates GetReportViolationsByReportIDNotFound with default headers values

func (*GetReportViolationsByReportIDNotFound) SetPayload

SetPayload sets the payload to the get report violations by report Id not found response

func (*GetReportViolationsByReportIDNotFound) WithPayload

WithPayload adds the payload to the get report violations by report Id not found response

func (*GetReportViolationsByReportIDNotFound) WriteResponse

WriteResponse to the client

type GetReportViolationsByReportIDOK

type GetReportViolationsByReportIDOK struct {

	/*
	  In: Body
	*/
	Payload ghcmessages.ReportViolations `json:"body,omitempty"`
}

GetReportViolationsByReportIDOK Successfully retrieved the report violations

swagger:response getReportViolationsByReportIdOK

func NewGetReportViolationsByReportIDOK

func NewGetReportViolationsByReportIDOK() *GetReportViolationsByReportIDOK

NewGetReportViolationsByReportIDOK creates GetReportViolationsByReportIDOK with default headers values

func (*GetReportViolationsByReportIDOK) SetPayload

SetPayload sets the payload to the get report violations by report Id o k response

func (*GetReportViolationsByReportIDOK) WithPayload

WithPayload adds the payload to the get report violations by report Id o k response

func (*GetReportViolationsByReportIDOK) WriteResponse

func (o *GetReportViolationsByReportIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetReportViolationsByReportIDParams

type GetReportViolationsByReportIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*the evaluation report ID that has associated violations
	  Required: true
	  In: path
	*/
	ReportID strfmt.UUID
}

GetReportViolationsByReportIDParams contains all the bound params for the get report violations by report ID operation typically these are obtained from a http.Request

swagger:parameters getReportViolationsByReportID

func NewGetReportViolationsByReportIDParams

func NewGetReportViolationsByReportIDParams() GetReportViolationsByReportIDParams

NewGetReportViolationsByReportIDParams creates a new GetReportViolationsByReportIDParams object

There are no default values defined in the spec.

func (*GetReportViolationsByReportIDParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetReportViolationsByReportIDParams() beforehand.

type GetReportViolationsByReportIDURL

type GetReportViolationsByReportIDURL struct {
	ReportID strfmt.UUID
	// contains filtered or unexported fields
}

GetReportViolationsByReportIDURL generates an URL for the get report violations by report ID operation

func (*GetReportViolationsByReportIDURL) Build

Build a url path and query string

func (*GetReportViolationsByReportIDURL) BuildFull

func (o *GetReportViolationsByReportIDURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetReportViolationsByReportIDURL) Must

Must is a helper function to panic when the url builder returns an error

func (*GetReportViolationsByReportIDURL) SetBasePath

func (o *GetReportViolationsByReportIDURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetReportViolationsByReportIDURL) String

String returns the string representation of the path with query string

func (*GetReportViolationsByReportIDURL) StringFull

func (o *GetReportViolationsByReportIDURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetReportViolationsByReportIDURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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