application_parameters

package
v0.0.0-...-bc01b9c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetParamBadRequestCode int = 400

GetParamBadRequestCode is the HTTP code returned for type GetParamBadRequest

View Source
const GetParamInternalServerErrorCode int = 500

GetParamInternalServerErrorCode is the HTTP code returned for type GetParamInternalServerError

View Source
const GetParamOKCode int = 200

GetParamOKCode is the HTTP code returned for type GetParamOK

View Source
const GetParamUnauthorizedCode int = 401

GetParamUnauthorizedCode is the HTTP code returned for type GetParamUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetParam

type GetParam struct {
	Context *middleware.Context
	Handler GetParamHandler
}
GetParam swagger:route GET /application_parameters/{parameterName} application_parameters getParam

Searches for an application parameter by name, returns nil if not found

Searches for an application parameter by name, returns nil if not found

func NewGetParam

func NewGetParam(ctx *middleware.Context, handler GetParamHandler) *GetParam

NewGetParam creates a new http.Handler for the get param operation

func (*GetParam) ServeHTTP

func (o *GetParam) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetParamBadRequest

type GetParamBadRequest struct {
}

GetParamBadRequest invalid request

swagger:response getParamBadRequest

func NewGetParamBadRequest

func NewGetParamBadRequest() *GetParamBadRequest

NewGetParamBadRequest creates GetParamBadRequest with default headers values

func (*GetParamBadRequest) WriteResponse

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

WriteResponse to the client

type GetParamHandler

type GetParamHandler interface {
	Handle(GetParamParams) middleware.Responder
}

GetParamHandler interface for that can handle valid get param params

type GetParamHandlerFunc

type GetParamHandlerFunc func(GetParamParams) middleware.Responder

GetParamHandlerFunc turns a function with the right signature into a get param handler

func (GetParamHandlerFunc) Handle

Handle executing the request and returning a response

type GetParamInternalServerError

type GetParamInternalServerError struct {
}

GetParamInternalServerError server error

swagger:response getParamInternalServerError

func NewGetParamInternalServerError

func NewGetParamInternalServerError() *GetParamInternalServerError

NewGetParamInternalServerError creates GetParamInternalServerError with default headers values

func (*GetParamInternalServerError) WriteResponse

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

WriteResponse to the client

type GetParamOK

type GetParamOK struct {

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

GetParamOK Application Parameters

swagger:response getParamOK

func NewGetParamOK

func NewGetParamOK() *GetParamOK

NewGetParamOK creates GetParamOK with default headers values

func (*GetParamOK) SetPayload

func (o *GetParamOK) SetPayload(payload *ghcmessages.ApplicationParameters)

SetPayload sets the payload to the get param o k response

func (*GetParamOK) WithPayload

func (o *GetParamOK) WithPayload(payload *ghcmessages.ApplicationParameters) *GetParamOK

WithPayload adds the payload to the get param o k response

func (*GetParamOK) WriteResponse

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

WriteResponse to the client

type GetParamParams

type GetParamParams struct {

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

	/*Parameter Name
	  Required: true
	  In: path
	*/
	ParameterName string
}

GetParamParams contains all the bound params for the get param operation typically these are obtained from a http.Request

swagger:parameters getParam

func NewGetParamParams

func NewGetParamParams() GetParamParams

NewGetParamParams creates a new GetParamParams object

There are no default values defined in the spec.

func (*GetParamParams) BindRequest

func (o *GetParamParams) 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 NewGetParamParams() beforehand.

type GetParamURL

type GetParamURL struct {
	ParameterName string
	// contains filtered or unexported fields
}

GetParamURL generates an URL for the get param operation

func (*GetParamURL) Build

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

Build a url path and query string

func (*GetParamURL) BuildFull

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

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

func (*GetParamURL) Must

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

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

func (*GetParamURL) SetBasePath

func (o *GetParamURL) 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 (*GetParamURL) String

func (o *GetParamURL) String() string

String returns the string representation of the path with query string

func (*GetParamURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetParamURL) WithBasePath

func (o *GetParamURL) WithBasePath(bp string) *GetParamURL

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 GetParamUnauthorized

type GetParamUnauthorized struct {
}

GetParamUnauthorized request requires user authentication

swagger:response getParamUnauthorized

func NewGetParamUnauthorized

func NewGetParamUnauthorized() *GetParamUnauthorized

NewGetParamUnauthorized creates GetParamUnauthorized with default headers values

func (*GetParamUnauthorized) WriteResponse

func (o *GetParamUnauthorized) 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