provider

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetProviderBadRequestCode int = 400

GetProviderBadRequestCode is the HTTP code returned for type GetProviderBadRequest

View Source
const GetProviderInternalServerErrorCode int = 500

GetProviderInternalServerErrorCode is the HTTP code returned for type GetProviderInternalServerError

View Source
const GetProviderOKCode int = 200

GetProviderOKCode is the HTTP code returned for type GetProviderOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetProvider

type GetProvider struct {
	Context *middleware.Context
	Handler GetProviderHandler
}

GetProvider swagger:route GET /api/providers provider getProvider

Get infrastructure provider given by the user via cli

func NewGetProvider

func NewGetProvider(ctx *middleware.Context, handler GetProviderHandler) *GetProvider

NewGetProvider creates a new http.Handler for the get provider operation

func (*GetProvider) ServeHTTP

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

type GetProviderBadRequest

type GetProviderBadRequest struct {

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

GetProviderBadRequest Bad request

swagger:response getProviderBadRequest

func NewGetProviderBadRequest

func NewGetProviderBadRequest() *GetProviderBadRequest

NewGetProviderBadRequest creates GetProviderBadRequest with default headers values

func (*GetProviderBadRequest) SetPayload

func (o *GetProviderBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get provider bad request response

func (*GetProviderBadRequest) WithPayload

func (o *GetProviderBadRequest) WithPayload(payload *models.Error) *GetProviderBadRequest

WithPayload adds the payload to the get provider bad request response

func (*GetProviderBadRequest) WriteResponse

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

WriteResponse to the client

type GetProviderHandler

type GetProviderHandler interface {
	Handle(GetProviderParams) middleware.Responder
}

GetProviderHandler interface for that can handle valid get provider params

type GetProviderHandlerFunc

type GetProviderHandlerFunc func(GetProviderParams) middleware.Responder

GetProviderHandlerFunc turns a function with the right signature into a get provider handler

func (GetProviderHandlerFunc) Handle

Handle executing the request and returning a response

type GetProviderInternalServerError

type GetProviderInternalServerError struct {

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

GetProviderInternalServerError Internal server error

swagger:response getProviderInternalServerError

func NewGetProviderInternalServerError

func NewGetProviderInternalServerError() *GetProviderInternalServerError

NewGetProviderInternalServerError creates GetProviderInternalServerError with default headers values

func (*GetProviderInternalServerError) SetPayload

func (o *GetProviderInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get provider internal server error response

func (*GetProviderInternalServerError) WithPayload

WithPayload adds the payload to the get provider internal server error response

func (*GetProviderInternalServerError) WriteResponse

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

WriteResponse to the client

type GetProviderOK

type GetProviderOK struct {

	/*
	  In: Body
	*/
	Payload *models.ProviderInfo `json:"body,omitempty"`
}

GetProviderOK Successful operation

swagger:response getProviderOK

func NewGetProviderOK

func NewGetProviderOK() *GetProviderOK

NewGetProviderOK creates GetProviderOK with default headers values

func (*GetProviderOK) SetPayload

func (o *GetProviderOK) SetPayload(payload *models.ProviderInfo)

SetPayload sets the payload to the get provider o k response

func (*GetProviderOK) WithPayload

func (o *GetProviderOK) WithPayload(payload *models.ProviderInfo) *GetProviderOK

WithPayload adds the payload to the get provider o k response

func (*GetProviderOK) WriteResponse

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

WriteResponse to the client

type GetProviderParams

type GetProviderParams struct {

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

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

swagger:parameters getProvider

func NewGetProviderParams

func NewGetProviderParams() GetProviderParams

NewGetProviderParams creates a new GetProviderParams object no default values defined in spec.

func (*GetProviderParams) BindRequest

func (o *GetProviderParams) 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 NewGetProviderParams() beforehand.

type GetProviderURL

type GetProviderURL struct {
	// contains filtered or unexported fields
}

GetProviderURL generates an URL for the get provider operation

func (*GetProviderURL) Build

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

Build a url path and query string

func (*GetProviderURL) BuildFull

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

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

func (*GetProviderURL) Must

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

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

func (*GetProviderURL) SetBasePath

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

func (o *GetProviderURL) String() string

String returns the string representation of the path with query string

func (*GetProviderURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProviderURL) WithBasePath

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

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