pws_violations

package
v0.0.0-...-418cb44 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetPWSViolationsBadRequestCode int = 400

GetPWSViolationsBadRequestCode is the HTTP code returned for type GetPWSViolationsBadRequest

View Source
const GetPWSViolationsForbiddenCode int = 403

GetPWSViolationsForbiddenCode is the HTTP code returned for type GetPWSViolationsForbidden

View Source
const GetPWSViolationsInternalServerErrorCode int = 500

GetPWSViolationsInternalServerErrorCode is the HTTP code returned for type GetPWSViolationsInternalServerError

View Source
const GetPWSViolationsNotFoundCode int = 404

GetPWSViolationsNotFoundCode is the HTTP code returned for type GetPWSViolationsNotFound

View Source
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

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

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

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

WithPayload adds the payload to the get p w s violations internal server error response

func (*GetPWSViolationsInternalServerError) WriteResponse

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

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

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

type GetPWSViolationsParams struct {

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

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

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

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

Jump to

Keyboard shortcuts

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