events

package
v0.1.1-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2018 License: Apache-2.0, CC-BY-4.0, MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const CreateEventEndpointGoneCode int = 410

CreateEventEndpointGoneCode is the HTTP code returned for type CreateEventEndpointGone

View Source
const CreateEventEndpointNotFoundCode int = 404

CreateEventEndpointNotFoundCode is the HTTP code returned for type CreateEventEndpointNotFound

View Source
const CreateEventEndpointOKCode int = 200

CreateEventEndpointOKCode is the HTTP code returned for type CreateEventEndpointOK

View Source
const CreateEventEndpointUnauthorizedCode int = 401

CreateEventEndpointUnauthorizedCode is the HTTP code returned for type CreateEventEndpointUnauthorized

View Source
const DeleteEventEndpointGoneCode int = 410

DeleteEventEndpointGoneCode is the HTTP code returned for type DeleteEventEndpointGone

View Source
const DeleteEventEndpointNotFoundCode int = 404

DeleteEventEndpointNotFoundCode is the HTTP code returned for type DeleteEventEndpointNotFound

View Source
const DeleteEventEndpointOKCode int = 200

DeleteEventEndpointOKCode is the HTTP code returned for type DeleteEventEndpointOK

View Source
const DeleteEventEndpointUnauthorizedCode int = 401

DeleteEventEndpointUnauthorizedCode is the HTTP code returned for type DeleteEventEndpointUnauthorized

View Source
const GetEventEndpointGoneCode int = 410

GetEventEndpointGoneCode is the HTTP code returned for type GetEventEndpointGone

View Source
const GetEventEndpointNotFoundCode int = 404

GetEventEndpointNotFoundCode is the HTTP code returned for type GetEventEndpointNotFound

View Source
const GetEventEndpointOKCode int = 200

GetEventEndpointOKCode is the HTTP code returned for type GetEventEndpointOK

View Source
const GetEventEndpointUnauthorizedCode int = 401

GetEventEndpointUnauthorizedCode is the HTTP code returned for type GetEventEndpointUnauthorized

View Source
const GetEventTypeEndpointsGoneCode int = 410

GetEventTypeEndpointsGoneCode is the HTTP code returned for type GetEventTypeEndpointsGone

View Source
const GetEventTypeEndpointsNotFoundCode int = 404

GetEventTypeEndpointsNotFoundCode is the HTTP code returned for type GetEventTypeEndpointsNotFound

View Source
const GetEventTypeEndpointsOKCode int = 200

GetEventTypeEndpointsOKCode is the HTTP code returned for type GetEventTypeEndpointsOK

View Source
const GetEventTypeEndpointsUnauthorizedCode int = 401

GetEventTypeEndpointsUnauthorizedCode is the HTTP code returned for type GetEventTypeEndpointsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEventEndpoint

type CreateEventEndpoint struct {
	Context *middleware.Context
	Handler CreateEventEndpointHandler
}

CreateEventEndpoint swagger:route POST /v1/models/{model_id}/events/{event_type}/{endpoint_id} Events createEventEndpoint

Creates an event notification endpoint.

Creates a specific event type's URL notification endpoint.

func NewCreateEventEndpoint

func NewCreateEventEndpoint(ctx *middleware.Context, handler CreateEventEndpointHandler) *CreateEventEndpoint

NewCreateEventEndpoint creates a new http.Handler for the create event endpoint operation

func (*CreateEventEndpoint) ServeHTTP

func (o *CreateEventEndpoint) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateEventEndpointGone

type CreateEventEndpointGone struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

CreateEventEndpointGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

swagger:response createEventEndpointGone

func NewCreateEventEndpointGone

func NewCreateEventEndpointGone() *CreateEventEndpointGone

NewCreateEventEndpointGone creates CreateEventEndpointGone with default headers values

func (*CreateEventEndpointGone) SetPayload

func (o *CreateEventEndpointGone) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the create event endpoint gone response

func (*CreateEventEndpointGone) WithPayload

WithPayload adds the payload to the create event endpoint gone response

func (*CreateEventEndpointGone) WriteResponse

