Documentation
¶
Index ¶
- Constants
- type EmitEvent
- type EmitEventBadRequest
- type EmitEventDefault
- func (o *EmitEventDefault) SetPayload(payload *v1.Error)
- func (o *EmitEventDefault) SetStatusCode(code int)
- func (o *EmitEventDefault) WithPayload(payload *v1.Error) *EmitEventDefault
- func (o *EmitEventDefault) WithStatusCode(code int) *EmitEventDefault
- func (o *EmitEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type EmitEventForbidden
- type EmitEventHandler
- type EmitEventHandlerFunc
- type EmitEventOK
- type EmitEventParams
- type EmitEventURL
- func (o *EmitEventURL) Build() (*url.URL, error)
- func (o *EmitEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EmitEventURL) Must(u *url.URL, err error) *url.URL
- func (o *EmitEventURL) SetBasePath(bp string)
- func (o *EmitEventURL) String() string
- func (o *EmitEventURL) StringFull(scheme, host string) string
- func (o *EmitEventURL) WithBasePath(bp string) *EmitEventURL
- type EmitEventUnauthorized
- type IngestEvent
- type IngestEventBadRequest
- type IngestEventDefault
- func (o *IngestEventDefault) SetPayload(payload *v1.Error)
- func (o *IngestEventDefault) SetStatusCode(code int)
- func (o *IngestEventDefault) WithPayload(payload *v1.Error) *IngestEventDefault
- func (o *IngestEventDefault) WithStatusCode(code int) *IngestEventDefault
- func (o *IngestEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type IngestEventForbidden
- type IngestEventHandler
- type IngestEventHandlerFunc
- type IngestEventOK
- type IngestEventParams
- type IngestEventURL
- func (o *IngestEventURL) Build() (*url.URL, error)
- func (o *IngestEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IngestEventURL) Must(u *url.URL, err error) *url.URL
- func (o *IngestEventURL) SetBasePath(bp string)
- func (o *IngestEventURL) String() string
- func (o *IngestEventURL) StringFull(scheme, host string) string
- func (o *IngestEventURL) WithBasePath(bp string) *IngestEventURL
- type IngestEventUnauthorized
Constants ¶
const EmitEventBadRequestCode int = 400
EmitEventBadRequestCode is the HTTP code returned for type EmitEventBadRequest
const EmitEventForbiddenCode int = 403
EmitEventForbiddenCode is the HTTP code returned for type EmitEventForbidden
const EmitEventOKCode int = 200
EmitEventOKCode is the HTTP code returned for type EmitEventOK
EmitEventUnauthorizedCode is the HTTP code returned for type EmitEventUnauthorized
const IngestEventBadRequestCode int = 400
IngestEventBadRequestCode is the HTTP code returned for type IngestEventBadRequest
const IngestEventForbiddenCode int = 403
IngestEventForbiddenCode is the HTTP code returned for type IngestEventForbidden
const IngestEventOKCode int = 200
IngestEventOKCode is the HTTP code returned for type IngestEventOK
IngestEventUnauthorizedCode is the HTTP code returned for type IngestEventUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmitEvent ¶
type EmitEvent struct { Context *middleware.Context Handler EmitEventHandler }
EmitEvent swagger:route POST / events emitEvent
Emit an event
func NewEmitEvent ¶
func NewEmitEvent(ctx *middleware.Context, handler EmitEventHandler) *EmitEvent
NewEmitEvent creates a new http.Handler for the emit event operation
type EmitEventBadRequest ¶
EmitEventBadRequest Invalid input
swagger:response emitEventBadRequest
func NewEmitEventBadRequest ¶
func NewEmitEventBadRequest() *EmitEventBadRequest
NewEmitEventBadRequest creates EmitEventBadRequest with default headers values
func (*EmitEventBadRequest) SetPayload ¶
func (o *EmitEventBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the emit event bad request response
func (*EmitEventBadRequest) WithPayload ¶
func (o *EmitEventBadRequest) WithPayload(payload *v1.Error) *EmitEventBadRequest
WithPayload adds the payload to the emit event bad request response
func (*EmitEventBadRequest) WriteResponse ¶
func (o *EmitEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EmitEventDefault ¶
type EmitEventDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
EmitEventDefault Unknown error
swagger:response emitEventDefault
func NewEmitEventDefault ¶
func NewEmitEventDefault(code int) *EmitEventDefault
NewEmitEventDefault creates EmitEventDefault with default headers values
func (*EmitEventDefault) SetPayload ¶
func (o *EmitEventDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the emit event default response
func (*EmitEventDefault) SetStatusCode ¶
func (o *EmitEventDefault) SetStatusCode(code int)
SetStatusCode sets the status to the emit event default response
func (*EmitEventDefault) WithPayload ¶
func (o *EmitEventDefault) WithPayload(payload *v1.Error) *EmitEventDefault
WithPayload adds the payload to the emit event default response
func (*EmitEventDefault) WithStatusCode ¶
func (o *EmitEventDefault) WithStatusCode(code int) *EmitEventDefault
WithStatusCode adds the status to the emit event default response
func (*EmitEventDefault) WriteResponse ¶
func (o *EmitEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EmitEventForbidden ¶ added in v0.1.18
EmitEventForbidden access to this resource is forbidden
swagger:response emitEventForbidden
func NewEmitEventForbidden ¶ added in v0.1.18
func NewEmitEventForbidden() *EmitEventForbidden
NewEmitEventForbidden creates EmitEventForbidden with default headers values
func (*EmitEventForbidden) SetPayload ¶ added in v0.1.18
func (o *EmitEventForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the emit event forbidden response
func (*EmitEventForbidden) WithPayload ¶ added in v0.1.18
func (o *EmitEventForbidden) WithPayload(payload *v1.Error) *EmitEventForbidden
WithPayload adds the payload to the emit event forbidden response
func (*EmitEventForbidden) WriteResponse ¶ added in v0.1.18
func (o *EmitEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EmitEventHandler ¶
type EmitEventHandler interface {
Handle(EmitEventParams, interface{}) middleware.Responder
}
EmitEventHandler interface for that can handle valid emit event params
type EmitEventHandlerFunc ¶
type EmitEventHandlerFunc func(EmitEventParams, interface{}) middleware.Responder
EmitEventHandlerFunc turns a function with the right signature into a emit event handler
func (EmitEventHandlerFunc) Handle ¶
func (fn EmitEventHandlerFunc) Handle(params EmitEventParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type EmitEventOK ¶
EmitEventOK Event emitted
swagger:response emitEventOK
func NewEmitEventOK ¶
func NewEmitEventOK() *EmitEventOK
NewEmitEventOK creates EmitEventOK with default headers values
func (*EmitEventOK) SetPayload ¶
func (o *EmitEventOK) SetPayload(payload *v1.Emission)
SetPayload sets the payload to the emit event o k response
func (*EmitEventOK) WithPayload ¶
func (o *EmitEventOK) WithPayload(payload *v1.Emission) *EmitEventOK
WithPayload adds the payload to the emit event o k response
func (*EmitEventOK) WriteResponse ¶
func (o *EmitEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EmitEventParams ¶
type EmitEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*emission object Required: true In: body */ Body *v1.Emission }
EmitEventParams contains all the bound params for the emit event operation typically these are obtained from a http.Request
swagger:parameters emitEvent
func NewEmitEventParams ¶
func NewEmitEventParams() EmitEventParams
NewEmitEventParams creates a new EmitEventParams object no default values defined in spec.
func (*EmitEventParams) BindRequest ¶
func (o *EmitEventParams) 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 NewEmitEventParams() beforehand.
type EmitEventURL ¶
type EmitEventURL struct {
// contains filtered or unexported fields
}
EmitEventURL generates an URL for the emit event operation
func (*EmitEventURL) Build ¶
func (o *EmitEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*EmitEventURL) BuildFull ¶
func (o *EmitEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*EmitEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*EmitEventURL) SetBasePath ¶
func (o *EmitEventURL) 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 (*EmitEventURL) String ¶
func (o *EmitEventURL) String() string
String returns the string representation of the path with query string
func (*EmitEventURL) StringFull ¶
func (o *EmitEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*EmitEventURL) WithBasePath ¶
func (o *EmitEventURL) WithBasePath(bp string) *EmitEventURL
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 EmitEventUnauthorized ¶
EmitEventUnauthorized Unauthorized Request
swagger:response emitEventUnauthorized
func NewEmitEventUnauthorized ¶
func NewEmitEventUnauthorized() *EmitEventUnauthorized
NewEmitEventUnauthorized creates EmitEventUnauthorized with default headers values
func (*EmitEventUnauthorized) SetPayload ¶
func (o *EmitEventUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the emit event unauthorized response
func (*EmitEventUnauthorized) WithPayload ¶
func (o *EmitEventUnauthorized) WithPayload(payload *v1.Error) *EmitEventUnauthorized
WithPayload adds the payload to the emit event unauthorized response
func (*EmitEventUnauthorized) WriteResponse ¶
func (o *EmitEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IngestEvent ¶
type IngestEvent struct { Context *middleware.Context Handler IngestEventHandler }
IngestEvent swagger:route POST /ingest events ingestEvent
Ingest an event from drivers
func NewIngestEvent ¶
func NewIngestEvent(ctx *middleware.Context, handler IngestEventHandler) *IngestEvent
NewIngestEvent creates a new http.Handler for the ingest event operation
func (*IngestEvent) ServeHTTP ¶
func (o *IngestEvent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type IngestEventBadRequest ¶
IngestEventBadRequest Invalid input
swagger:response ingestEventBadRequest
func NewIngestEventBadRequest ¶
func NewIngestEventBadRequest() *IngestEventBadRequest
NewIngestEventBadRequest creates IngestEventBadRequest with default headers values
func (*IngestEventBadRequest) SetPayload ¶
func (o *IngestEventBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the ingest event bad request response
func (*IngestEventBadRequest) WithPayload ¶
func (o *IngestEventBadRequest) WithPayload(payload *v1.Error) *IngestEventBadRequest
WithPayload adds the payload to the ingest event bad request response
func (*IngestEventBadRequest) WriteResponse ¶
func (o *IngestEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IngestEventDefault ¶
type IngestEventDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
IngestEventDefault Unknown error
swagger:response ingestEventDefault
func NewIngestEventDefault ¶
func NewIngestEventDefault(code int) *IngestEventDefault
NewIngestEventDefault creates IngestEventDefault with default headers values
func (*IngestEventDefault) SetPayload ¶
func (o *IngestEventDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the ingest event default response
func (*IngestEventDefault) SetStatusCode ¶
func (o *IngestEventDefault) SetStatusCode(code int)
SetStatusCode sets the status to the ingest event default response
func (*IngestEventDefault) WithPayload ¶
func (o *IngestEventDefault) WithPayload(payload *v1.Error) *IngestEventDefault
WithPayload adds the payload to the ingest event default response
func (*IngestEventDefault) WithStatusCode ¶
func (o *IngestEventDefault) WithStatusCode(code int) *IngestEventDefault
WithStatusCode adds the status to the ingest event default response
func (*IngestEventDefault) WriteResponse ¶
func (o *IngestEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IngestEventForbidden ¶
IngestEventForbidden access to this resource is forbidden
swagger:response ingestEventForbidden
func NewIngestEventForbidden ¶
func NewIngestEventForbidden() *IngestEventForbidden
NewIngestEventForbidden creates IngestEventForbidden with default headers values
func (*IngestEventForbidden) SetPayload ¶
func (o *IngestEventForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the ingest event forbidden response
func (*IngestEventForbidden) WithPayload ¶
func (o *IngestEventForbidden) WithPayload(payload *v1.Error) *IngestEventForbidden
WithPayload adds the payload to the ingest event forbidden response
func (*IngestEventForbidden) WriteResponse ¶
func (o *IngestEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IngestEventHandler ¶
type IngestEventHandler interface {
Handle(IngestEventParams, interface{}) middleware.Responder
}
IngestEventHandler interface for that can handle valid ingest event params
type IngestEventHandlerFunc ¶
type IngestEventHandlerFunc func(IngestEventParams, interface{}) middleware.Responder
IngestEventHandlerFunc turns a function with the right signature into a ingest event handler
func (IngestEventHandlerFunc) Handle ¶
func (fn IngestEventHandlerFunc) Handle(params IngestEventParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type IngestEventOK ¶
IngestEventOK Event emitted
swagger:response ingestEventOK
func NewIngestEventOK ¶
func NewIngestEventOK() *IngestEventOK
NewIngestEventOK creates IngestEventOK with default headers values
func (*IngestEventOK) SetPayload ¶
func (o *IngestEventOK) SetPayload(payload *v1.Emission)
SetPayload sets the payload to the ingest event o k response
func (*IngestEventOK) WithPayload ¶
func (o *IngestEventOK) WithPayload(payload *v1.Emission) *IngestEventOK
WithPayload adds the payload to the ingest event o k response
func (*IngestEventOK) WriteResponse ¶
func (o *IngestEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IngestEventParams ¶
type IngestEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Token to authenticate event Required: true In: query */ AuthToken string /*emission object Required: true In: body */ Body *v1.Emission }
IngestEventParams contains all the bound params for the ingest event operation typically these are obtained from a http.Request
swagger:parameters IngestEvent
func NewIngestEventParams ¶
func NewIngestEventParams() IngestEventParams
NewIngestEventParams creates a new IngestEventParams object no default values defined in spec.
func (*IngestEventParams) BindRequest ¶
func (o *IngestEventParams) 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 NewIngestEventParams() beforehand.
type IngestEventURL ¶
type IngestEventURL struct { AuthToken string // contains filtered or unexported fields }
IngestEventURL generates an URL for the ingest event operation
func (*IngestEventURL) Build ¶
func (o *IngestEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*IngestEventURL) BuildFull ¶
func (o *IngestEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*IngestEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*IngestEventURL) SetBasePath ¶
func (o *IngestEventURL) 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 (*IngestEventURL) String ¶
func (o *IngestEventURL) String() string
String returns the string representation of the path with query string
func (*IngestEventURL) StringFull ¶
func (o *IngestEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*IngestEventURL) WithBasePath ¶
func (o *IngestEventURL) WithBasePath(bp string) *IngestEventURL
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 IngestEventUnauthorized ¶
IngestEventUnauthorized Unauthorized Request
swagger:response ingestEventUnauthorized
func NewIngestEventUnauthorized ¶
func NewIngestEventUnauthorized() *IngestEventUnauthorized
NewIngestEventUnauthorized creates IngestEventUnauthorized with default headers values
func (*IngestEventUnauthorized) SetPayload ¶
func (o *IngestEventUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the ingest event unauthorized response
func (*IngestEventUnauthorized) WithPayload ¶
func (o *IngestEventUnauthorized) WithPayload(payload *v1.Error) *IngestEventUnauthorized
WithPayload adds the payload to the ingest event unauthorized response
func (*IngestEventUnauthorized) WriteResponse ¶
func (o *IngestEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client