Documentation ¶
Index ¶
- Constants
- type GetEvent
- type GetEventDefault
- func (o *GetEventDefault) SetPayload(payload *models.Error)
- func (o *GetEventDefault) SetStatusCode(code int)
- func (o *GetEventDefault) WithPayload(payload *models.Error) *GetEventDefault
- func (o *GetEventDefault) WithStatusCode(code int) *GetEventDefault
- func (o *GetEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEventHandler
- type GetEventHandlerFunc
- type GetEventNotFound
- type GetEventOK
- type GetEventParams
- type GetEventURL
- func (o *GetEventURL) Build() (*url.URL, error)
- func (o *GetEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEventURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEventURL) SetBasePath(bp string)
- func (o *GetEventURL) String() string
- func (o *GetEventURL) StringFull(scheme, host string) string
- func (o *GetEventURL) WithBasePath(bp string) *GetEventURL
- type PostEvent
- type PostEventBadRequest
- type PostEventHandler
- type PostEventHandlerFunc
- type PostEventInternalServerError
- type PostEventOK
- type PostEventParams
- type PostEventURL
- func (o *PostEventURL) Build() (*url.URL, error)
- func (o *PostEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostEventURL) Must(u *url.URL, err error) *url.URL
- func (o *PostEventURL) SetBasePath(bp string)
- func (o *PostEventURL) String() string
- func (o *PostEventURL) StringFull(scheme, host string) string
- func (o *PostEventURL) WithBasePath(bp string) *PostEventURL
Constants ¶
const GetEventNotFoundCode int = 404
GetEventNotFoundCode is the HTTP code returned for type GetEventNotFound
const GetEventOKCode int = 200
GetEventOKCode is the HTTP code returned for type GetEventOK
const PostEventBadRequestCode int = 400
PostEventBadRequestCode is the HTTP code returned for type PostEventBadRequest
const PostEventInternalServerErrorCode int = 500
PostEventInternalServerErrorCode is the HTTP code returned for type PostEventInternalServerError
const PostEventOKCode int = 200
PostEventOKCode is the HTTP code returned for type PostEventOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetEvent ¶
type GetEvent struct { Context *middleware.Context Handler GetEventHandler }
GetEvent swagger:route GET /event Event getEvent
Deprecated endpoint - please use /mongodb-datastore/v1/event
func NewGetEvent ¶
func NewGetEvent(ctx *middleware.Context, handler GetEventHandler) *GetEvent
NewGetEvent creates a new http.Handler for the get event operation
type GetEventDefault ¶
type GetEventDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetEventDefault Error
swagger:response getEventDefault
func NewGetEventDefault ¶
func NewGetEventDefault(code int) *GetEventDefault
NewGetEventDefault creates GetEventDefault with default headers values
func (*GetEventDefault) SetPayload ¶
func (o *GetEventDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event default response
func (*GetEventDefault) SetStatusCode ¶
func (o *GetEventDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get event default response
func (*GetEventDefault) WithPayload ¶
func (o *GetEventDefault) WithPayload(payload *models.Error) *GetEventDefault
WithPayload adds the payload to the get event default response
func (*GetEventDefault) WithStatusCode ¶
func (o *GetEventDefault) WithStatusCode(code int) *GetEventDefault
WithStatusCode adds the status to the get event default response
func (*GetEventDefault) WriteResponse ¶
func (o *GetEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventHandler ¶
type GetEventHandler interface {
Handle(GetEventParams, *models.Principal) middleware.Responder
}
GetEventHandler interface for that can handle valid get event params
type GetEventHandlerFunc ¶
type GetEventHandlerFunc func(GetEventParams, *models.Principal) middleware.Responder
GetEventHandlerFunc turns a function with the right signature into a get event handler
func (GetEventHandlerFunc) Handle ¶
func (fn GetEventHandlerFunc) Handle(params GetEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetEventNotFound ¶
GetEventNotFound Failed. Event could not be found.
swagger:response getEventNotFound
func NewGetEventNotFound ¶
func NewGetEventNotFound() *GetEventNotFound
NewGetEventNotFound creates GetEventNotFound with default headers values
func (*GetEventNotFound) SetPayload ¶
func (o *GetEventNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event not found response
func (*GetEventNotFound) WithPayload ¶
func (o *GetEventNotFound) WithPayload(payload *models.Error) *GetEventNotFound
WithPayload adds the payload to the get event not found response
func (*GetEventNotFound) WriteResponse ¶
func (o *GetEventNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventOK ¶
type GetEventOK struct { /* In: Body */ Payload *models.KeptnContextExtendedCE `json:"body,omitempty"` }
GetEventOK Success
swagger:response getEventOK
func NewGetEventOK ¶
func NewGetEventOK() *GetEventOK
NewGetEventOK creates GetEventOK with default headers values
func (*GetEventOK) SetPayload ¶
func (o *GetEventOK) SetPayload(payload *models.KeptnContextExtendedCE)
SetPayload sets the payload to the get event o k response
func (*GetEventOK) WithPayload ¶
func (o *GetEventOK) WithPayload(payload *models.KeptnContextExtendedCE) *GetEventOK
WithPayload adds the payload to the get event o k response
func (*GetEventOK) WriteResponse ¶
func (o *GetEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventParams ¶
type GetEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*KeptnContext of the events to get Required: true In: query */ KeptnContext string /*Type of the Keptn cloud event Required: true In: query */ Type string }
GetEventParams contains all the bound params for the get event operation typically these are obtained from a http.Request
swagger:parameters GetEvent
func NewGetEventParams ¶
func NewGetEventParams() GetEventParams
NewGetEventParams creates a new GetEventParams object no default values defined in spec.
func (*GetEventParams) BindRequest ¶
func (o *GetEventParams) 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 NewGetEventParams() beforehand.
type GetEventURL ¶
type GetEventURL struct { KeptnContext string Type string // contains filtered or unexported fields }
GetEventURL generates an URL for the get event operation
func (*GetEventURL) Build ¶
func (o *GetEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEventURL) BuildFull ¶
func (o *GetEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEventURL) SetBasePath ¶
func (o *GetEventURL) 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 (*GetEventURL) String ¶
func (o *GetEventURL) String() string
String returns the string representation of the path with query string
func (*GetEventURL) StringFull ¶
func (o *GetEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEventURL) WithBasePath ¶
func (o *GetEventURL) WithBasePath(bp string) *GetEventURL
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 PostEvent ¶
type PostEvent struct { Context *middleware.Context Handler PostEventHandler }
PostEvent swagger:route POST /event Event postEvent
Forwards the received event ¶
<span class="oauth-scopes">Required OAuth scopes: ${prefix}events:write</span>
func NewPostEvent ¶
func NewPostEvent(ctx *middleware.Context, handler PostEventHandler) *PostEvent
NewPostEvent creates a new http.Handler for the post event operation
type PostEventBadRequest ¶
PostEventBadRequest Invalid Event Payload Error
swagger:response postEventBadRequest
func NewPostEventBadRequest ¶
func NewPostEventBadRequest() *PostEventBadRequest
NewPostEventBadRequest creates PostEventBadRequest with default headers values
func (*PostEventBadRequest) SetPayload ¶
func (o *PostEventBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the post event bad request response
func (*PostEventBadRequest) WithPayload ¶
func (o *PostEventBadRequest) WithPayload(payload *models.Error) *PostEventBadRequest
WithPayload adds the payload to the post event bad request response
func (*PostEventBadRequest) WriteResponse ¶
func (o *PostEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostEventHandler ¶
type PostEventHandler interface {
Handle(PostEventParams, *models.Principal) middleware.Responder
}
PostEventHandler interface for that can handle valid post event params
type PostEventHandlerFunc ¶
type PostEventHandlerFunc func(PostEventParams, *models.Principal) middleware.Responder
PostEventHandlerFunc turns a function with the right signature into a post event handler
func (PostEventHandlerFunc) Handle ¶
func (fn PostEventHandlerFunc) Handle(params PostEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PostEventInternalServerError ¶
type PostEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostEventInternalServerError Error
swagger:response postEventInternalServerError
func NewPostEventInternalServerError ¶
func NewPostEventInternalServerError() *PostEventInternalServerError
NewPostEventInternalServerError creates PostEventInternalServerError with default headers values
func (*PostEventInternalServerError) SetPayload ¶
func (o *PostEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post event internal server error response
func (*PostEventInternalServerError) WithPayload ¶
func (o *PostEventInternalServerError) WithPayload(payload *models.Error) *PostEventInternalServerError
WithPayload adds the payload to the post event internal server error response
func (*PostEventInternalServerError) WriteResponse ¶
func (o *PostEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostEventOK ¶
type PostEventOK struct { /* In: Body */ Payload *models.EventContext `json:"body,omitempty"` }
PostEventOK Forwarded
swagger:response postEventOK
func NewPostEventOK ¶
func NewPostEventOK() *PostEventOK
NewPostEventOK creates PostEventOK with default headers values
func (*PostEventOK) SetPayload ¶
func (o *PostEventOK) SetPayload(payload *models.EventContext)
SetPayload sets the payload to the post event o k response
func (*PostEventOK) WithPayload ¶
func (o *PostEventOK) WithPayload(payload *models.EventContext) *PostEventOK
WithPayload adds the payload to the post event o k response
func (*PostEventOK) WriteResponse ¶
func (o *PostEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostEventParams ¶
type PostEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.KeptnContextExtendedCE }
PostEventParams contains all the bound params for the post event operation typically these are obtained from a http.Request
swagger:parameters PostEvent
func NewPostEventParams ¶
func NewPostEventParams() PostEventParams
NewPostEventParams creates a new PostEventParams object
There are no default values defined in the spec.
func (*PostEventParams) BindRequest ¶
func (o *PostEventParams) 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 NewPostEventParams() beforehand.
type PostEventURL ¶
type PostEventURL struct {
// contains filtered or unexported fields
}
PostEventURL generates an URL for the post event operation
func (*PostEventURL) Build ¶
func (o *PostEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostEventURL) BuildFull ¶
func (o *PostEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostEventURL) SetBasePath ¶
func (o *PostEventURL) 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 (*PostEventURL) String ¶
func (o *PostEventURL) String() string
String returns the string representation of the path with query string
func (*PostEventURL) StringFull ¶
func (o *PostEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostEventURL) WithBasePath ¶
func (o *PostEventURL) WithBasePath(bp string) *PostEventURL
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