Documentation ¶
Index ¶
- Constants
- type GetPWSViolations
- type GetPWSViolationsBadRequest
- type GetPWSViolationsForbidden
- type GetPWSViolationsHandler
- type GetPWSViolationsHandlerFunc
- type GetPWSViolationsInternalServerError
- func (o *GetPWSViolationsInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *GetPWSViolationsInternalServerError) WithPayload(payload *ghcmessages.Error) *GetPWSViolationsInternalServerError
- func (o *GetPWSViolationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPWSViolationsNotFound
- type GetPWSViolationsOK
- type GetPWSViolationsParams
- type GetPWSViolationsURL
- func (o *GetPWSViolationsURL) Build() (*url.URL, error)
- func (o *GetPWSViolationsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPWSViolationsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPWSViolationsURL) SetBasePath(bp string)
- func (o *GetPWSViolationsURL) String() string
- func (o *GetPWSViolationsURL) StringFull(scheme, host string) string
- func (o *GetPWSViolationsURL) WithBasePath(bp string) *GetPWSViolationsURL
Constants ¶
const GetPWSViolationsBadRequestCode int = 400
GetPWSViolationsBadRequestCode is the HTTP code returned for type GetPWSViolationsBadRequest
const GetPWSViolationsForbiddenCode int = 403
GetPWSViolationsForbiddenCode is the HTTP code returned for type GetPWSViolationsForbidden
const GetPWSViolationsInternalServerErrorCode int = 500
GetPWSViolationsInternalServerErrorCode is the HTTP code returned for type GetPWSViolationsInternalServerError
const GetPWSViolationsNotFoundCode int = 404
GetPWSViolationsNotFoundCode is the HTTP code returned for type GetPWSViolationsNotFound
const GetPWSViolationsOKCode int = 200
GetPWSViolationsOKCode is the HTTP code returned for type GetPWSViolationsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPWSViolations ¶
type GetPWSViolations struct { Context *middleware.Context Handler GetPWSViolationsHandler }
GetPWSViolations swagger:route GET /pws-violations pwsViolations getPWSViolations
Fetch the possible PWS violations for an evaluation report ¶
Fetch the possible PWS violations for an evaluation report
func NewGetPWSViolations ¶
func NewGetPWSViolations(ctx *middleware.Context, handler GetPWSViolationsHandler) *GetPWSViolations
NewGetPWSViolations creates a new http.Handler for the get p w s violations operation
func (*GetPWSViolations) ServeHTTP ¶
func (o *GetPWSViolations) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetPWSViolationsBadRequest ¶
type GetPWSViolationsBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetPWSViolationsBadRequest The request payload is invalid
swagger:response getPWSViolationsBadRequest
func NewGetPWSViolationsBadRequest ¶
func NewGetPWSViolationsBadRequest() *GetPWSViolationsBadRequest
NewGetPWSViolationsBadRequest creates GetPWSViolationsBadRequest with default headers values
func (*GetPWSViolationsBadRequest) SetPayload ¶
func (o *GetPWSViolationsBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get p w s violations bad request response
func (*GetPWSViolationsBadRequest) WithPayload ¶
func (o *GetPWSViolationsBadRequest) WithPayload(payload *ghcmessages.Error) *GetPWSViolationsBadRequest
WithPayload adds the payload to the get p w s violations bad request response
func (*GetPWSViolationsBadRequest) WriteResponse ¶
func (o *GetPWSViolationsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPWSViolationsForbidden ¶
type GetPWSViolationsForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetPWSViolationsForbidden The request was denied
swagger:response getPWSViolationsForbidden
func NewGetPWSViolationsForbidden ¶
func NewGetPWSViolationsForbidden() *GetPWSViolationsForbidden
NewGetPWSViolationsForbidden creates GetPWSViolationsForbidden with default headers values
func (*GetPWSViolationsForbidden) SetPayload ¶
func (o *GetPWSViolationsForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get p w s violations forbidden response
func (*GetPWSViolationsForbidden) WithPayload ¶
func (o *GetPWSViolationsForbidden) WithPayload(payload *ghcmessages.Error) *GetPWSViolationsForbidden
WithPayload adds the payload to the get p w s violations forbidden response
func (*GetPWSViolationsForbidden) WriteResponse ¶
func (o *GetPWSViolationsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPWSViolationsHandler ¶
type GetPWSViolationsHandler interface {
Handle(GetPWSViolationsParams) middleware.Responder
}
GetPWSViolationsHandler interface for that can handle valid get p w s violations params
type GetPWSViolationsHandlerFunc ¶
type GetPWSViolationsHandlerFunc func(GetPWSViolationsParams) middleware.Responder
GetPWSViolationsHandlerFunc turns a function with the right signature into a get p w s violations handler
func (GetPWSViolationsHandlerFunc) Handle ¶
func (fn GetPWSViolationsHandlerFunc) Handle(params GetPWSViolationsParams) middleware.Responder
Handle executing the request and returning a response
type GetPWSViolationsInternalServerError ¶
type GetPWSViolationsInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetPWSViolationsInternalServerError A server error occurred
swagger:response getPWSViolationsInternalServerError
func NewGetPWSViolationsInternalServerError ¶
func NewGetPWSViolationsInternalServerError() *GetPWSViolationsInternalServerError
NewGetPWSViolationsInternalServerError creates GetPWSViolationsInternalServerError with default headers values
func (*GetPWSViolationsInternalServerError) SetPayload ¶
func (o *GetPWSViolationsInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get p w s violations internal server error response
func (*GetPWSViolationsInternalServerError) WithPayload ¶
func (o *GetPWSViolationsInternalServerError) WithPayload(payload *ghcmessages.Error) *GetPWSViolationsInternalServerError
WithPayload adds the payload to the get p w s violations internal server error response
func (*GetPWSViolationsInternalServerError) WriteResponse ¶
func (o *GetPWSViolationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPWSViolationsNotFound ¶
type GetPWSViolationsNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetPWSViolationsNotFound The requested resource wasn't found
swagger:response getPWSViolationsNotFound
func NewGetPWSViolationsNotFound ¶
func NewGetPWSViolationsNotFound() *GetPWSViolationsNotFound
NewGetPWSViolationsNotFound creates GetPWSViolationsNotFound with default headers values
func (*GetPWSViolationsNotFound) SetPayload ¶
func (o *GetPWSViolationsNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get p w s violations not found response
func (*GetPWSViolationsNotFound) WithPayload ¶
func (o *GetPWSViolationsNotFound) WithPayload(payload *ghcmessages.Error) *GetPWSViolationsNotFound
WithPayload adds the payload to the get p w s violations not found response
func (*GetPWSViolationsNotFound) WriteResponse ¶
func (o *GetPWSViolationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPWSViolationsOK ¶
type GetPWSViolationsOK struct { /* In: Body */ Payload ghcmessages.PWSViolations `json:"body,omitempty"` }
GetPWSViolationsOK Successfully retrieved the PWS violations
swagger:response getPWSViolationsOK
func NewGetPWSViolationsOK ¶
func NewGetPWSViolationsOK() *GetPWSViolationsOK
NewGetPWSViolationsOK creates GetPWSViolationsOK with default headers values
func (*GetPWSViolationsOK) SetPayload ¶
func (o *GetPWSViolationsOK) SetPayload(payload ghcmessages.PWSViolations)
SetPayload sets the payload to the get p w s violations o k response
func (*GetPWSViolationsOK) WithPayload ¶
func (o *GetPWSViolationsOK) WithPayload(payload ghcmessages.PWSViolations) *GetPWSViolationsOK
WithPayload adds the payload to the get p w s violations o k response
func (*GetPWSViolationsOK) WriteResponse ¶
func (o *GetPWSViolationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPWSViolationsParams ¶
GetPWSViolationsParams contains all the bound params for the get p w s violations operation typically these are obtained from a http.Request
swagger:parameters getPWSViolations
func NewGetPWSViolationsParams ¶
func NewGetPWSViolationsParams() GetPWSViolationsParams
NewGetPWSViolationsParams creates a new GetPWSViolationsParams object
There are no default values defined in the spec.
func (*GetPWSViolationsParams) BindRequest ¶
func (o *GetPWSViolationsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
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 NewGetPWSViolationsParams() beforehand.
type GetPWSViolationsURL ¶
type GetPWSViolationsURL struct {
// contains filtered or unexported fields
}
GetPWSViolationsURL generates an URL for the get p w s violations operation
func (*GetPWSViolationsURL) Build ¶
func (o *GetPWSViolationsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPWSViolationsURL) BuildFull ¶
func (o *GetPWSViolationsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPWSViolationsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPWSViolationsURL) SetBasePath ¶
func (o *GetPWSViolationsURL) 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 (*GetPWSViolationsURL) String ¶
func (o *GetPWSViolationsURL) String() string
String returns the string representation of the path with query string
func (*GetPWSViolationsURL) StringFull ¶
func (o *GetPWSViolationsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPWSViolationsURL) WithBasePath ¶
func (o *GetPWSViolationsURL) WithBasePath(bp string) *GetPWSViolationsURL
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