Documentation
¶
Index ¶
- Constants
- type TacValidation
- type TacValidationBadRequest
- type TacValidationForbidden
- type TacValidationHandler
- type TacValidationHandlerFunc
- type TacValidationInternalServerError
- func (o *TacValidationInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *TacValidationInternalServerError) WithPayload(payload *ghcmessages.Error) *TacValidationInternalServerError
- func (o *TacValidationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type TacValidationNotFound
- type TacValidationOK
- type TacValidationParams
- type TacValidationURL
- func (o *TacValidationURL) Build() (*url.URL, error)
- func (o *TacValidationURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TacValidationURL) Must(u *url.URL, err error) *url.URL
- func (o *TacValidationURL) SetBasePath(bp string)
- func (o *TacValidationURL) String() string
- func (o *TacValidationURL) StringFull(scheme, host string) string
- func (o *TacValidationURL) WithBasePath(bp string) *TacValidationURL
- type TacValidationUnauthorized
Constants ¶
const TacValidationBadRequestCode int = 400
TacValidationBadRequestCode is the HTTP code returned for type TacValidationBadRequest
const TacValidationForbiddenCode int = 403
TacValidationForbiddenCode is the HTTP code returned for type TacValidationForbidden
const TacValidationInternalServerErrorCode int = 500
TacValidationInternalServerErrorCode is the HTTP code returned for type TacValidationInternalServerError
const TacValidationNotFoundCode int = 404
TacValidationNotFoundCode is the HTTP code returned for type TacValidationNotFound
const TacValidationOKCode int = 200
TacValidationOKCode is the HTTP code returned for type TacValidationOK
TacValidationUnauthorizedCode is the HTTP code returned for type TacValidationUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TacValidation ¶
type TacValidation struct { Context *middleware.Context Handler TacValidationHandler }
TacValidation swagger:route GET /tac/valid tac order tacValidation
Validation of a TAC value ¶
Returns a boolean based on whether a tac value is valid or not
func NewTacValidation ¶
func NewTacValidation(ctx *middleware.Context, handler TacValidationHandler) *TacValidation
NewTacValidation creates a new http.Handler for the tac validation operation
func (*TacValidation) ServeHTTP ¶
func (o *TacValidation) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TacValidationBadRequest ¶
type TacValidationBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
TacValidationBadRequest The request payload is invalid
swagger:response tacValidationBadRequest
func NewTacValidationBadRequest ¶
func NewTacValidationBadRequest() *TacValidationBadRequest
NewTacValidationBadRequest creates TacValidationBadRequest with default headers values
func (*TacValidationBadRequest) SetPayload ¶
func (o *TacValidationBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the tac validation bad request response
func (*TacValidationBadRequest) WithPayload ¶
func (o *TacValidationBadRequest) WithPayload(payload *ghcmessages.Error) *TacValidationBadRequest
WithPayload adds the payload to the tac validation bad request response
func (*TacValidationBadRequest) WriteResponse ¶
func (o *TacValidationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacValidationForbidden ¶
type TacValidationForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
TacValidationForbidden The request was denied
swagger:response tacValidationForbidden
func NewTacValidationForbidden ¶
func NewTacValidationForbidden() *TacValidationForbidden
NewTacValidationForbidden creates TacValidationForbidden with default headers values
func (*TacValidationForbidden) SetPayload ¶
func (o *TacValidationForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the tac validation forbidden response
func (*TacValidationForbidden) WithPayload ¶
func (o *TacValidationForbidden) WithPayload(payload *ghcmessages.Error) *TacValidationForbidden
WithPayload adds the payload to the tac validation forbidden response
func (*TacValidationForbidden) WriteResponse ¶
func (o *TacValidationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacValidationHandler ¶
type TacValidationHandler interface {
Handle(TacValidationParams) middleware.Responder
}
TacValidationHandler interface for that can handle valid tac validation params
type TacValidationHandlerFunc ¶
type TacValidationHandlerFunc func(TacValidationParams) middleware.Responder
TacValidationHandlerFunc turns a function with the right signature into a tac validation handler
func (TacValidationHandlerFunc) Handle ¶
func (fn TacValidationHandlerFunc) Handle(params TacValidationParams) middleware.Responder
Handle executing the request and returning a response
type TacValidationInternalServerError ¶
type TacValidationInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
TacValidationInternalServerError A server error occurred
swagger:response tacValidationInternalServerError
func NewTacValidationInternalServerError ¶
func NewTacValidationInternalServerError() *TacValidationInternalServerError
NewTacValidationInternalServerError creates TacValidationInternalServerError with default headers values
func (*TacValidationInternalServerError) SetPayload ¶
func (o *TacValidationInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the tac validation internal server error response
func (*TacValidationInternalServerError) WithPayload ¶
func (o *TacValidationInternalServerError) WithPayload(payload *ghcmessages.Error) *TacValidationInternalServerError
WithPayload adds the payload to the tac validation internal server error response
func (*TacValidationInternalServerError) WriteResponse ¶
func (o *TacValidationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacValidationNotFound ¶
type TacValidationNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
TacValidationNotFound The requested resource wasn't found
swagger:response tacValidationNotFound
func NewTacValidationNotFound ¶
func NewTacValidationNotFound() *TacValidationNotFound
NewTacValidationNotFound creates TacValidationNotFound with default headers values
func (*TacValidationNotFound) SetPayload ¶
func (o *TacValidationNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the tac validation not found response
func (*TacValidationNotFound) WithPayload ¶
func (o *TacValidationNotFound) WithPayload(payload *ghcmessages.Error) *TacValidationNotFound
WithPayload adds the payload to the tac validation not found response
func (*TacValidationNotFound) WriteResponse ¶
func (o *TacValidationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacValidationOK ¶
type TacValidationOK struct { /* In: Body */ Payload *ghcmessages.TacValid `json:"body,omitempty"` }
TacValidationOK Successfully retrieved validation status
swagger:response tacValidationOK
func NewTacValidationOK ¶
func NewTacValidationOK() *TacValidationOK
NewTacValidationOK creates TacValidationOK with default headers values
func (*TacValidationOK) SetPayload ¶
func (o *TacValidationOK) SetPayload(payload *ghcmessages.TacValid)
SetPayload sets the payload to the tac validation o k response
func (*TacValidationOK) WithPayload ¶
func (o *TacValidationOK) WithPayload(payload *ghcmessages.TacValid) *TacValidationOK
WithPayload adds the payload to the tac validation o k response
func (*TacValidationOK) WriteResponse ¶
func (o *TacValidationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacValidationParams ¶
type TacValidationParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The tac value to validate Required: true In: query */ Tac string }
TacValidationParams contains all the bound params for the tac validation operation typically these are obtained from a http.Request
swagger:parameters tacValidation
func NewTacValidationParams ¶
func NewTacValidationParams() TacValidationParams
NewTacValidationParams creates a new TacValidationParams object
There are no default values defined in the spec.
func (*TacValidationParams) BindRequest ¶
func (o *TacValidationParams) 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 NewTacValidationParams() beforehand.
type TacValidationURL ¶
type TacValidationURL struct { Tac string // contains filtered or unexported fields }
TacValidationURL generates an URL for the tac validation operation
func (*TacValidationURL) Build ¶
func (o *TacValidationURL) Build() (*url.URL, error)
Build a url path and query string
func (*TacValidationURL) BuildFull ¶
func (o *TacValidationURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TacValidationURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TacValidationURL) SetBasePath ¶
func (o *TacValidationURL) 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 (*TacValidationURL) String ¶
func (o *TacValidationURL) String() string
String returns the string representation of the path with query string
func (*TacValidationURL) StringFull ¶
func (o *TacValidationURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TacValidationURL) WithBasePath ¶
func (o *TacValidationURL) WithBasePath(bp string) *TacValidationURL
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 TacValidationUnauthorized ¶
type TacValidationUnauthorized struct { ghcmessages.Error `json:"body,omitempty"` }Payload *
TacValidationUnauthorized The request was denied
swagger:response tacValidationUnauthorized
func NewTacValidationUnauthorized ¶
func NewTacValidationUnauthorized() *TacValidationUnauthorized
NewTacValidationUnauthorized creates TacValidationUnauthorized with default headers values
func (*TacValidationUnauthorized) SetPayload ¶
func (o *TacValidationUnauthorized) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the tac validation unauthorized response
func (*TacValidationUnauthorized) WithPayload ¶
func (o *TacValidationUnauthorized) WithPayload(payload *ghcmessages.Error) *TacValidationUnauthorized
WithPayload adds the payload to the tac validation unauthorized response
func (*TacValidationUnauthorized) WriteResponse ¶
func (o *TacValidationUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client