func (o *CreateEventEndpointGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateEventEndpointHandler

type CreateEventEndpointHandler interface {
	Handle(CreateEventEndpointParams, interface{}) middleware.Responder
}

CreateEventEndpointHandler interface for that can handle valid create event endpoint params

type CreateEventEndpointHandlerFunc

type CreateEventEndpointHandlerFunc func(CreateEventEndpointParams, interface{}) middleware.Responder

CreateEventEndpointHandlerFunc turns a function with the right signature into a create event endpoint handler

func (CreateEventEndpointHandlerFunc) Handle

func (fn CreateEventEndpointHandlerFunc) Handle(params CreateEventEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateEventEndpointNotFound

type CreateEventEndpointNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

CreateEventEndpointNotFound The model or event type cannot be found.

swagger:response createEventEndpointNotFound

func NewCreateEventEndpointNotFound

func NewCreateEventEndpointNotFound() *CreateEventEndpointNotFound

NewCreateEventEndpointNotFound creates CreateEventEndpointNotFound with default headers values

func (*CreateEventEndpointNotFound) SetPayload

func (o *CreateEventEndpointNotFound) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the create event endpoint not found response

func (*CreateEventEndpointNotFound) WithPayload

WithPayload adds the payload to the create event endpoint not found response

func (*CreateEventEndpointNotFound) WriteResponse

func (o *CreateEventEndpointNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateEventEndpointOK

type CreateEventEndpointOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

CreateEventEndpointOK Event updated successfully

swagger:response createEventEndpointOK

func NewCreateEventEndpointOK

func NewCreateEventEndpointOK() *CreateEventEndpointOK

NewCreateEventEndpointOK creates CreateEventEndpointOK with default headers values

func (*CreateEventEndpointOK) SetPayload

func (o *CreateEventEndpointOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the create event endpoint o k response

func (*CreateEventEndpointOK) WithPayload

func (o *CreateEventEndpointOK) WithPayload(payload io.ReadCloser) *CreateEventEndpointOK

WithPayload adds the payload to the create event endpoint o k response

func (*CreateEventEndpointOK) WriteResponse

func (o *CreateEventEndpointOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateEventEndpointParams

type CreateEventEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The URL that should be notified when an event triggers.
	  Required: true
	  In: body
	*/
	CallbackURL *restmodels.EventEndpointRegistration
	/*The id of the endpoint.
	  Required: true
	  In: path
	*/
	EndpointID string
	/*The type of event.
	  Required: true
	  In: path
	*/
	EventType string
	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
}

CreateEventEndpointParams contains all the bound params for the create event endpoint operation typically these are obtained from a http.Request

swagger:parameters createEventEndpoint

func NewCreateEventEndpointParams

func NewCreateEventEndpointParams() CreateEventEndpointParams

NewCreateEventEndpointParams creates a new CreateEventEndpointParams object with the default values initialized.

func (*CreateEventEndpointParams) BindRequest

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

type CreateEventEndpointURL

type CreateEventEndpointURL struct {
	EndpointID string
	EventType  string
	ModelID    string
	// contains filtered or unexported fields
}

CreateEventEndpointURL generates an URL for the create event endpoint operation

func (*CreateEventEndpointURL) Build

func (o *CreateEventEndpointURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateEventEndpointURL) BuildFull

func (o *CreateEventEndpointURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateEventEndpointURL) Must

func (o *CreateEventEndpointURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateEventEndpointURL) SetBasePath

func (o *CreateEventEndpointURL) 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 (*CreateEventEndpointURL) String

func (o *CreateEventEndpointURL) String() string

String returns the string representation of the path with query string

func (*CreateEventEndpointURL) StringFull

func (o *CreateEventEndpointURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateEventEndpointURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateEventEndpointUnauthorized

type CreateEventEndpointUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

CreateEventEndpointUnauthorized Unauthorized

swagger:response createEventEndpointUnauthorized

func NewCreateEventEndpointUnauthorized

func NewCreateEventEndpointUnauthorized() *CreateEventEndpointUnauthorized

NewCreateEventEndpointUnauthorized creates CreateEventEndpointUnauthorized with default headers values

func (*CreateEventEndpointUnauthorized) SetPayload

func (o *CreateEventEndpointUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the create event endpoint unauthorized response

func (*CreateEventEndpointUnauthorized) WithPayload

WithPayload adds the payload to the create event endpoint unauthorized response

func (*CreateEventEndpointUnauthorized) WriteResponse

func (o *CreateEventEndpointUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteEventEndpoint

type DeleteEventEndpoint struct {
	Context *middleware.Context
	Handler DeleteEventEndpointHandler
}

DeleteEventEndpoint swagger:route DELETE /v1/models/{model_id}/events/{event_type}/{endpoint_id} Events deleteEventEndpoint

Deletes an event notification endpoint.

Deletes a specific event type's URL notification endpoint.

func NewDeleteEventEndpoint

func NewDeleteEventEndpoint(ctx *middleware.Context, handler DeleteEventEndpointHandler) *DeleteEventEndpoint

NewDeleteEventEndpoint creates a new http.Handler for the delete event endpoint operation

func (*DeleteEventEndpoint) ServeHTTP

func (o *DeleteEventEndpoint) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteEventEndpointGone

type DeleteEventEndpointGone struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

DeleteEventEndpointGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

swagger:response deleteEventEndpointGone

func NewDeleteEventEndpointGone

func NewDeleteEventEndpointGone() *DeleteEventEndpointGone

NewDeleteEventEndpointGone creates DeleteEventEndpointGone with default headers values

func (*DeleteEventEndpointGone) SetPayload

func (o *DeleteEventEndpointGone) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the delete event endpoint gone response

func (*DeleteEventEndpointGone) WithPayload

WithPayload adds the payload to the delete event endpoint gone response

func (*DeleteEventEndpointGone) WriteResponse

func (o *DeleteEventEndpointGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteEventEndpointHandler

type DeleteEventEndpointHandler interface {
	Handle(DeleteEventEndpointParams, interface{}) middleware.Responder
}

DeleteEventEndpointHandler interface for that can handle valid delete event endpoint params

type DeleteEventEndpointHandlerFunc

type DeleteEventEndpointHandlerFunc func(DeleteEventEndpointParams, interface{}) middleware.Responder

DeleteEventEndpointHandlerFunc turns a function with the right signature into a delete event endpoint handler

func (DeleteEventEndpointHandlerFunc) Handle

func (fn DeleteEventEndpointHandlerFunc) Handle(params DeleteEventEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteEventEndpointNotFound

type DeleteEventEndpointNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

DeleteEventEndpointNotFound The model or event type cannot be found.

swagger:response deleteEventEndpointNotFound

func NewDeleteEventEndpointNotFound

func NewDeleteEventEndpointNotFound() *DeleteEventEndpointNotFound

NewDeleteEventEndpointNotFound creates DeleteEventEndpointNotFound with default headers values

func (*DeleteEventEndpointNotFound) SetPayload

func (o *DeleteEventEndpointNotFound) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the delete event endpoint not found response

func (*DeleteEventEndpointNotFound) WithPayload

WithPayload adds the payload to the delete event endpoint not found response

func (*DeleteEventEndpointNotFound) WriteResponse

func (o *DeleteEventEndpointNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteEventEndpointOK

type DeleteEventEndpointOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

DeleteEventEndpointOK Event updated successfully

swagger:response deleteEventEndpointOK

func NewDeleteEventEndpointOK

func NewDeleteEventEndpointOK() *DeleteEventEndpointOK

NewDeleteEventEndpointOK creates DeleteEventEndpointOK with default headers values

func (*DeleteEventEndpointOK) SetPayload

func (o *DeleteEventEndpointOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the delete event endpoint o k response

func (*DeleteEventEndpointOK) WithPayload

func (o *DeleteEventEndpointOK) WithPayload(payload io.ReadCloser) *DeleteEventEndpointOK

WithPayload adds the payload to the delete event endpoint o k response

func (*DeleteEventEndpointOK) WriteResponse

func (o *DeleteEventEndpointOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteEventEndpointParams

type DeleteEventEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The id of the endpoint.
	  Required: true
	  In: path
	*/
	EndpointID string
	/*The type of event.
	  Required: true
	  In: path
	*/
	EventType string
	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
}

DeleteEventEndpointParams contains all the bound params for the delete event endpoint operation typically these are obtained from a http.Request

swagger:parameters deleteEventEndpoint

func NewDeleteEventEndpointParams

func NewDeleteEventEndpointParams() DeleteEventEndpointParams

NewDeleteEventEndpointParams creates a new DeleteEventEndpointParams object with the default values initialized.

func (*DeleteEventEndpointParams) BindRequest

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

type DeleteEventEndpointURL

type DeleteEventEndpointURL struct {
	EndpointID string
	EventType  string
	ModelID    string
	// contains filtered or unexported fields
}

DeleteEventEndpointURL generates an URL for the delete event endpoint operation

func (*DeleteEventEndpointURL) Build

func (o *DeleteEventEndpointURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteEventEndpointURL) BuildFull

func (o *DeleteEventEndpointURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteEventEndpointURL) Must

func (o *DeleteEventEndpointURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteEventEndpointURL) SetBasePath

func (o *DeleteEventEndpointURL) 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 (*DeleteEventEndpointURL) String

func (o *DeleteEventEndpointURL) String() string

String returns the string representation of the path with query string

func (*DeleteEventEndpointURL) StringFull

func (o *DeleteEventEndpointURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteEventEndpointURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteEventEndpointUnauthorized

type DeleteEventEndpointUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

DeleteEventEndpointUnauthorized Unauthorized

swagger:response deleteEventEndpointUnauthorized

func NewDeleteEventEndpointUnauthorized

func NewDeleteEventEndpointUnauthorized() *DeleteEventEndpointUnauthorized

NewDeleteEventEndpointUnauthorized creates DeleteEventEndpointUnauthorized with default headers values

func (*DeleteEventEndpointUnauthorized) SetPayload

func (o *DeleteEventEndpointUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the delete event endpoint unauthorized response

func (*DeleteEventEndpointUnauthorized) WithPayload

WithPayload adds the payload to the delete event endpoint unauthorized response

func (*DeleteEventEndpointUnauthorized) WriteResponse

func (o *DeleteEventEndpointUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventEndpoint

type GetEventEndpoint struct {
	Context *middleware.Context
	Handler GetEventEndpointHandler
}

GetEventEndpoint swagger:route GET /v1/models/{model_id}/events/{event_type}/{endpoint_id} Events getEventEndpoint

Get endpoint description.

Get a specific endpoint description.

func NewGetEventEndpoint

func NewGetEventEndpoint(ctx *middleware.Context, handler GetEventEndpointHandler) *GetEventEndpoint

NewGetEventEndpoint creates a new http.Handler for the get event endpoint operation

func (*GetEventEndpoint) ServeHTTP

func (o *GetEventEndpoint) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEventEndpointGone

type GetEventEndpointGone struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventEndpointGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

swagger:response getEventEndpointGone

func NewGetEventEndpointGone

func NewGetEventEndpointGone() *GetEventEndpointGone

NewGetEventEndpointGone creates GetEventEndpointGone with default headers values

func (*GetEventEndpointGone) SetPayload

func (o *GetEventEndpointGone) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event endpoint gone response

func (*GetEventEndpointGone) WithPayload

func (o *GetEventEndpointGone) WithPayload(payload *restmodels.Error) *GetEventEndpointGone

WithPayload adds the payload to the get event endpoint gone response

func (*GetEventEndpointGone) WriteResponse

func (o *GetEventEndpointGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventEndpointHandler

type GetEventEndpointHandler interface {
	Handle(GetEventEndpointParams, interface{}) middleware.Responder
}

GetEventEndpointHandler interface for that can handle valid get event endpoint params

type GetEventEndpointHandlerFunc

type GetEventEndpointHandlerFunc func(GetEventEndpointParams, interface{}) middleware.Responder

GetEventEndpointHandlerFunc turns a function with the right signature into a get event endpoint handler

func (GetEventEndpointHandlerFunc) Handle

func (fn GetEventEndpointHandlerFunc) Handle(params GetEventEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetEventEndpointNotFound

type GetEventEndpointNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventEndpointNotFound The model or event type cannot be found.

swagger:response getEventEndpointNotFound

func NewGetEventEndpointNotFound

func NewGetEventEndpointNotFound() *GetEventEndpointNotFound

NewGetEventEndpointNotFound creates GetEventEndpointNotFound with default headers values

func (*GetEventEndpointNotFound) SetPayload

func (o *GetEventEndpointNotFound) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event endpoint not found response

func (*GetEventEndpointNotFound) WithPayload

WithPayload adds the payload to the get event endpoint not found response

func (*GetEventEndpointNotFound) WriteResponse

func (o *GetEventEndpointNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventEndpointOK

type GetEventEndpointOK struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Endpoint `json:"body,omitempty"`
}

GetEventEndpointOK Event description

swagger:response getEventEndpointOK

func NewGetEventEndpointOK

func NewGetEventEndpointOK() *GetEventEndpointOK

NewGetEventEndpointOK creates GetEventEndpointOK with default headers values

func (*GetEventEndpointOK) SetPayload

func (o *GetEventEndpointOK) SetPayload(payload *restmodels.Endpoint)

SetPayload sets the payload to the get event endpoint o k response

func (*GetEventEndpointOK) WithPayload

func (o *GetEventEndpointOK) WithPayload(payload *restmodels.Endpoint) *GetEventEndpointOK

WithPayload adds the payload to the get event endpoint o k response

func (*GetEventEndpointOK) WriteResponse

func (o *GetEventEndpointOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventEndpointParams

type GetEventEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The id of the endpoint.
	  Required: true
	  In: path
	*/
	EndpointID string
	/*The type of event.
	  Required: true
	  In: path
	*/
	EventType string
	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
}

GetEventEndpointParams contains all the bound params for the get event endpoint operation typically these are obtained from a http.Request

swagger:parameters getEventEndpoint

func NewGetEventEndpointParams

func NewGetEventEndpointParams() GetEventEndpointParams

NewGetEventEndpointParams creates a new GetEventEndpointParams object with the default values initialized.

func (*GetEventEndpointParams) BindRequest

func (o *GetEventEndpointParams) 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

type GetEventEndpointURL

type GetEventEndpointURL struct {
	EndpointID string
	EventType  string
	ModelID    string
	// contains filtered or unexported fields
}

GetEventEndpointURL generates an URL for the get event endpoint operation

func (*GetEventEndpointURL) Build

func (o *GetEventEndpointURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEventEndpointURL) BuildFull

func (o *GetEventEndpointURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEventEndpointURL) Must

func (o *GetEventEndpointURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEventEndpointURL) SetBasePath

func (o *GetEventEndpointURL) 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 (*GetEventEndpointURL) String

func (o *GetEventEndpointURL) String() string

String returns the string representation of the path with query string

func (*GetEventEndpointURL) StringFull

func (o *GetEventEndpointURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEventEndpointURL) WithBasePath

func (o *GetEventEndpointURL) WithBasePath(bp string) *GetEventEndpointURL

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 GetEventEndpointUnauthorized

type GetEventEndpointUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventEndpointUnauthorized Unauthorized

swagger:response getEventEndpointUnauthorized

func NewGetEventEndpointUnauthorized

func NewGetEventEndpointUnauthorized() *GetEventEndpointUnauthorized

NewGetEventEndpointUnauthorized creates GetEventEndpointUnauthorized with default headers values

func (*GetEventEndpointUnauthorized) SetPayload

func (o *GetEventEndpointUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event endpoint unauthorized response

func (*GetEventEndpointUnauthorized) WithPayload

WithPayload adds the payload to the get event endpoint unauthorized response

func (*GetEventEndpointUnauthorized) WriteResponse

func (o *GetEventEndpointUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventTypeEndpoints

type GetEventTypeEndpoints struct {
	Context *middleware.Context
	Handler GetEventTypeEndpointsHandler
}

GetEventTypeEndpoints swagger:route GET /v1/models/{model_id}/events/{event_type} Events getEventTypeEndpoints

Get all notification endpoints for this event type.

Get all notification endpoint URLs for this event type.

func NewGetEventTypeEndpoints

func NewGetEventTypeEndpoints(ctx *middleware.Context, handler GetEventTypeEndpointsHandler) *GetEventTypeEndpoints

NewGetEventTypeEndpoints creates a new http.Handler for the get event type endpoints operation

func (*GetEventTypeEndpoints) ServeHTTP

func (o *GetEventTypeEndpoints) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEventTypeEndpointsGone

type GetEventTypeEndpointsGone struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventTypeEndpointsGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

swagger:response getEventTypeEndpointsGone

func NewGetEventTypeEndpointsGone

func NewGetEventTypeEndpointsGone() *GetEventTypeEndpointsGone

NewGetEventTypeEndpointsGone creates GetEventTypeEndpointsGone with default headers values

func (*GetEventTypeEndpointsGone) SetPayload

func (o *GetEventTypeEndpointsGone) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event type endpoints gone response

func (*GetEventTypeEndpointsGone) WithPayload

WithPayload adds the payload to the get event type endpoints gone response

func (*GetEventTypeEndpointsGone) WriteResponse

func (o *GetEventTypeEndpointsGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventTypeEndpointsHandler

type GetEventTypeEndpointsHandler interface {
	Handle(GetEventTypeEndpointsParams) middleware.Responder
}

GetEventTypeEndpointsHandler interface for that can handle valid get event type endpoints params

type GetEventTypeEndpointsHandlerFunc

type GetEventTypeEndpointsHandlerFunc func(GetEventTypeEndpointsParams) middleware.Responder

GetEventTypeEndpointsHandlerFunc turns a function with the right signature into a get event type endpoints handler

func (GetEventTypeEndpointsHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventTypeEndpointsNotFound

type GetEventTypeEndpointsNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventTypeEndpointsNotFound The model or event type cannot be found.

swagger:response getEventTypeEndpointsNotFound

func NewGetEventTypeEndpointsNotFound

func NewGetEventTypeEndpointsNotFound() *GetEventTypeEndpointsNotFound

NewGetEventTypeEndpointsNotFound creates GetEventTypeEndpointsNotFound with default headers values

func (*GetEventTypeEndpointsNotFound) SetPayload

func (o *GetEventTypeEndpointsNotFound) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event type endpoints not found response

func (*GetEventTypeEndpointsNotFound) WithPayload

WithPayload adds the payload to the get event type endpoints not found response

func (*GetEventTypeEndpointsNotFound) WriteResponse

func (o *GetEventTypeEndpointsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventTypeEndpointsOK

type GetEventTypeEndpointsOK struct {

	/*
	  In: Body
	*/
	Payload *restmodels.EndpointList `json:"body,omitempty"`
}

GetEventTypeEndpointsOK Event endpoints

swagger:response getEventTypeEndpointsOK

func NewGetEventTypeEndpointsOK

func NewGetEventTypeEndpointsOK() *GetEventTypeEndpointsOK

NewGetEventTypeEndpointsOK creates GetEventTypeEndpointsOK with default headers values

func (*GetEventTypeEndpointsOK) SetPayload

func (o *GetEventTypeEndpointsOK) SetPayload(payload *restmodels.EndpointList)

SetPayload sets the payload to the get event type endpoints o k response

func (*GetEventTypeEndpointsOK) WithPayload

WithPayload adds the payload to the get event type endpoints o k response

func (*GetEventTypeEndpointsOK) WriteResponse

func (o *GetEventTypeEndpointsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventTypeEndpointsParams

type GetEventTypeEndpointsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The type of event.
	  Required: true
	  In: path
	*/
	EventType string
	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
}

GetEventTypeEndpointsParams contains all the bound params for the get event type endpoints operation typically these are obtained from a http.Request

swagger:parameters getEventTypeEndpoints

func NewGetEventTypeEndpointsParams

func NewGetEventTypeEndpointsParams() GetEventTypeEndpointsParams

NewGetEventTypeEndpointsParams creates a new GetEventTypeEndpointsParams object with the default values initialized.

func (*GetEventTypeEndpointsParams) BindRequest

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

type GetEventTypeEndpointsURL

type GetEventTypeEndpointsURL struct {
	EventType string
	ModelID   string
	// contains filtered or unexported fields
}

GetEventTypeEndpointsURL generates an URL for the get event type endpoints operation

func (*GetEventTypeEndpointsURL) Build

func (o *GetEventTypeEndpointsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEventTypeEndpointsURL) BuildFull

func (o *GetEventTypeEndpointsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEventTypeEndpointsURL) Must

func (o *GetEventTypeEndpointsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEventTypeEndpointsURL) SetBasePath

func (o *GetEventTypeEndpointsURL) 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 (*GetEventTypeEndpointsURL) String

func (o *GetEventTypeEndpointsURL) String() string

String returns the string representation of the path with query string

func (*GetEventTypeEndpointsURL) StringFull

func (o *GetEventTypeEndpointsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEventTypeEndpointsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEventTypeEndpointsUnauthorized

type GetEventTypeEndpointsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEventTypeEndpointsUnauthorized Unauthorized

swagger:response getEventTypeEndpointsUnauthorized

func NewGetEventTypeEndpointsUnauthorized

func NewGetEventTypeEndpointsUnauthorized() *GetEventTypeEndpointsUnauthorized

NewGetEventTypeEndpointsUnauthorized creates GetEventTypeEndpointsUnauthorized with default headers values

func (*GetEventTypeEndpointsUnauthorized) SetPayload

func (o *GetEventTypeEndpointsUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get event type endpoints unauthorized response

func (*GetEventTypeEndpointsUnauthorized) WithPayload

WithPayload adds the payload to the get event type endpoints unauthorized response

func (*GetEventTypeEndpointsUnauthorized) WriteResponse

func (o *GetEventTypeEndpointsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateEventEndpoint

type UpdateEventEndpoint struct {
	Context *middleware.Context
	Handler UpdateEventEndpointHandler
}

UpdateEventEndpoint swagger:route POST /v1/models/{model_id}/events/{event_type} Events updateEventEndpoint

Update an event notification endpoint.

Updates a specific event type's URL notification endpoint.

func NewUpdateEventEndpoint

func NewUpdateEventEndpoint(ctx *middleware.Context, handler UpdateEventEndpointHandler) *UpdateEventEndpoint

NewUpdateEventEndpoint creates a new http.Handler for the update event endpoint operation

func (*UpdateEventEndpoint) ServeHTTP

func (o *UpdateEventEndpoint) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateEventEndpointGone

type UpdateEventEndpointGone struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

UpdateEventEndpointGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

swagger:response updateEventEndpointGone

func NewUpdateEventEndpointGone

func NewUpdateEventEndpointGone() *UpdateEventEndpointGone

NewUpdateEventEndpointGone creates UpdateEventEndpointGone with default headers values

func (*UpdateEventEndpointGone) SetPayload

func (o *UpdateEventEndpointGone) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the update event endpoint gone response

func (*UpdateEventEndpointGone) WithPayload

WithPayload adds the payload to the update event endpoint gone response

func (*UpdateEventEndpointGone) WriteResponse

func (o *UpdateEventEndpointGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateEventEndpointHandler

type UpdateEventEndpointHandler interface {
	Handle(UpdateEventEndpointParams, interface{}) middleware.Responder
}

UpdateEventEndpointHandler interface for that can handle valid update event endpoint params

type UpdateEventEndpointHandlerFunc

type UpdateEventEndpointHandlerFunc func(UpdateEventEndpointParams, interface{}) middleware.Responder

UpdateEventEndpointHandlerFunc turns a function with the right signature into a update event endpoint handler

func (UpdateEventEndpointHandlerFunc) Handle

func (fn UpdateEventEndpointHandlerFunc) Handle(params UpdateEventEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateEventEndpointNotFound

type UpdateEventEndpointNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

UpdateEventEndpointNotFound The model or event type cannot be found.

swagger:response updateEventEndpointNotFound

func NewUpdateEventEndpointNotFound

func NewUpdateEventEndpointNotFound() *UpdateEventEndpointNotFound

NewUpdateEventEndpointNotFound creates UpdateEventEndpointNotFound with default headers values

func (*UpdateEventEndpointNotFound) SetPayload

func (o *UpdateEventEndpointNotFound) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the update event endpoint not found response

func (*UpdateEventEndpointNotFound) WithPayload

WithPayload adds the payload to the update event endpoint not found response

func (*UpdateEventEndpointNotFound) WriteResponse

func (o *UpdateEventEndpointNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateEventEndpointOK

type UpdateEventEndpointOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

UpdateEventEndpointOK Event updated successfully

swagger:response updateEventEndpointOK

func NewUpdateEventEndpointOK

func NewUpdateEventEndpointOK() *UpdateEventEndpointOK

NewUpdateEventEndpointOK creates UpdateEventEndpointOK with default headers values

func (*UpdateEventEndpointOK) SetPayload

func (o *UpdateEventEndpointOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the update event endpoint o k response

func (*UpdateEventEndpointOK) WithPayload

func (o *UpdateEventEndpointOK) WithPayload(payload io.ReadCloser) *UpdateEventEndpointOK

WithPayload adds the payload to the update event endpoint o k response

func (*UpdateEventEndpointOK) WriteResponse

func (o *UpdateEventEndpointOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateEventEndpointParams

type UpdateEventEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The type of event.
	  Required: true
	  In: path
	*/
	EventType string
	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
	/*The URL that should be notified when an event triggers.
	  Required: true
	  In: body
	*/
	Payload *restmodels.EventEndpointRegistration
}

UpdateEventEndpointParams contains all the bound params for the update event endpoint operation typically these are obtained from a http.Request

swagger:parameters updateEventEndpoint

func NewUpdateEventEndpointParams

func NewUpdateEventEndpointParams() UpdateEventEndpointParams

NewUpdateEventEndpointParams creates a new UpdateEventEndpointParams object with the default values initialized.

func (*UpdateEventEndpointParams) BindRequest

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

type UpdateEventEndpointURL

type UpdateEventEndpointURL struct {
	EventType string
	ModelID   string
	// contains filtered or unexported fields
}

UpdateEventEndpointURL generates an URL for the update event endpoint operation

func (*UpdateEventEndpointURL) Build

func (o *UpdateEventEndpointURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateEventEndpointURL) BuildFull

func (o *UpdateEventEndpointURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateEventEndpointURL) Must

func (o *UpdateEventEndpointURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateEventEndpointURL) SetBasePath

func (o *UpdateEventEndpointURL) 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 (*UpdateEventEndpointURL) String

func (o *UpdateEventEndpointURL) String() string

String returns the string representation of the path with query string

func (*UpdateEventEndpointURL) StringFull

func (o *UpdateEventEndpointURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateEventEndpointURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateEventEndpointUnauthorized

type UpdateEventEndpointUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

UpdateEventEndpointUnauthorized Unauthorized

swagger:response updateEventEndpointUnauthorized

func NewUpdateEventEndpointUnauthorized

func NewUpdateEventEndpointUnauthorized() *UpdateEventEndpointUnauthorized

NewUpdateEventEndpointUnauthorized creates UpdateEventEndpointUnauthorized with default headers values

func (*UpdateEventEndpointUnauthorized) SetPayload

func (o *UpdateEventEndpointUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the update event endpoint unauthorized response

func (*UpdateEventEndpointUnauthorized) WithPayload

WithPayload adds the payload to the update event endpoint unauthorized response

func (*UpdateEventEndpointUnauthorized) WriteResponse

func (o *UpdateEventEndpointUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL