Documentation ¶
Index ¶
- Constants
- type GetProvider
- type GetProviderBadRequest
- type GetProviderHandler
- type GetProviderHandlerFunc
- type GetProviderInternalServerError
- type GetProviderOK
- type GetProviderParams
- type GetProviderURL
- func (o *GetProviderURL) Build() (*url.URL, error)
- func (o *GetProviderURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProviderURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProviderURL) SetBasePath(bp string)
- func (o *GetProviderURL) String() string
- func (o *GetProviderURL) StringFull(scheme, host string) string
- func (o *GetProviderURL) WithBasePath(bp string) *GetProviderURL
Constants ¶
const GetProviderBadRequestCode int = 400
GetProviderBadRequestCode is the HTTP code returned for type GetProviderBadRequest
const GetProviderInternalServerErrorCode int = 500
GetProviderInternalServerErrorCode is the HTTP code returned for type GetProviderInternalServerError
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 ¶
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 ¶
func (fn GetProviderHandlerFunc) Handle(params GetProviderParams) middleware.Responder
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 ¶
func (o *GetProviderInternalServerError) WithPayload(payload *models.Error) *GetProviderInternalServerError
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 ¶
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 ¶
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