Documentation ¶
Index ¶
- Constants
- type GetLogs
- type GetLogsByEventID
- type GetLogsByEventIDDefault
- func (o *GetLogsByEventIDDefault) SetPayload(payload *GetLogsByEventIDDefaultBody)
- func (o *GetLogsByEventIDDefault) SetStatusCode(code int)
- func (o *GetLogsByEventIDDefault) WithPayload(payload *GetLogsByEventIDDefaultBody) *GetLogsByEventIDDefault
- func (o *GetLogsByEventIDDefault) WithStatusCode(code int) *GetLogsByEventIDDefault
- func (o *GetLogsByEventIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLogsByEventIDDefaultBody
- type GetLogsByEventIDHandler
- type GetLogsByEventIDHandlerFunc
- type GetLogsByEventIDOK
- type GetLogsByEventIDOKBodyItems0
- type GetLogsByEventIDParams
- type GetLogsByEventIDURL
- func (o *GetLogsByEventIDURL) Build() (*url.URL, error)
- func (o *GetLogsByEventIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLogsByEventIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLogsByEventIDURL) SetBasePath(bp string)
- func (o *GetLogsByEventIDURL) String() string
- func (o *GetLogsByEventIDURL) StringFull(scheme, host string) string
- func (o *GetLogsByEventIDURL) WithBasePath(bp string) *GetLogsByEventIDURL
- type GetLogsDefault
- func (o *GetLogsDefault) SetPayload(payload *models.Error)
- func (o *GetLogsDefault) SetStatusCode(code int)
- func (o *GetLogsDefault) WithPayload(payload *models.Error) *GetLogsDefault
- func (o *GetLogsDefault) WithStatusCode(code int) *GetLogsDefault
- func (o *GetLogsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLogsHandler
- type GetLogsHandlerFunc
- type GetLogsOK
- type GetLogsOKBody
- type GetLogsParams
- type GetLogsURL
- func (o *GetLogsURL) Build() (*url.URL, error)
- func (o *GetLogsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLogsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLogsURL) SetBasePath(bp string)
- func (o *GetLogsURL) String() string
- func (o *GetLogsURL) StringFull(scheme, host string) string
- func (o *GetLogsURL) WithBasePath(bp string) *GetLogsURL
- type SaveLog
- type SaveLogCreated
- type SaveLogDefault
- func (o *SaveLogDefault) SetPayload(payload *models.Error)
- func (o *SaveLogDefault) SetStatusCode(code int)
- func (o *SaveLogDefault) WithPayload(payload *models.Error) *SaveLogDefault
- func (o *SaveLogDefault) WithStatusCode(code int) *SaveLogDefault
- func (o *SaveLogDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SaveLogHandler
- type SaveLogHandlerFunc
- type SaveLogParams
- type SaveLogURL
- func (o *SaveLogURL) Build() (*url.URL, error)
- func (o *SaveLogURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SaveLogURL) Must(u *url.URL, err error) *url.URL
- func (o *SaveLogURL) SetBasePath(bp string)
- func (o *SaveLogURL) String() string
- func (o *SaveLogURL) StringFull(scheme, host string) string
- func (o *SaveLogURL) WithBasePath(bp string) *SaveLogURL
Constants ¶
const GetLogsByEventIDOKCode int = 200
GetLogsByEventIDOKCode is the HTTP code returned for type GetLogsByEventIDOK
const GetLogsOKCode int = 200
GetLogsOKCode is the HTTP code returned for type GetLogsOK
const SaveLogCreatedCode int = 201
SaveLogCreatedCode is the HTTP code returned for type SaveLogCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetLogs ¶
type GetLogs struct { Context *middleware.Context Handler GetLogsHandler }
GetLogs swagger:route GET /log logs getLogs
gets the logs from the datastore
func NewGetLogs ¶
func NewGetLogs(ctx *middleware.Context, handler GetLogsHandler) *GetLogs
NewGetLogs creates a new http.Handler for the get logs operation
type GetLogsByEventID ¶
type GetLogsByEventID struct { Context *middleware.Context Handler GetLogsByEventIDHandler }
GetLogsByEventID swagger:route GET /logs/eventId/{eventId} logs getLogsByEventId
Get logs by eventId
func NewGetLogsByEventID ¶
func NewGetLogsByEventID(ctx *middleware.Context, handler GetLogsByEventIDHandler) *GetLogsByEventID
NewGetLogsByEventID creates a new http.Handler for the get logs by event Id operation
func (*GetLogsByEventID) ServeHTTP ¶
func (o *GetLogsByEventID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLogsByEventIDDefault ¶
type GetLogsByEventIDDefault struct { /* In: Body */ Payload *GetLogsByEventIDDefaultBody `json:"body,omitempty"` // contains filtered or unexported fields }
GetLogsByEventIDDefault error
swagger:response getLogsByEventIdDefault
func NewGetLogsByEventIDDefault ¶
func NewGetLogsByEventIDDefault(code int) *GetLogsByEventIDDefault
NewGetLogsByEventIDDefault creates GetLogsByEventIDDefault with default headers values
func (*GetLogsByEventIDDefault) SetPayload ¶
func (o *GetLogsByEventIDDefault) SetPayload(payload *GetLogsByEventIDDefaultBody)
SetPayload sets the payload to the get logs by event Id default response
func (*GetLogsByEventIDDefault) SetStatusCode ¶
func (o *GetLogsByEventIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get logs by event Id default response
func (*GetLogsByEventIDDefault) WithPayload ¶
func (o *GetLogsByEventIDDefault) WithPayload(payload *GetLogsByEventIDDefaultBody) *GetLogsByEventIDDefault
WithPayload adds the payload to the get logs by event Id default response
func (*GetLogsByEventIDDefault) WithStatusCode ¶
func (o *GetLogsByEventIDDefault) WithStatusCode(code int) *GetLogsByEventIDDefault
WithStatusCode adds the status to the get logs by event Id default response
func (*GetLogsByEventIDDefault) WriteResponse ¶
func (o *GetLogsByEventIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsByEventIDDefaultBody ¶
type GetLogsByEventIDDefaultBody struct { // code Code int64 `json:"code,omitempty"` // fields Fields string `json:"fields,omitempty"` // message // Required: true Message *string `json:"message"` }
GetLogsByEventIDDefaultBody get logs by event ID default body swagger:model GetLogsByEventIDDefaultBody
func (*GetLogsByEventIDDefaultBody) MarshalBinary ¶
func (o *GetLogsByEventIDDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLogsByEventIDDefaultBody) UnmarshalBinary ¶
func (o *GetLogsByEventIDDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetLogsByEventIDHandler ¶
type GetLogsByEventIDHandler interface {
Handle(GetLogsByEventIDParams) middleware.Responder
}
GetLogsByEventIDHandler interface for that can handle valid get logs by event Id params
type GetLogsByEventIDHandlerFunc ¶
type GetLogsByEventIDHandlerFunc func(GetLogsByEventIDParams) middleware.Responder
GetLogsByEventIDHandlerFunc turns a function with the right signature into a get logs by event Id handler
func (GetLogsByEventIDHandlerFunc) Handle ¶
func (fn GetLogsByEventIDHandlerFunc) Handle(params GetLogsByEventIDParams) middleware.Responder
Handle executing the request and returning a response
type GetLogsByEventIDOK ¶
type GetLogsByEventIDOK struct { /* In: Body */ Payload []*GetLogsByEventIDOKBodyItems0 `json:"body,omitempty"` }
GetLogsByEventIDOK ok
swagger:response getLogsByEventIdOK
func NewGetLogsByEventIDOK ¶
func NewGetLogsByEventIDOK() *GetLogsByEventIDOK
NewGetLogsByEventIDOK creates GetLogsByEventIDOK with default headers values
func (*GetLogsByEventIDOK) SetPayload ¶
func (o *GetLogsByEventIDOK) SetPayload(payload []*GetLogsByEventIDOKBodyItems0)
SetPayload sets the payload to the get logs by event Id o k response
func (*GetLogsByEventIDOK) WithPayload ¶
func (o *GetLogsByEventIDOK) WithPayload(payload []*GetLogsByEventIDOKBodyItems0) *GetLogsByEventIDOK
WithPayload adds the payload to the get logs by event Id o k response
func (*GetLogsByEventIDOK) WriteResponse ¶
func (o *GetLogsByEventIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsByEventIDOKBodyItems0 ¶
type GetLogsByEventIDOKBodyItems0 struct { // event Id EventID string `json:"eventId,omitempty"` // keptn context KeptnContext string `json:"keptnContext,omitempty"` // keptn service KeptnService string `json:"keptnService,omitempty"` // log level LogLevel string `json:"logLevel,omitempty"` // message Message string `json:"message,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
GetLogsByEventIDOKBodyItems0 get logs by event ID o k body items0 swagger:model GetLogsByEventIDOKBodyItems0
func (*GetLogsByEventIDOKBodyItems0) MarshalBinary ¶
func (o *GetLogsByEventIDOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLogsByEventIDOKBodyItems0) UnmarshalBinary ¶
func (o *GetLogsByEventIDOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetLogsByEventIDParams ¶
type GetLogsByEventIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*EventId of the event the logs belong to Required: true In: path */ EventID string }
GetLogsByEventIDParams contains all the bound params for the get logs by event Id operation typically these are obtained from a http.Request
swagger:parameters getLogsByEventId
func NewGetLogsByEventIDParams ¶
func NewGetLogsByEventIDParams() GetLogsByEventIDParams
NewGetLogsByEventIDParams creates a new GetLogsByEventIDParams object no default values defined in spec.
func (*GetLogsByEventIDParams) BindRequest ¶
func (o *GetLogsByEventIDParams) 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 NewGetLogsByEventIDParams() beforehand.
type GetLogsByEventIDURL ¶
type GetLogsByEventIDURL struct { EventID string // contains filtered or unexported fields }
GetLogsByEventIDURL generates an URL for the get logs by event Id operation
func (*GetLogsByEventIDURL) Build ¶
func (o *GetLogsByEventIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLogsByEventIDURL) BuildFull ¶
func (o *GetLogsByEventIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLogsByEventIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetLogsByEventIDURL) SetBasePath ¶
func (o *GetLogsByEventIDURL) 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 (*GetLogsByEventIDURL) String ¶
func (o *GetLogsByEventIDURL) String() string
String returns the string representation of the path with query string
func (*GetLogsByEventIDURL) StringFull ¶
func (o *GetLogsByEventIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLogsByEventIDURL) WithBasePath ¶
func (o *GetLogsByEventIDURL) WithBasePath(bp string) *GetLogsByEventIDURL
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 GetLogsDefault ¶
type GetLogsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetLogsDefault error
swagger:response getLogsDefault
func NewGetLogsDefault ¶
func NewGetLogsDefault(code int) *GetLogsDefault
NewGetLogsDefault creates GetLogsDefault with default headers values
func (*GetLogsDefault) SetPayload ¶
func (o *GetLogsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get logs default response
func (*GetLogsDefault) SetStatusCode ¶
func (o *GetLogsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get logs default response
func (*GetLogsDefault) WithPayload ¶
func (o *GetLogsDefault) WithPayload(payload *models.Error) *GetLogsDefault
WithPayload adds the payload to the get logs default response
func (*GetLogsDefault) WithStatusCode ¶
func (o *GetLogsDefault) WithStatusCode(code int) *GetLogsDefault
WithStatusCode adds the status to the get logs default response
func (*GetLogsDefault) WriteResponse ¶
func (o *GetLogsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsHandler ¶
type GetLogsHandler interface {
Handle(GetLogsParams) middleware.Responder
}
GetLogsHandler interface for that can handle valid get logs params
type GetLogsHandlerFunc ¶
type GetLogsHandlerFunc func(GetLogsParams) middleware.Responder
GetLogsHandlerFunc turns a function with the right signature into a get logs handler
func (GetLogsHandlerFunc) Handle ¶
func (fn GetLogsHandlerFunc) Handle(params GetLogsParams) middleware.Responder
Handle executing the request and returning a response
type GetLogsOK ¶
type GetLogsOK struct { /* In: Body */ Payload *GetLogsOKBody `json:"body,omitempty"` }
GetLogsOK ok
swagger:response getLogsOK
func NewGetLogsOK ¶
func NewGetLogsOK() *GetLogsOK
NewGetLogsOK creates GetLogsOK with default headers values
func (*GetLogsOK) SetPayload ¶
func (o *GetLogsOK) SetPayload(payload *GetLogsOKBody)
SetPayload sets the payload to the get logs o k response
func (*GetLogsOK) WithPayload ¶
func (o *GetLogsOK) WithPayload(payload *GetLogsOKBody) *GetLogsOK
WithPayload adds the payload to the get logs o k response
func (*GetLogsOK) WriteResponse ¶
func (o *GetLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsOKBody ¶
type GetLogsOKBody struct { // logs Logs []*models.LogEntry `json:"logs"` // Pointer to the next page NextPageKey string `json:"nextPageKey,omitempty"` // Size of the returned page PageSize int64 `json:"pageSize,omitempty"` // Total number of logs TotalCount int64 `json:"totalCount,omitempty"` }
GetLogsOKBody get logs o k body swagger:model GetLogsOKBody
func (*GetLogsOKBody) MarshalBinary ¶
func (o *GetLogsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLogsOKBody) UnmarshalBinary ¶
func (o *GetLogsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetLogsParams ¶
type GetLogsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*EventId of the event the logs belong to In: query */ EventID *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 }
GetLogsParams contains all the bound params for the get logs operation typically these are obtained from a http.Request
swagger:parameters getLogs
func NewGetLogsParams ¶
func NewGetLogsParams() GetLogsParams
NewGetLogsParams creates a new GetLogsParams object with the default values initialized.
func (*GetLogsParams) BindRequest ¶
func (o *GetLogsParams) 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 NewGetLogsParams() beforehand.
type GetLogsURL ¶
type GetLogsURL struct { EventID *string NextPageKey *string PageSize *int64 // contains filtered or unexported fields }
GetLogsURL generates an URL for the get logs operation
func (*GetLogsURL) Build ¶
func (o *GetLogsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLogsURL) BuildFull ¶
func (o *GetLogsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLogsURL) SetBasePath ¶
func (o *GetLogsURL) 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 (*GetLogsURL) String ¶
func (o *GetLogsURL) String() string
String returns the string representation of the path with query string
func (*GetLogsURL) StringFull ¶
func (o *GetLogsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLogsURL) WithBasePath ¶
func (o *GetLogsURL) WithBasePath(bp string) *GetLogsURL
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 SaveLog ¶
type SaveLog struct { Context *middleware.Context Handler SaveLogHandler }
SaveLog swagger:route POST /log logs saveLog
Saves a log to the datastore
func NewSaveLog ¶
func NewSaveLog(ctx *middleware.Context, handler SaveLogHandler) *SaveLog
NewSaveLog creates a new http.Handler for the save log operation
type SaveLogCreated ¶
type SaveLogCreated struct { }
SaveLogCreated created
swagger:response saveLogCreated
func NewSaveLogCreated ¶
func NewSaveLogCreated() *SaveLogCreated
NewSaveLogCreated creates SaveLogCreated with default headers values
func (*SaveLogCreated) WriteResponse ¶
func (o *SaveLogCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SaveLogDefault ¶
type SaveLogDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SaveLogDefault error
swagger:response saveLogDefault
func NewSaveLogDefault ¶
func NewSaveLogDefault(code int) *SaveLogDefault
NewSaveLogDefault creates SaveLogDefault with default headers values
func (*SaveLogDefault) SetPayload ¶
func (o *SaveLogDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the save log default response
func (*SaveLogDefault) SetStatusCode ¶
func (o *SaveLogDefault) SetStatusCode(code int)
SetStatusCode sets the status to the save log default response
func (*SaveLogDefault) WithPayload ¶
func (o *SaveLogDefault) WithPayload(payload *models.Error) *SaveLogDefault
WithPayload adds the payload to the save log default response
func (*SaveLogDefault) WithStatusCode ¶
func (o *SaveLogDefault) WithStatusCode(code int) *SaveLogDefault
WithStatusCode adds the status to the save log default response
func (*SaveLogDefault) WriteResponse ¶
func (o *SaveLogDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SaveLogHandler ¶
type SaveLogHandler interface {
Handle(SaveLogParams) middleware.Responder
}
SaveLogHandler interface for that can handle valid save log params
type SaveLogHandlerFunc ¶
type SaveLogHandlerFunc func(SaveLogParams) middleware.Responder
SaveLogHandlerFunc turns a function with the right signature into a save log handler
func (SaveLogHandlerFunc) Handle ¶
func (fn SaveLogHandlerFunc) Handle(params SaveLogParams) middleware.Responder
Handle executing the request and returning a response
type SaveLogParams ¶
type SaveLogParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body []*models.LogEntry }
SaveLogParams contains all the bound params for the save log operation typically these are obtained from a http.Request
swagger:parameters saveLog
func NewSaveLogParams ¶
func NewSaveLogParams() SaveLogParams
NewSaveLogParams creates a new SaveLogParams object no default values defined in spec.
func (*SaveLogParams) BindRequest ¶
func (o *SaveLogParams) 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 NewSaveLogParams() beforehand.
type SaveLogURL ¶
type SaveLogURL struct {
// contains filtered or unexported fields
}
SaveLogURL generates an URL for the save log operation
func (*SaveLogURL) Build ¶
func (o *SaveLogURL) Build() (*url.URL, error)
Build a url path and query string
func (*SaveLogURL) BuildFull ¶
func (o *SaveLogURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SaveLogURL) SetBasePath ¶
func (o *SaveLogURL) 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 (*SaveLogURL) String ¶
func (o *SaveLogURL) String() string
String returns the string representation of the path with query string
func (*SaveLogURL) StringFull ¶
func (o *SaveLogURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SaveLogURL) WithBasePath ¶
func (o *SaveLogURL) WithBasePath(bp string) *SaveLogURL
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