tac

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TacValidationBadRequestCode int = 400

TacValidationBadRequestCode is the HTTP code returned for type TacValidationBadRequest

View Source
const TacValidationForbiddenCode int = 403

TacValidationForbiddenCode is the HTTP code returned for type TacValidationForbidden

View Source
const TacValidationInternalServerErrorCode int = 500

TacValidationInternalServerErrorCode is the HTTP code returned for type TacValidationInternalServerError

View Source
const TacValidationNotFoundCode int = 404

TacValidationNotFoundCode is the HTTP code returned for type TacValidationNotFound

View Source
const TacValidationOKCode int = 200

TacValidationOKCode is the HTTP code returned for type TacValidationOK

View Source
const TacValidationUnauthorizedCode int = 401

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

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

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

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

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

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

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

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 {

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

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

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

Jump to

Keyboard shortcuts

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