Documentation ¶
Index ¶
- Constants
- type GetEvent
- type GetEventDefault
- func (o *GetEventDefault) SetPayload(payload *GetEventDefaultBody)
- func (o *GetEventDefault) SetStatusCode(code int)
- func (o *GetEventDefault) WithPayload(payload *GetEventDefaultBody) *GetEventDefault
- func (o *GetEventDefault) WithStatusCode(code int) *GetEventDefault
- func (o *GetEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEventDefaultBody
- type GetEventHandler
- type GetEventHandlerFunc
- type GetEventOK
- type GetEventOKBodyItems0
- func (o *GetEventOKBodyItems0) MarshalBinary() ([]byte, error)
- func (o GetEventOKBodyItems0) MarshalJSON() ([]byte, error)
- func (o *GetEventOKBodyItems0) UnmarshalBinary(b []byte) error
- func (o *GetEventOKBodyItems0) UnmarshalJSON(raw []byte) error
- func (o *GetEventOKBodyItems0) Validate(formats strfmt.Registry) error
- 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 GetEvents
- type GetEventsBadRequest
- type GetEventsByType
- type GetEventsByTypeHandler
- type GetEventsByTypeHandlerFunc
- type GetEventsByTypeInternalServerError
- func (o *GetEventsByTypeInternalServerError) SetPayload(payload *models.Error)
- func (o *GetEventsByTypeInternalServerError) WithPayload(payload *models.Error) *GetEventsByTypeInternalServerError
- func (o *GetEventsByTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEventsByTypeOK
- type GetEventsByTypeOKBody
- type GetEventsByTypeParams
- type GetEventsByTypeURL
- func (o *GetEventsByTypeURL) Build() (*url.URL, error)
- func (o *GetEventsByTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEventsByTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEventsByTypeURL) SetBasePath(bp string)
- func (o *GetEventsByTypeURL) String() string
- func (o *GetEventsByTypeURL) StringFull(scheme, host string) string
- func (o *GetEventsByTypeURL) WithBasePath(bp string) *GetEventsByTypeURL
- type GetEventsHandler
- type GetEventsHandlerFunc
- type GetEventsInternalServerError
- type GetEventsOK
- type GetEventsOKBody
- type GetEventsParams
- type GetEventsURL
- func (o *GetEventsURL) Build() (*url.URL, error)
- func (o *GetEventsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEventsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEventsURL) SetBasePath(bp string)
- func (o *GetEventsURL) String() string
- func (o *GetEventsURL) StringFull(scheme, host string) string
- func (o *GetEventsURL) WithBasePath(bp string) *GetEventsURL
- type GetNewArtifactEvents
- type GetNewArtifactEventsDefault
- func (o *GetNewArtifactEventsDefault) SetPayload(payload *GetNewArtifactEventsDefaultBody)
- func (o *GetNewArtifactEventsDefault) SetStatusCode(code int)
- func (o *GetNewArtifactEventsDefault) WithPayload(payload *GetNewArtifactEventsDefaultBody) *GetNewArtifactEventsDefault
- func (o *GetNewArtifactEventsDefault) WithStatusCode(code int) *GetNewArtifactEventsDefault
- func (o *GetNewArtifactEventsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetNewArtifactEventsDefaultBody
- type GetNewArtifactEventsHandler
- type GetNewArtifactEventsHandlerFunc
- type GetNewArtifactEventsOK
- func (o *GetNewArtifactEventsOK) SetPayload(payload []*GetNewArtifactEventsOKBodyItems0)
- func (o *GetNewArtifactEventsOK) WithPayload(payload []*GetNewArtifactEventsOKBodyItems0) *GetNewArtifactEventsOK
- func (o *GetNewArtifactEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetNewArtifactEventsOKBodyItems0
- func (o *GetNewArtifactEventsOKBodyItems0) MarshalBinary() ([]byte, error)
- func (o GetNewArtifactEventsOKBodyItems0) MarshalJSON() ([]byte, error)
- func (o *GetNewArtifactEventsOKBodyItems0) UnmarshalBinary(b []byte) error
- func (o *GetNewArtifactEventsOKBodyItems0) UnmarshalJSON(raw []byte) error
- func (o *GetNewArtifactEventsOKBodyItems0) Validate(formats strfmt.Registry) error
- type GetNewArtifactEventsParams
- type GetNewArtifactEventsURL
- func (o *GetNewArtifactEventsURL) Build() (*url.URL, error)
- func (o *GetNewArtifactEventsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetNewArtifactEventsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetNewArtifactEventsURL) SetBasePath(bp string)
- func (o *GetNewArtifactEventsURL) String() string
- func (o *GetNewArtifactEventsURL) StringFull(scheme, host string) string
- func (o *GetNewArtifactEventsURL) WithBasePath(bp string) *GetNewArtifactEventsURL
- type SaveEventCreated
- type SaveEventDefault
- func (o *SaveEventDefault) SetPayload(payload *models.Error)
- func (o *SaveEventDefault) SetStatusCode(code int)
- func (o *SaveEventDefault) WithPayload(payload *models.Error) *SaveEventDefault
- func (o *SaveEventDefault) WithStatusCode(code int) *SaveEventDefault
- func (o *SaveEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SaveEventURL
- func (o *SaveEventURL) Build() (*url.URL, error)
- func (o *SaveEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SaveEventURL) Must(u *url.URL, err error) *url.URL
- func (o *SaveEventURL) SetBasePath(bp string)
- func (o *SaveEventURL) String() string
- func (o *SaveEventURL) StringFull(scheme, host string) string
- func (o *SaveEventURL) WithBasePath(bp string) *SaveEventURL
Constants ¶
const GetEventOKCode int = 200
GetEventOKCode is the HTTP code returned for type GetEventOK
const GetEventsBadRequestCode int = 400
GetEventsBadRequestCode is the HTTP code returned for type GetEventsBadRequest
const GetEventsByTypeInternalServerErrorCode int = 500
GetEventsByTypeInternalServerErrorCode is the HTTP code returned for type GetEventsByTypeInternalServerError
const GetEventsByTypeOKCode int = 200
GetEventsByTypeOKCode is the HTTP code returned for type GetEventsByTypeOK
const GetEventsInternalServerErrorCode int = 500
GetEventsInternalServerErrorCode is the HTTP code returned for type GetEventsInternalServerError
const GetEventsOKCode int = 200
GetEventsOKCode is the HTTP code returned for type GetEventsOK
const GetNewArtifactEventsOKCode int = 200
GetNewArtifactEventsOKCode is the HTTP code returned for type GetNewArtifactEventsOK
const SaveEventCreatedCode int = 201
SaveEventCreatedCode is the HTTP code returned for type SaveEventCreated
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 /events/id/{id} event getEvent
Gets events from the data store
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 *GetEventDefaultBody `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 *GetEventDefaultBody)
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 *GetEventDefaultBody) *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 GetEventDefaultBody ¶
type GetEventDefaultBody struct { // code Code int64 `json:"code,omitempty"` // fields Fields string `json:"fields,omitempty"` // message // Required: true Message *string `json:"message"` }
GetEventDefaultBody get event default body swagger:model GetEventDefaultBody
func (*GetEventDefaultBody) MarshalBinary ¶
func (o *GetEventDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetEventDefaultBody) UnmarshalBinary ¶
func (o *GetEventDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetEventHandler ¶
type GetEventHandler interface {
Handle(GetEventParams) middleware.Responder
}
GetEventHandler interface for that can handle valid get event params
type GetEventHandlerFunc ¶
type GetEventHandlerFunc func(GetEventParams) middleware.Responder
GetEventHandlerFunc turns a function with the right signature into a get event handler
func (GetEventHandlerFunc) Handle ¶
func (fn GetEventHandlerFunc) Handle(params GetEventParams) middleware.Responder
Handle executing the request and returning a response
type GetEventOK ¶
type GetEventOK struct { /* In: Body */ Payload []*GetEventOKBodyItems0 `json:"body,omitempty"` }
GetEventOK ok
swagger:response getEventOK
func NewGetEventOK ¶
func NewGetEventOK() *GetEventOK
NewGetEventOK creates GetEventOK with default headers values
func (*GetEventOK) SetPayload ¶
func (o *GetEventOK) SetPayload(payload []*GetEventOKBodyItems0)
SetPayload sets the payload to the get event o k response
func (*GetEventOK) WithPayload ¶
func (o *GetEventOK) WithPayload(payload []*GetEventOKBodyItems0) *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 GetEventOKBodyItems0 ¶
type GetEventOKBodyItems0 struct { // contenttype Contenttype string `json:"contenttype,omitempty"` // data Data interface{} `json:"data,omitempty"` // extensions Extensions interface{} `json:"extensions,omitempty"` // id // Required: true ID *string `json:"id"` // source // Required: true Source *string `json:"source"` // specversion // Required: true Specversion *string `json:"specversion"` // time // Format: date-time Time strfmt.DateTime `json:"time,omitempty"` // type // Required: true Type *string `json:"type"` // shkeptncontext Shkeptncontext string `json:"shkeptncontext,omitempty"` }
GetEventOKBodyItems0 get event o k body items0 swagger:model GetEventOKBodyItems0
func (*GetEventOKBodyItems0) MarshalBinary ¶
func (o *GetEventOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GetEventOKBodyItems0) MarshalJSON ¶
func (o GetEventOKBodyItems0) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*GetEventOKBodyItems0) UnmarshalBinary ¶
func (o *GetEventOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetEventOKBodyItems0) UnmarshalJSON ¶
func (o *GetEventOKBodyItems0) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type GetEventParams ¶
type GetEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the event to get Required: true In: path */ ID 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 { ID 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 GetEvents ¶
type GetEvents struct { Context *middleware.Context Handler GetEventsHandler }
GetEvents swagger:route GET /event event getEvents
Gets events from the data store, either keptnContext or project must be specified
func NewGetEvents ¶
func NewGetEvents(ctx *middleware.Context, handler GetEventsHandler) *GetEvents
NewGetEvents creates a new http.Handler for the get events operation
type GetEventsBadRequest ¶
GetEventsBadRequest Bad Request
swagger:response getEventsBadRequest
func NewGetEventsBadRequest ¶
func NewGetEventsBadRequest() *GetEventsBadRequest
NewGetEventsBadRequest creates GetEventsBadRequest with default headers values
func (*GetEventsBadRequest) SetPayload ¶
func (o *GetEventsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get events bad request response
func (*GetEventsBadRequest) WithPayload ¶
func (o *GetEventsBadRequest) WithPayload(payload *models.Error) *GetEventsBadRequest
WithPayload adds the payload to the get events bad request response
func (*GetEventsBadRequest) WriteResponse ¶
func (o *GetEventsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventsByType ¶
type GetEventsByType struct { Context *middleware.Context Handler GetEventsByTypeHandler }
GetEventsByType swagger:route GET /event/type/{eventType} event getEventsByType
Gets events by their type from the mongodb, required filter are either 'data.project:<project-name>' or 'shkeptncontext:<keptn-context-id>'
func NewGetEventsByType ¶
func NewGetEventsByType(ctx *middleware.Context, handler GetEventsByTypeHandler) *GetEventsByType
NewGetEventsByType creates a new http.Handler for the get events by type operation
func (*GetEventsByType) ServeHTTP ¶
func (o *GetEventsByType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetEventsByTypeHandler ¶
type GetEventsByTypeHandler interface {
Handle(GetEventsByTypeParams) middleware.Responder
}
GetEventsByTypeHandler interface for that can handle valid get events by type params
type GetEventsByTypeHandlerFunc ¶
type GetEventsByTypeHandlerFunc func(GetEventsByTypeParams) middleware.Responder
GetEventsByTypeHandlerFunc turns a function with the right signature into a get events by type handler
func (GetEventsByTypeHandlerFunc) Handle ¶
func (fn GetEventsByTypeHandlerFunc) Handle(params GetEventsByTypeParams) middleware.Responder
Handle executing the request and returning a response
type GetEventsByTypeInternalServerError ¶
type GetEventsByTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetEventsByTypeInternalServerError error
swagger:response getEventsByTypeInternalServerError
func NewGetEventsByTypeInternalServerError ¶
func NewGetEventsByTypeInternalServerError() *GetEventsByTypeInternalServerError
NewGetEventsByTypeInternalServerError creates GetEventsByTypeInternalServerError with default headers values
func (*GetEventsByTypeInternalServerError) SetPayload ¶
func (o *GetEventsByTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get events by type internal server error response
func (*GetEventsByTypeInternalServerError) WithPayload ¶
func (o *GetEventsByTypeInternalServerError) WithPayload(payload *models.Error) *GetEventsByTypeInternalServerError
WithPayload adds the payload to the get events by type internal server error response
func (*GetEventsByTypeInternalServerError) WriteResponse ¶
func (o *GetEventsByTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventsByTypeOK ¶
type GetEventsByTypeOK struct { /* In: Body */ Payload *GetEventsByTypeOKBody `json:"body,omitempty"` }
GetEventsByTypeOK ok
swagger:response getEventsByTypeOK
func NewGetEventsByTypeOK ¶
func NewGetEventsByTypeOK() *GetEventsByTypeOK
NewGetEventsByTypeOK creates GetEventsByTypeOK with default headers values
func (*GetEventsByTypeOK) SetPayload ¶
func (o *GetEventsByTypeOK) SetPayload(payload *GetEventsByTypeOKBody)
SetPayload sets the payload to the get events by type o k response
func (*GetEventsByTypeOK) WithPayload ¶
func (o *GetEventsByTypeOK) WithPayload(payload *GetEventsByTypeOKBody) *GetEventsByTypeOK
WithPayload adds the payload to the get events by type o k response
func (*GetEventsByTypeOK) WriteResponse ¶
func (o *GetEventsByTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventsByTypeOKBody ¶
type GetEventsByTypeOKBody struct { // events Events []keptnapi.KeptnContextExtendedCE `json:"events"` }
GetEventsByTypeOKBody get events by type o k body
swagger:model GetEventsByTypeOKBody
func (*GetEventsByTypeOKBody) ContextValidate ¶
ContextValidate validates this get events by type o k body based on context it is used
func (*GetEventsByTypeOKBody) MarshalBinary ¶
func (o *GetEventsByTypeOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetEventsByTypeOKBody) UnmarshalBinary ¶
func (o *GetEventsByTypeOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetEventsByTypeParams ¶
type GetEventsByTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ EventType string /* In: query */ ExcludeInvalidated *bool /* Required: true In: query */ Filter string /* In: query */ FromTime *string /*Page size to be returned Maximum: 100 Minimum: 1 In: query Default: 20 */ Limit *int64 }
GetEventsByTypeParams contains all the bound params for the get events by type operation typically these are obtained from a http.Request
swagger:parameters getEventsByType
func NewGetEventsByTypeParams ¶
func NewGetEventsByTypeParams() GetEventsByTypeParams
NewGetEventsByTypeParams creates a new GetEventsByTypeParams object with the default values initialized.
func (*GetEventsByTypeParams) BindRequest ¶
func (o *GetEventsByTypeParams) 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 NewGetEventsByTypeParams() beforehand.
type GetEventsByTypeURL ¶
type GetEventsByTypeURL struct { EventType string ExcludeInvalidated *bool Filter string FromTime *string Limit *int64 // contains filtered or unexported fields }
GetEventsByTypeURL generates an URL for the get events by type operation
func (*GetEventsByTypeURL) Build ¶
func (o *GetEventsByTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEventsByTypeURL) BuildFull ¶
func (o *GetEventsByTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEventsByTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetEventsByTypeURL) SetBasePath ¶
func (o *GetEventsByTypeURL) 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 (*GetEventsByTypeURL) String ¶
func (o *GetEventsByTypeURL) String() string
String returns the string representation of the path with query string
func (*GetEventsByTypeURL) StringFull ¶
func (o *GetEventsByTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEventsByTypeURL) WithBasePath ¶
func (o *GetEventsByTypeURL) WithBasePath(bp string) *GetEventsByTypeURL
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 GetEventsHandler ¶
type GetEventsHandler interface {
Handle(GetEventsParams) middleware.Responder
}
GetEventsHandler interface for that can handle valid get events params
type GetEventsHandlerFunc ¶
type GetEventsHandlerFunc func(GetEventsParams) middleware.Responder
GetEventsHandlerFunc turns a function with the right signature into a get events handler
func (GetEventsHandlerFunc) Handle ¶
func (fn GetEventsHandlerFunc) Handle(params GetEventsParams) middleware.Responder
Handle executing the request and returning a response
type GetEventsInternalServerError ¶
type GetEventsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetEventsInternalServerError error
swagger:response getEventsInternalServerError
func NewGetEventsInternalServerError ¶
func NewGetEventsInternalServerError() *GetEventsInternalServerError
NewGetEventsInternalServerError creates GetEventsInternalServerError with default headers values
func (*GetEventsInternalServerError) SetPayload ¶
func (o *GetEventsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get events internal server error response
func (*GetEventsInternalServerError) WithPayload ¶
func (o *GetEventsInternalServerError) WithPayload(payload *models.Error) *GetEventsInternalServerError
WithPayload adds the payload to the get events internal server error response
func (*GetEventsInternalServerError) WriteResponse ¶
func (o *GetEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventsOK ¶
type GetEventsOK struct { /* In: Body */ Payload *GetEventsOKBody `json:"body,omitempty"` }
GetEventsOK ok
swagger:response getEventsOK
func NewGetEventsOK ¶
func NewGetEventsOK() *GetEventsOK
NewGetEventsOK creates GetEventsOK with default headers values
func (*GetEventsOK) SetPayload ¶
func (o *GetEventsOK) SetPayload(payload *GetEventsOKBody)
SetPayload sets the payload to the get events o k response
func (*GetEventsOK) WithPayload ¶
func (o *GetEventsOK) WithPayload(payload *GetEventsOKBody) *GetEventsOK
WithPayload adds the payload to the get events o k response
func (*GetEventsOK) WriteResponse ¶
func (o *GetEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventsOKBody ¶
type GetEventsOKBody struct { // events Events []keptnapi.KeptnContextExtendedCE `json:"events"` // Pointer to the next page NextPageKey string `json:"nextPageKey,omitempty"` // Size of the returned page PageSize int64 `json:"pageSize,omitempty"` // Total number of events TotalCount int64 `json:"totalCount,omitempty"` }
GetEventsOKBody get events o k body
swagger:model GetEventsOKBody
func (*GetEventsOKBody) ContextValidate ¶
ContextValidate validates this get events o k body based on context it is used
func (*GetEventsOKBody) MarshalBinary ¶
func (o *GetEventsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetEventsOKBody) UnmarshalBinary ¶
func (o *GetEventsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetEventsParams ¶
type GetEventsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Before time to fetch keptn cloud events In: query */ BeforeTime *string /*EventID In: query */ EventID *string /*From time to fetch keptn cloud events In: query */ FromTime *string /*keptnContext of the events to get In: query */ KeptnContext *string /*Key of the page to be returned In: query */ NextPageKey *string /*Page size to be returned Maximum: 100 Minimum: 1 In: query Default: 20 */ PageSize *int64 /*Name of the project In: query */ Project *string /*Set to load only root events In: query */ Root *string /*Name of the service In: query */ Service *string /*Name of the event source In: query */ Source *string /*Name of the stage In: query */ Stage *string /*Type of the keptn cloud event In: query */ Type *string }
GetEventsParams contains all the bound params for the get events operation typically these are obtained from a http.Request
swagger:parameters getEvents
func NewGetEventsParams ¶
func NewGetEventsParams() GetEventsParams
NewGetEventsParams creates a new GetEventsParams object with the default values initialized.
func (*GetEventsParams) BindRequest ¶
func (o *GetEventsParams) 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 NewGetEventsParams() beforehand.
type GetEventsURL ¶
type GetEventsURL struct { BeforeTime *string EventID *string FromTime *string KeptnContext *string NextPageKey *string PageSize *int64 Project *string Root *string Service *string Source *string Stage *string Type *string // contains filtered or unexported fields }
GetEventsURL generates an URL for the get events operation
func (*GetEventsURL) Build ¶
func (o *GetEventsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEventsURL) BuildFull ¶
func (o *GetEventsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEventsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetEventsURL) SetBasePath ¶
func (o *GetEventsURL) 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 (*GetEventsURL) String ¶
func (o *GetEventsURL) String() string
String returns the string representation of the path with query string
func (*GetEventsURL) StringFull ¶
func (o *GetEventsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEventsURL) WithBasePath ¶
func (o *GetEventsURL) WithBasePath(bp string) *GetEventsURL
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 GetNewArtifactEvents ¶
type GetNewArtifactEvents struct { Context *middleware.Context Handler GetNewArtifactEventsHandler }
GetNewArtifactEvents swagger:route GET /events/type/newartifact event getNewArtifactEvents
Gets new artifact events from the data store
func NewGetNewArtifactEvents ¶
func NewGetNewArtifactEvents(ctx *middleware.Context, handler GetNewArtifactEventsHandler) *GetNewArtifactEvents
NewGetNewArtifactEvents creates a new http.Handler for the get new artifact events operation
func (*GetNewArtifactEvents) ServeHTTP ¶
func (o *GetNewArtifactEvents) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetNewArtifactEventsDefault ¶
type GetNewArtifactEventsDefault struct { /* In: Body */ Payload *GetNewArtifactEventsDefaultBody `json:"body,omitempty"` // contains filtered or unexported fields }
GetNewArtifactEventsDefault error
swagger:response getNewArtifactEventsDefault
func NewGetNewArtifactEventsDefault ¶
func NewGetNewArtifactEventsDefault(code int) *GetNewArtifactEventsDefault
NewGetNewArtifactEventsDefault creates GetNewArtifactEventsDefault with default headers values
func (*GetNewArtifactEventsDefault) SetPayload ¶
func (o *GetNewArtifactEventsDefault) SetPayload(payload *GetNewArtifactEventsDefaultBody)
SetPayload sets the payload to the get new artifact events default response
func (*GetNewArtifactEventsDefault) SetStatusCode ¶
func (o *GetNewArtifactEventsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get new artifact events default response
func (*GetNewArtifactEventsDefault) WithPayload ¶
func (o *GetNewArtifactEventsDefault) WithPayload(payload *GetNewArtifactEventsDefaultBody) *GetNewArtifactEventsDefault
WithPayload adds the payload to the get new artifact events default response
func (*GetNewArtifactEventsDefault) WithStatusCode ¶
func (o *GetNewArtifactEventsDefault) WithStatusCode(code int) *GetNewArtifactEventsDefault
WithStatusCode adds the status to the get new artifact events default response
func (*GetNewArtifactEventsDefault) WriteResponse ¶
func (o *GetNewArtifactEventsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetNewArtifactEventsDefaultBody ¶
type GetNewArtifactEventsDefaultBody struct { // code Code int64 `json:"code,omitempty"` // fields Fields string `json:"fields,omitempty"` // message // Required: true Message *string `json:"message"` }
GetNewArtifactEventsDefaultBody get new artifact events default body swagger:model GetNewArtifactEventsDefaultBody
func (*GetNewArtifactEventsDefaultBody) MarshalBinary ¶
func (o *GetNewArtifactEventsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetNewArtifactEventsDefaultBody) UnmarshalBinary ¶
func (o *GetNewArtifactEventsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetNewArtifactEventsHandler ¶
type GetNewArtifactEventsHandler interface {
Handle(GetNewArtifactEventsParams) middleware.Responder
}
GetNewArtifactEventsHandler interface for that can handle valid get new artifact events params
type GetNewArtifactEventsHandlerFunc ¶
type GetNewArtifactEventsHandlerFunc func(GetNewArtifactEventsParams) middleware.Responder
GetNewArtifactEventsHandlerFunc turns a function with the right signature into a get new artifact events handler
func (GetNewArtifactEventsHandlerFunc) Handle ¶
func (fn GetNewArtifactEventsHandlerFunc) Handle(params GetNewArtifactEventsParams) middleware.Responder
Handle executing the request and returning a response
type GetNewArtifactEventsOK ¶
type GetNewArtifactEventsOK struct { /* In: Body */ Payload []*GetNewArtifactEventsOKBodyItems0 `json:"body,omitempty"` }
GetNewArtifactEventsOK ok
swagger:response getNewArtifactEventsOK
func NewGetNewArtifactEventsOK ¶
func NewGetNewArtifactEventsOK() *GetNewArtifactEventsOK
NewGetNewArtifactEventsOK creates GetNewArtifactEventsOK with default headers values
func (*GetNewArtifactEventsOK) SetPayload ¶
func (o *GetNewArtifactEventsOK) SetPayload(payload []*GetNewArtifactEventsOKBodyItems0)
SetPayload sets the payload to the get new artifact events o k response
func (*GetNewArtifactEventsOK) WithPayload ¶
func (o *GetNewArtifactEventsOK) WithPayload(payload []*GetNewArtifactEventsOKBodyItems0) *GetNewArtifactEventsOK
WithPayload adds the payload to the get new artifact events o k response
func (*GetNewArtifactEventsOK) WriteResponse ¶
func (o *GetNewArtifactEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetNewArtifactEventsOKBodyItems0 ¶
type GetNewArtifactEventsOKBodyItems0 struct { // contenttype Contenttype string `json:"contenttype,omitempty"` // data Data interface{} `json:"data,omitempty"` // extensions Extensions interface{} `json:"extensions,omitempty"` // id // Required: true ID *string `json:"id"` // source // Required: true Source *string `json:"source"` // specversion // Required: true Specversion *string `json:"specversion"` // time // Format: date-time Time strfmt.DateTime `json:"time,omitempty"` // type // Required: true Type *string `json:"type"` // shkeptncontext Shkeptncontext string `json:"shkeptncontext,omitempty"` }
GetNewArtifactEventsOKBodyItems0 get new artifact events o k body items0 swagger:model GetNewArtifactEventsOKBodyItems0
func (*GetNewArtifactEventsOKBodyItems0) MarshalBinary ¶
func (o *GetNewArtifactEventsOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GetNewArtifactEventsOKBodyItems0) MarshalJSON ¶
func (o GetNewArtifactEventsOKBodyItems0) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*GetNewArtifactEventsOKBodyItems0) UnmarshalBinary ¶
func (o *GetNewArtifactEventsOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetNewArtifactEventsOKBodyItems0) UnmarshalJSON ¶
func (o *GetNewArtifactEventsOKBodyItems0) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type GetNewArtifactEventsParams ¶
type GetNewArtifactEventsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetNewArtifactEventsParams contains all the bound params for the get new artifact events operation typically these are obtained from a http.Request
swagger:parameters getNewArtifactEvents
func NewGetNewArtifactEventsParams ¶
func NewGetNewArtifactEventsParams() GetNewArtifactEventsParams
NewGetNewArtifactEventsParams creates a new GetNewArtifactEventsParams object no default values defined in spec.
func (*GetNewArtifactEventsParams) BindRequest ¶
func (o *GetNewArtifactEventsParams) 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 NewGetNewArtifactEventsParams() beforehand.
type GetNewArtifactEventsURL ¶
type GetNewArtifactEventsURL struct {
// contains filtered or unexported fields
}
GetNewArtifactEventsURL generates an URL for the get new artifact events operation
func (*GetNewArtifactEventsURL) Build ¶
func (o *GetNewArtifactEventsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetNewArtifactEventsURL) BuildFull ¶
func (o *GetNewArtifactEventsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetNewArtifactEventsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetNewArtifactEventsURL) SetBasePath ¶
func (o *GetNewArtifactEventsURL) 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 (*GetNewArtifactEventsURL) String ¶
func (o *GetNewArtifactEventsURL) String() string
String returns the string representation of the path with query string
func (*GetNewArtifactEventsURL) StringFull ¶
func (o *GetNewArtifactEventsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetNewArtifactEventsURL) WithBasePath ¶
func (o *GetNewArtifactEventsURL) WithBasePath(bp string) *GetNewArtifactEventsURL
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 SaveEventCreated ¶
type SaveEventCreated struct { }
SaveEventCreated created
swagger:response saveEventCreated
func NewSaveEventCreated ¶
func NewSaveEventCreated() *SaveEventCreated
NewSaveEventCreated creates SaveEventCreated with default headers values
func (*SaveEventCreated) WriteResponse ¶
func (o *SaveEventCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SaveEventDefault ¶
type SaveEventDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SaveEventDefault error
swagger:response saveEventDefault
func NewSaveEventDefault ¶
func NewSaveEventDefault(code int) *SaveEventDefault
NewSaveEventDefault creates SaveEventDefault with default headers values
func (*SaveEventDefault) SetPayload ¶
func (o *SaveEventDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the save event default response
func (*SaveEventDefault) SetStatusCode ¶
func (o *SaveEventDefault) SetStatusCode(code int)
SetStatusCode sets the status to the save event default response
func (*SaveEventDefault) WithPayload ¶
func (o *SaveEventDefault) WithPayload(payload *models.Error) *SaveEventDefault
WithPayload adds the payload to the save event default response
func (*SaveEventDefault) WithStatusCode ¶
func (o *SaveEventDefault) WithStatusCode(code int) *SaveEventDefault
WithStatusCode adds the status to the save event default response
func (*SaveEventDefault) WriteResponse ¶
func (o *SaveEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SaveEventURL ¶
type SaveEventURL struct {
// contains filtered or unexported fields
}
SaveEventURL generates an URL for the save event operation
func (*SaveEventURL) Build ¶
func (o *SaveEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*SaveEventURL) BuildFull ¶
func (o *SaveEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SaveEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SaveEventURL) SetBasePath ¶
func (o *SaveEventURL) 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 (*SaveEventURL) String ¶
func (o *SaveEventURL) String() string
String returns the string representation of the path with query string
func (*SaveEventURL) StringFull ¶
func (o *SaveEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SaveEventURL) WithBasePath ¶
func (o *SaveEventURL) WithBasePath(bp string) *SaveEventURL
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 ¶
- get_event.go
- get_event_parameters.go
- get_event_responses.go
- get_event_urlbuilder.go
- get_events.go
- get_events_by_type.go
- get_events_by_type_parameters.go
- get_events_by_type_responses.go
- get_events_by_type_urlbuilder.go
- get_events_parameters.go
- get_events_responses.go
- get_events_urlbuilder.go
- get_new_artifact_events.go
- get_new_artifact_events_parameters.go
- get_new_artifact_events_responses.go
- get_new_artifact_events_urlbuilder.go
- save_event_responses.go
- save_event_urlbuilder.go