Documentation
¶
Index ¶
- Constants
- type AddAPI
- type AddAPIBadRequest
- type AddAPIConflict
- type AddAPIHandler
- type AddAPIHandlerFunc
- type AddAPIInternalServerError
- type AddAPIOK
- type AddAPIParams
- type AddAPIURL
- func (o *AddAPIURL) Build() (*url.URL, error)
- func (o *AddAPIURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddAPIURL) Must(u *url.URL, err error) *url.URL
- func (o *AddAPIURL) SetBasePath(bp string)
- func (o *AddAPIURL) String() string
- func (o *AddAPIURL) StringFull(scheme, host string) string
- func (o *AddAPIURL) WithBasePath(bp string) *AddAPIURL
- type AddAPIUnauthorized
- type DeleteAPI
- type DeleteAPIBadRequest
- type DeleteAPIHandler
- type DeleteAPIHandlerFunc
- type DeleteAPIInternalServerError
- type DeleteAPINotFound
- type DeleteAPIOK
- type DeleteAPIParams
- type DeleteAPIURL
- func (o *DeleteAPIURL) Build() (*url.URL, error)
- func (o *DeleteAPIURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAPIURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAPIURL) SetBasePath(bp string)
- func (o *DeleteAPIURL) String() string
- func (o *DeleteAPIURL) StringFull(scheme, host string) string
- func (o *DeleteAPIURL) WithBasePath(bp string) *DeleteAPIURL
- type GetAPI
- type GetAPIBadRequest
- type GetAPIHandler
- type GetAPIHandlerFunc
- type GetAPIInternalServerError
- type GetAPINotFound
- type GetAPIOK
- type GetAPIParams
- type GetAPIURL
- func (o *GetAPIURL) Build() (*url.URL, error)
- func (o *GetAPIURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAPIURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAPIURL) SetBasePath(bp string)
- func (o *GetAPIURL) String() string
- func (o *GetAPIURL) StringFull(scheme, host string) string
- func (o *GetAPIURL) WithBasePath(bp string) *GetAPIURL
- type GetApis
- type GetApisDefault
- func (o *GetApisDefault) SetPayload(payload *v1.Error)
- func (o *GetApisDefault) SetStatusCode(code int)
- func (o *GetApisDefault) WithPayload(payload *v1.Error) *GetApisDefault
- func (o *GetApisDefault) WithStatusCode(code int) *GetApisDefault
- func (o *GetApisDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetApisHandler
- type GetApisHandlerFunc
- type GetApisInternalServerError
- type GetApisOK
- type GetApisParams
- type GetApisURL
- func (o *GetApisURL) Build() (*url.URL, error)
- func (o *GetApisURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetApisURL) Must(u *url.URL, err error) *url.URL
- func (o *GetApisURL) SetBasePath(bp string)
- func (o *GetApisURL) String() string
- func (o *GetApisURL) StringFull(scheme, host string) string
- func (o *GetApisURL) WithBasePath(bp string) *GetApisURL
- type UpdateAPI
- type UpdateAPIBadRequest
- type UpdateAPIHandler
- type UpdateAPIHandlerFunc
- type UpdateAPIInternalServerError
- type UpdateAPINotFound
- type UpdateAPIOK
- type UpdateAPIParams
- type UpdateAPIURL
- func (o *UpdateAPIURL) Build() (*url.URL, error)
- func (o *UpdateAPIURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateAPIURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateAPIURL) SetBasePath(bp string)
- func (o *UpdateAPIURL) String() string
- func (o *UpdateAPIURL) StringFull(scheme, host string) string
- func (o *UpdateAPIURL) WithBasePath(bp string) *UpdateAPIURL
Constants ¶
const AddAPIBadRequestCode int = 400
AddAPIBadRequestCode is the HTTP code returned for type AddAPIBadRequest
const AddAPIConflictCode int = 409
AddAPIConflictCode is the HTTP code returned for type AddAPIConflict
const AddAPIInternalServerErrorCode int = 500
AddAPIInternalServerErrorCode is the HTTP code returned for type AddAPIInternalServerError
const AddAPIOKCode int = 200
AddAPIOKCode is the HTTP code returned for type AddAPIOK
AddAPIUnauthorizedCode is the HTTP code returned for type AddAPIUnauthorized
const DeleteAPIBadRequestCode int = 400
DeleteAPIBadRequestCode is the HTTP code returned for type DeleteAPIBadRequest
const DeleteAPIInternalServerErrorCode int = 500
DeleteAPIInternalServerErrorCode is the HTTP code returned for type DeleteAPIInternalServerError
const DeleteAPINotFoundCode int = 404
DeleteAPINotFoundCode is the HTTP code returned for type DeleteAPINotFound
const DeleteAPIOKCode int = 200
DeleteAPIOKCode is the HTTP code returned for type DeleteAPIOK
const GetAPIBadRequestCode int = 400
GetAPIBadRequestCode is the HTTP code returned for type GetAPIBadRequest
const GetAPIInternalServerErrorCode int = 500
GetAPIInternalServerErrorCode is the HTTP code returned for type GetAPIInternalServerError
const GetAPINotFoundCode int = 404
GetAPINotFoundCode is the HTTP code returned for type GetAPINotFound
const GetAPIOKCode int = 200
GetAPIOKCode is the HTTP code returned for type GetAPIOK
const GetApisInternalServerErrorCode int = 500
GetApisInternalServerErrorCode is the HTTP code returned for type GetApisInternalServerError
const GetApisOKCode int = 200
GetApisOKCode is the HTTP code returned for type GetApisOK
const UpdateAPIBadRequestCode int = 400
UpdateAPIBadRequestCode is the HTTP code returned for type UpdateAPIBadRequest
const UpdateAPIInternalServerErrorCode int = 500
UpdateAPIInternalServerErrorCode is the HTTP code returned for type UpdateAPIInternalServerError
const UpdateAPINotFoundCode int = 404
UpdateAPINotFoundCode is the HTTP code returned for type UpdateAPINotFound
const UpdateAPIOKCode int = 200
UpdateAPIOKCode is the HTTP code returned for type UpdateAPIOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAPI ¶
type AddAPI struct { Context *middleware.Context Handler AddAPIHandler }
AddAPI swagger:route POST / endpoint addApi
Add a new API
func NewAddAPI ¶
func NewAddAPI(ctx *middleware.Context, handler AddAPIHandler) *AddAPI
NewAddAPI creates a new http.Handler for the add API operation
type AddAPIBadRequest ¶
AddAPIBadRequest Invalid Input
swagger:response addApiBadRequest
func NewAddAPIBadRequest ¶
func NewAddAPIBadRequest() *AddAPIBadRequest
NewAddAPIBadRequest creates AddAPIBadRequest with default headers values
func (*AddAPIBadRequest) SetPayload ¶
func (o *AddAPIBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add Api bad request response
func (*AddAPIBadRequest) WithPayload ¶
func (o *AddAPIBadRequest) WithPayload(payload *v1.Error) *AddAPIBadRequest
WithPayload adds the payload to the add Api bad request response
func (*AddAPIBadRequest) WriteResponse ¶
func (o *AddAPIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAPIConflict ¶ added in v0.1.13
AddAPIConflict Already Exists
swagger:response addApiConflict
func NewAddAPIConflict ¶ added in v0.1.13
func NewAddAPIConflict() *AddAPIConflict
NewAddAPIConflict creates AddAPIConflict with default headers values
func (*AddAPIConflict) SetPayload ¶ added in v0.1.13
func (o *AddAPIConflict) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add Api conflict response
func (*AddAPIConflict) WithPayload ¶ added in v0.1.13
func (o *AddAPIConflict) WithPayload(payload *v1.Error) *AddAPIConflict
WithPayload adds the payload to the add Api conflict response
func (*AddAPIConflict) WriteResponse ¶ added in v0.1.13
func (o *AddAPIConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAPIHandler ¶
type AddAPIHandler interface {
Handle(AddAPIParams, interface{}) middleware.Responder
}
AddAPIHandler interface for that can handle valid add API params
type AddAPIHandlerFunc ¶
type AddAPIHandlerFunc func(AddAPIParams, interface{}) middleware.Responder
AddAPIHandlerFunc turns a function with the right signature into a add API handler
func (AddAPIHandlerFunc) Handle ¶
func (fn AddAPIHandlerFunc) Handle(params AddAPIParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddAPIInternalServerError ¶
AddAPIInternalServerError Internal Error
swagger:response addApiInternalServerError
func NewAddAPIInternalServerError ¶
func NewAddAPIInternalServerError() *AddAPIInternalServerError
NewAddAPIInternalServerError creates AddAPIInternalServerError with default headers values
func (*AddAPIInternalServerError) SetPayload ¶
func (o *AddAPIInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add Api internal server error response
func (*AddAPIInternalServerError) WithPayload ¶
func (o *AddAPIInternalServerError) WithPayload(payload *v1.Error) *AddAPIInternalServerError
WithPayload adds the payload to the add Api internal server error response
func (*AddAPIInternalServerError) WriteResponse ¶
func (o *AddAPIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAPIOK ¶
AddAPIOK API created
swagger:response addApiOK
func NewAddAPIOK ¶
func NewAddAPIOK() *AddAPIOK
NewAddAPIOK creates AddAPIOK with default headers values
func (*AddAPIOK) SetPayload ¶
SetPayload sets the payload to the add Api o k response
func (*AddAPIOK) WithPayload ¶
WithPayload adds the payload to the add Api o k response
func (*AddAPIOK) WriteResponse ¶
func (o *AddAPIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAPIParams ¶
type AddAPIParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*API object Required: true In: body */ Body *v1.API }
AddAPIParams contains all the bound params for the add API operation typically these are obtained from a http.Request
swagger:parameters addAPI
func NewAddAPIParams ¶
func NewAddAPIParams() AddAPIParams
NewAddAPIParams creates a new AddAPIParams object no default values defined in spec.
func (*AddAPIParams) BindRequest ¶
func (o *AddAPIParams) 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 NewAddAPIParams() beforehand.
type AddAPIURL ¶
type AddAPIURL struct {
// contains filtered or unexported fields
}
AddAPIURL generates an URL for the add API operation
func (*AddAPIURL) SetBasePath ¶
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 (*AddAPIURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*AddAPIURL) WithBasePath ¶
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 AddAPIUnauthorized ¶
AddAPIUnauthorized Unauthorized Request
swagger:response addApiUnauthorized
func NewAddAPIUnauthorized ¶
func NewAddAPIUnauthorized() *AddAPIUnauthorized
NewAddAPIUnauthorized creates AddAPIUnauthorized with default headers values
func (*AddAPIUnauthorized) SetPayload ¶
func (o *AddAPIUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add Api unauthorized response
func (*AddAPIUnauthorized) WithPayload ¶
func (o *AddAPIUnauthorized) WithPayload(payload *v1.Error) *AddAPIUnauthorized
WithPayload adds the payload to the add Api unauthorized response
func (*AddAPIUnauthorized) WriteResponse ¶
func (o *AddAPIUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPI ¶
type DeleteAPI struct { Context *middleware.Context Handler DeleteAPIHandler }
DeleteAPI swagger:route DELETE /{api} endpoint deleteApi
Deletes an API
func NewDeleteAPI ¶
func NewDeleteAPI(ctx *middleware.Context, handler DeleteAPIHandler) *DeleteAPI
NewDeleteAPI creates a new http.Handler for the delete API operation
type DeleteAPIBadRequest ¶
DeleteAPIBadRequest Invalid Name supplied
swagger:response deleteApiBadRequest
func NewDeleteAPIBadRequest ¶
func NewDeleteAPIBadRequest() *DeleteAPIBadRequest
NewDeleteAPIBadRequest creates DeleteAPIBadRequest with default headers values
func (*DeleteAPIBadRequest) SetPayload ¶
func (o *DeleteAPIBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete Api bad request response
func (*DeleteAPIBadRequest) WithPayload ¶
func (o *DeleteAPIBadRequest) WithPayload(payload *v1.Error) *DeleteAPIBadRequest
WithPayload adds the payload to the delete Api bad request response
func (*DeleteAPIBadRequest) WriteResponse ¶
func (o *DeleteAPIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIHandler ¶
type DeleteAPIHandler interface {
Handle(DeleteAPIParams, interface{}) middleware.Responder
}
DeleteAPIHandler interface for that can handle valid delete API params
type DeleteAPIHandlerFunc ¶
type DeleteAPIHandlerFunc func(DeleteAPIParams, interface{}) middleware.Responder
DeleteAPIHandlerFunc turns a function with the right signature into a delete API handler
func (DeleteAPIHandlerFunc) Handle ¶
func (fn DeleteAPIHandlerFunc) Handle(params DeleteAPIParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteAPIInternalServerError ¶
type DeleteAPIInternalServerError struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
DeleteAPIInternalServerError Internal error
swagger:response deleteApiInternalServerError
func NewDeleteAPIInternalServerError ¶
func NewDeleteAPIInternalServerError() *DeleteAPIInternalServerError
NewDeleteAPIInternalServerError creates DeleteAPIInternalServerError with default headers values
func (*DeleteAPIInternalServerError) SetPayload ¶
func (o *DeleteAPIInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete Api internal server error response
func (*DeleteAPIInternalServerError) WithPayload ¶
func (o *DeleteAPIInternalServerError) WithPayload(payload *v1.Error) *DeleteAPIInternalServerError
WithPayload adds the payload to the delete Api internal server error response
func (*DeleteAPIInternalServerError) WriteResponse ¶
func (o *DeleteAPIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPINotFound ¶
DeleteAPINotFound API not found
swagger:response deleteApiNotFound
func NewDeleteAPINotFound ¶
func NewDeleteAPINotFound() *DeleteAPINotFound
NewDeleteAPINotFound creates DeleteAPINotFound with default headers values
func (*DeleteAPINotFound) SetPayload ¶
func (o *DeleteAPINotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete Api not found response
func (*DeleteAPINotFound) WithPayload ¶
func (o *DeleteAPINotFound) WithPayload(payload *v1.Error) *DeleteAPINotFound
WithPayload adds the payload to the delete Api not found response
func (*DeleteAPINotFound) WriteResponse ¶
func (o *DeleteAPINotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIOK ¶
DeleteAPIOK Successful operation
swagger:response deleteApiOK
func NewDeleteAPIOK ¶
func NewDeleteAPIOK() *DeleteAPIOK
NewDeleteAPIOK creates DeleteAPIOK with default headers values
func (*DeleteAPIOK) SetPayload ¶
func (o *DeleteAPIOK) SetPayload(payload *v1.API)
SetPayload sets the payload to the delete Api o k response
func (*DeleteAPIOK) WithPayload ¶
func (o *DeleteAPIOK) WithPayload(payload *v1.API) *DeleteAPIOK
WithPayload adds the payload to the delete Api o k response
func (*DeleteAPIOK) WriteResponse ¶
func (o *DeleteAPIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIParams ¶
type DeleteAPIParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of API to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ API string /*Filter based on tags In: query Collection Format: multi */ Tags []string }
DeleteAPIParams contains all the bound params for the delete API operation typically these are obtained from a http.Request
swagger:parameters deleteAPI
func NewDeleteAPIParams ¶
func NewDeleteAPIParams() DeleteAPIParams
NewDeleteAPIParams creates a new DeleteAPIParams object no default values defined in spec.
func (*DeleteAPIParams) BindRequest ¶
func (o *DeleteAPIParams) 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 NewDeleteAPIParams() beforehand.
type DeleteAPIURL ¶
DeleteAPIURL generates an URL for the delete API operation
func (*DeleteAPIURL) Build ¶
func (o *DeleteAPIURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAPIURL) BuildFull ¶
func (o *DeleteAPIURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAPIURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteAPIURL) SetBasePath ¶
func (o *DeleteAPIURL) 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 (*DeleteAPIURL) String ¶
func (o *DeleteAPIURL) String() string
String returns the string representation of the path with query string
func (*DeleteAPIURL) StringFull ¶
func (o *DeleteAPIURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAPIURL) WithBasePath ¶
func (o *DeleteAPIURL) WithBasePath(bp string) *DeleteAPIURL
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 GetAPI ¶
type GetAPI struct { Context *middleware.Context Handler GetAPIHandler }
GetAPI swagger:route GET /{api} endpoint getApi
Find API by name ¶
get an API by name
func NewGetAPI ¶
func NewGetAPI(ctx *middleware.Context, handler GetAPIHandler) *GetAPI
NewGetAPI creates a new http.Handler for the get API operation
type GetAPIBadRequest ¶
GetAPIBadRequest Invalid Name supplied
swagger:response getApiBadRequest
func NewGetAPIBadRequest ¶
func NewGetAPIBadRequest() *GetAPIBadRequest
NewGetAPIBadRequest creates GetAPIBadRequest with default headers values
func (*GetAPIBadRequest) SetPayload ¶
func (o *GetAPIBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get Api bad request response
func (*GetAPIBadRequest) WithPayload ¶
func (o *GetAPIBadRequest) WithPayload(payload *v1.Error) *GetAPIBadRequest
WithPayload adds the payload to the get Api bad request response
func (*GetAPIBadRequest) WriteResponse ¶
func (o *GetAPIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIHandler ¶
type GetAPIHandler interface {
Handle(GetAPIParams, interface{}) middleware.Responder
}
GetAPIHandler interface for that can handle valid get API params
type GetAPIHandlerFunc ¶
type GetAPIHandlerFunc func(GetAPIParams, interface{}) middleware.Responder
GetAPIHandlerFunc turns a function with the right signature into a get API handler
func (GetAPIHandlerFunc) Handle ¶
func (fn GetAPIHandlerFunc) Handle(params GetAPIParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetAPIInternalServerError ¶
GetAPIInternalServerError Internal error
swagger:response getApiInternalServerError
func NewGetAPIInternalServerError ¶
func NewGetAPIInternalServerError() *GetAPIInternalServerError
NewGetAPIInternalServerError creates GetAPIInternalServerError with default headers values
func (*GetAPIInternalServerError) SetPayload ¶
func (o *GetAPIInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get Api internal server error response
func (*GetAPIInternalServerError) WithPayload ¶
func (o *GetAPIInternalServerError) WithPayload(payload *v1.Error) *GetAPIInternalServerError
WithPayload adds the payload to the get Api internal server error response
func (*GetAPIInternalServerError) WriteResponse ¶
func (o *GetAPIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPINotFound ¶
GetAPINotFound API not found
swagger:response getApiNotFound
func NewGetAPINotFound ¶
func NewGetAPINotFound() *GetAPINotFound
NewGetAPINotFound creates GetAPINotFound with default headers values
func (*GetAPINotFound) SetPayload ¶
func (o *GetAPINotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get Api not found response
func (*GetAPINotFound) WithPayload ¶
func (o *GetAPINotFound) WithPayload(payload *v1.Error) *GetAPINotFound
WithPayload adds the payload to the get Api not found response
func (*GetAPINotFound) WriteResponse ¶
func (o *GetAPINotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIOK ¶
GetAPIOK Successful operation
swagger:response getApiOK
func NewGetAPIOK ¶
func NewGetAPIOK() *GetAPIOK
NewGetAPIOK creates GetAPIOK with default headers values
func (*GetAPIOK) SetPayload ¶
SetPayload sets the payload to the get Api o k response
func (*GetAPIOK) WithPayload ¶
WithPayload adds the payload to the get Api o k response
func (*GetAPIOK) WriteResponse ¶
func (o *GetAPIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIParams ¶
type GetAPIParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of API to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ API string /*Filter based on tags In: query Collection Format: multi */ Tags []string }
GetAPIParams contains all the bound params for the get API operation typically these are obtained from a http.Request
swagger:parameters getAPI
func NewGetAPIParams ¶
func NewGetAPIParams() GetAPIParams
NewGetAPIParams creates a new GetAPIParams object no default values defined in spec.
func (*GetAPIParams) BindRequest ¶
func (o *GetAPIParams) 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 NewGetAPIParams() beforehand.
type GetAPIURL ¶
GetAPIURL generates an URL for the get API operation
func (*GetAPIURL) SetBasePath ¶
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 (*GetAPIURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetAPIURL) WithBasePath ¶
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 GetApis ¶
type GetApis struct { Context *middleware.Context Handler GetApisHandler }
GetApis swagger:route GET / endpoint getApis
List all existing APIs
func NewGetApis ¶
func NewGetApis(ctx *middleware.Context, handler GetApisHandler) *GetApis
NewGetApis creates a new http.Handler for the get apis operation
type GetApisDefault ¶
type GetApisDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetApisDefault Unexpected Error
swagger:response getApisDefault
func NewGetApisDefault ¶
func NewGetApisDefault(code int) *GetApisDefault
NewGetApisDefault creates GetApisDefault with default headers values
func (*GetApisDefault) SetPayload ¶
func (o *GetApisDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get apis default response
func (*GetApisDefault) SetStatusCode ¶
func (o *GetApisDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get apis default response
func (*GetApisDefault) WithPayload ¶
func (o *GetApisDefault) WithPayload(payload *v1.Error) *GetApisDefault
WithPayload adds the payload to the get apis default response
func (*GetApisDefault) WithStatusCode ¶
func (o *GetApisDefault) WithStatusCode(code int) *GetApisDefault
WithStatusCode adds the status to the get apis default response
func (*GetApisDefault) WriteResponse ¶
func (o *GetApisDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetApisHandler ¶
type GetApisHandler interface {
Handle(GetApisParams, interface{}) middleware.Responder
}
GetApisHandler interface for that can handle valid get apis params
type GetApisHandlerFunc ¶
type GetApisHandlerFunc func(GetApisParams, interface{}) middleware.Responder
GetApisHandlerFunc turns a function with the right signature into a get apis handler
func (GetApisHandlerFunc) Handle ¶
func (fn GetApisHandlerFunc) Handle(params GetApisParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetApisInternalServerError ¶
GetApisInternalServerError Internal Error
swagger:response getApisInternalServerError
func NewGetApisInternalServerError ¶
func NewGetApisInternalServerError() *GetApisInternalServerError
NewGetApisInternalServerError creates GetApisInternalServerError with default headers values
func (*GetApisInternalServerError) SetPayload ¶
func (o *GetApisInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get apis internal server error response
func (*GetApisInternalServerError) WithPayload ¶
func (o *GetApisInternalServerError) WithPayload(payload *v1.Error) *GetApisInternalServerError
WithPayload adds the payload to the get apis internal server error response
func (*GetApisInternalServerError) WriteResponse ¶
func (o *GetApisInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetApisOK ¶
GetApisOK Successful operation
swagger:response getApisOK
func NewGetApisOK ¶
func NewGetApisOK() *GetApisOK
NewGetApisOK creates GetApisOK with default headers values
func (*GetApisOK) SetPayload ¶
SetPayload sets the payload to the get apis o k response
func (*GetApisOK) WithPayload ¶
WithPayload adds the payload to the get apis o k response
func (*GetApisOK) WriteResponse ¶
func (o *GetApisOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetApisParams ¶
type GetApisParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Filter based on function names In: query */ Function *string /*Filter based on tags In: query Collection Format: multi */ Tags []string }
GetApisParams contains all the bound params for the get apis operation typically these are obtained from a http.Request
swagger:parameters getAPIs
func NewGetApisParams ¶
func NewGetApisParams() GetApisParams
NewGetApisParams creates a new GetApisParams object no default values defined in spec.
func (*GetApisParams) BindRequest ¶
func (o *GetApisParams) 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 NewGetApisParams() beforehand.
type GetApisURL ¶
GetApisURL generates an URL for the get apis operation
func (*GetApisURL) Build ¶
func (o *GetApisURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetApisURL) BuildFull ¶
func (o *GetApisURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetApisURL) SetBasePath ¶
func (o *GetApisURL) 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 (*GetApisURL) String ¶
func (o *GetApisURL) String() string
String returns the string representation of the path with query string
func (*GetApisURL) StringFull ¶
func (o *GetApisURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetApisURL) WithBasePath ¶
func (o *GetApisURL) WithBasePath(bp string) *GetApisURL
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 UpdateAPI ¶
type UpdateAPI struct { Context *middleware.Context Handler UpdateAPIHandler }
UpdateAPI swagger:route PUT /{api} endpoint updateApi
Update an API
func NewUpdateAPI ¶
func NewUpdateAPI(ctx *middleware.Context, handler UpdateAPIHandler) *UpdateAPI
NewUpdateAPI creates a new http.Handler for the update API operation
type UpdateAPIBadRequest ¶
UpdateAPIBadRequest Invalid input
swagger:response updateApiBadRequest
func NewUpdateAPIBadRequest ¶
func NewUpdateAPIBadRequest() *UpdateAPIBadRequest
NewUpdateAPIBadRequest creates UpdateAPIBadRequest with default headers values
func (*UpdateAPIBadRequest) SetPayload ¶
func (o *UpdateAPIBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update Api bad request response
func (*UpdateAPIBadRequest) WithPayload ¶
func (o *UpdateAPIBadRequest) WithPayload(payload *v1.Error) *UpdateAPIBadRequest
WithPayload adds the payload to the update Api bad request response
func (*UpdateAPIBadRequest) WriteResponse ¶
func (o *UpdateAPIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAPIHandler ¶
type UpdateAPIHandler interface {
Handle(UpdateAPIParams, interface{}) middleware.Responder
}
UpdateAPIHandler interface for that can handle valid update API params
type UpdateAPIHandlerFunc ¶
type UpdateAPIHandlerFunc func(UpdateAPIParams, interface{}) middleware.Responder
UpdateAPIHandlerFunc turns a function with the right signature into a update API handler
func (UpdateAPIHandlerFunc) Handle ¶
func (fn UpdateAPIHandlerFunc) Handle(params UpdateAPIParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateAPIInternalServerError ¶
type UpdateAPIInternalServerError struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
UpdateAPIInternalServerError Internal error
swagger:response updateApiInternalServerError
func NewUpdateAPIInternalServerError ¶
func NewUpdateAPIInternalServerError() *UpdateAPIInternalServerError
NewUpdateAPIInternalServerError creates UpdateAPIInternalServerError with default headers values
func (*UpdateAPIInternalServerError) SetPayload ¶
func (o *UpdateAPIInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update Api internal server error response
func (*UpdateAPIInternalServerError) WithPayload ¶
func (o *UpdateAPIInternalServerError) WithPayload(payload *v1.Error) *UpdateAPIInternalServerError
WithPayload adds the payload to the update Api internal server error response
func (*UpdateAPIInternalServerError) WriteResponse ¶
func (o *UpdateAPIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAPINotFound ¶
UpdateAPINotFound API not found
swagger:response updateApiNotFound
func NewUpdateAPINotFound ¶
func NewUpdateAPINotFound() *UpdateAPINotFound
NewUpdateAPINotFound creates UpdateAPINotFound with default headers values
func (*UpdateAPINotFound) SetPayload ¶
func (o *UpdateAPINotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update Api not found response
func (*UpdateAPINotFound) WithPayload ¶
func (o *UpdateAPINotFound) WithPayload(payload *v1.Error) *UpdateAPINotFound
WithPayload adds the payload to the update Api not found response
func (*UpdateAPINotFound) WriteResponse ¶
func (o *UpdateAPINotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAPIOK ¶
UpdateAPIOK Successful update
swagger:response updateApiOK
func NewUpdateAPIOK ¶
func NewUpdateAPIOK() *UpdateAPIOK
NewUpdateAPIOK creates UpdateAPIOK with default headers values
func (*UpdateAPIOK) SetPayload ¶
func (o *UpdateAPIOK) SetPayload(payload *v1.API)
SetPayload sets the payload to the update Api o k response
func (*UpdateAPIOK) WithPayload ¶
func (o *UpdateAPIOK) WithPayload(payload *v1.API) *UpdateAPIOK
WithPayload adds the payload to the update Api o k response
func (*UpdateAPIOK) WriteResponse ¶
func (o *UpdateAPIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAPIParams ¶
type UpdateAPIParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of API to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ API string /*API object Required: true In: body */ Body *v1.API /*Filter based on tags In: query Collection Format: multi */ Tags []string }
UpdateAPIParams contains all the bound params for the update API operation typically these are obtained from a http.Request
swagger:parameters updateAPI
func NewUpdateAPIParams ¶
func NewUpdateAPIParams() UpdateAPIParams
NewUpdateAPIParams creates a new UpdateAPIParams object no default values defined in spec.
func (*UpdateAPIParams) BindRequest ¶
func (o *UpdateAPIParams) 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 NewUpdateAPIParams() beforehand.
type UpdateAPIURL ¶
UpdateAPIURL generates an URL for the update API operation
func (*UpdateAPIURL) Build ¶
func (o *UpdateAPIURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateAPIURL) BuildFull ¶
func (o *UpdateAPIURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateAPIURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateAPIURL) SetBasePath ¶
func (o *UpdateAPIURL) 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 (*UpdateAPIURL) String ¶
func (o *UpdateAPIURL) String() string
String returns the string representation of the path with query string
func (*UpdateAPIURL) StringFull ¶
func (o *UpdateAPIURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateAPIURL) WithBasePath ¶
func (o *UpdateAPIURL) WithBasePath(bp string) *UpdateAPIURL
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
Source Files
¶
- add_api.go
- add_api_parameters.go
- add_api_responses.go
- add_api_urlbuilder.go
- delete_api.go
- delete_api_parameters.go
- delete_api_responses.go
- delete_api_urlbuilder.go
- get_api.go
- get_api_parameters.go
- get_api_responses.go
- get_api_urlbuilder.go
- get_apis.go
- get_apis_parameters.go
- get_apis_responses.go
- get_apis_urlbuilder.go
- update_api.go
- update_api_parameters.go
- update_api_responses.go
- update_api_urlbuilder.go