events

package
v0.0.2-solo Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for events API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new events API client.

func (*Client) EmitEvent

func (a *Client) EmitEvent(params *EmitEventParams, authInfo runtime.ClientAuthInfoWriter) (*EmitEventOK, error)

EmitEvent emits an event

func (*Client) IngestEvent

func (a *Client) IngestEvent(params *IngestEventParams, authInfo runtime.ClientAuthInfoWriter) (*IngestEventOK, error)

IngestEvent ingests an event from drivers

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type EmitEventBadRequest

type EmitEventBadRequest struct {
	Payload *v1.Error
}

EmitEventBadRequest handles this case with default header values.

Invalid input

func NewEmitEventBadRequest

func NewEmitEventBadRequest() *EmitEventBadRequest

NewEmitEventBadRequest creates a EmitEventBadRequest with default headers values

func (*EmitEventBadRequest) Error

func (o *EmitEventBadRequest) Error() string

type EmitEventDefault

type EmitEventDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

EmitEventDefault handles this case with default header values.

Unknown error

func NewEmitEventDefault

func NewEmitEventDefault(code int) *EmitEventDefault

NewEmitEventDefault creates a EmitEventDefault with default headers values

func (*EmitEventDefault) Code

func (o *EmitEventDefault) Code() int

Code gets the status code for the emit event default response

func (*EmitEventDefault) Error

func (o *EmitEventDefault) Error() string

type EmitEventForbidden added in v0.1.18

type EmitEventForbidden struct {
	Payload *v1.Error
}

EmitEventForbidden handles this case with default header values.

access to this resource is forbidden

func NewEmitEventForbidden added in v0.1.18

func NewEmitEventForbidden() *EmitEventForbidden

NewEmitEventForbidden creates a EmitEventForbidden with default headers values

func (*EmitEventForbidden) Error added in v0.1.18

func (o *EmitEventForbidden) Error() string

type EmitEventOK

type EmitEventOK struct {
	Payload *v1.Emission
}

EmitEventOK handles this case with default header values.

Event emitted

func NewEmitEventOK

func NewEmitEventOK() *EmitEventOK

NewEmitEventOK creates a EmitEventOK with default headers values

func (*EmitEventOK) Error

func (o *EmitEventOK) Error() string

type EmitEventParams

type EmitEventParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  emission object

	*/
	Body *v1.Emission

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EmitEventParams contains all the parameters to send to the API endpoint for the emit event operation typically these are written to a http.Request

func NewEmitEventParams

func NewEmitEventParams() *EmitEventParams

NewEmitEventParams creates a new EmitEventParams object with the default values initialized.

func NewEmitEventParamsWithContext

func NewEmitEventParamsWithContext(ctx context.Context) *EmitEventParams

NewEmitEventParamsWithContext creates a new EmitEventParams object with the default values initialized, and the ability to set a context for a request

func NewEmitEventParamsWithHTTPClient

func NewEmitEventParamsWithHTTPClient(client *http.Client) *EmitEventParams

NewEmitEventParamsWithHTTPClient creates a new EmitEventParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmitEventParamsWithTimeout

func NewEmitEventParamsWithTimeout(timeout time.Duration) *EmitEventParams

NewEmitEventParamsWithTimeout creates a new EmitEventParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmitEventParams) SetBody

func (o *EmitEventParams) SetBody(body *v1.Emission)

SetBody adds the body to the emit event params

func (*EmitEventParams) SetContext

func (o *EmitEventParams) SetContext(ctx context.Context)

SetContext adds the context to the emit event params

func (*EmitEventParams) SetHTTPClient

func (o *EmitEventParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the emit event params

func (*EmitEventParams) SetTimeout

func (o *EmitEventParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the emit event params

func (*EmitEventParams) SetXDispatchOrg added in v0.1.16

func (o *EmitEventParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the emit event params

func (*EmitEventParams) WithBody

func (o *EmitEventParams) WithBody(body *v1.Emission) *EmitEventParams

WithBody adds the body to the emit event params

func (*EmitEventParams) WithContext

func (o *EmitEventParams) WithContext(ctx context.Context) *EmitEventParams

WithContext adds the context to the emit event params

func (*EmitEventParams) WithHTTPClient

func (o *EmitEventParams) WithHTTPClient(client *http.Client) *EmitEventParams

WithHTTPClient adds the HTTPClient to the emit event params

func (*EmitEventParams) WithTimeout

func (o *EmitEventParams) WithTimeout(timeout time.Duration) *EmitEventParams

WithTimeout adds the timeout to the emit event params

func (*EmitEventParams) WithXDispatchOrg added in v0.1.16

func (o *EmitEventParams) WithXDispatchOrg(xDispatchOrg string) *EmitEventParams

WithXDispatchOrg adds the xDispatchOrg to the emit event params

func (*EmitEventParams) WriteToRequest

func (o *EmitEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EmitEventReader

type EmitEventReader struct {
	// contains filtered or unexported fields
}

EmitEventReader is a Reader for the EmitEvent structure.

func (*EmitEventReader) ReadResponse

func (o *EmitEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EmitEventUnauthorized

type EmitEventUnauthorized struct {
	Payload *v1.Error
}

EmitEventUnauthorized handles this case with default header values.

Unauthorized Request

func NewEmitEventUnauthorized

func NewEmitEventUnauthorized() *EmitEventUnauthorized

NewEmitEventUnauthorized creates a EmitEventUnauthorized with default headers values

func (*EmitEventUnauthorized) Error

func (o *EmitEventUnauthorized) Error() string

type IngestEventBadRequest

type IngestEventBadRequest struct {
	Payload *v1.Error
}

IngestEventBadRequest handles this case with default header values.

Invalid input

func NewIngestEventBadRequest

func NewIngestEventBadRequest() *IngestEventBadRequest

NewIngestEventBadRequest creates a IngestEventBadRequest with default headers values

func (*IngestEventBadRequest) Error

func (o *IngestEventBadRequest) Error() string

type IngestEventDefault

type IngestEventDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

IngestEventDefault handles this case with default header values.

Unknown error

func NewIngestEventDefault

func NewIngestEventDefault(code int) *IngestEventDefault

NewIngestEventDefault creates a IngestEventDefault with default headers values

func (*IngestEventDefault) Code

func (o *IngestEventDefault) Code() int

Code gets the status code for the ingest event default response

func (*IngestEventDefault) Error

func (o *IngestEventDefault) Error() string

type IngestEventForbidden

type IngestEventForbidden struct {
	Payload *v1.Error
}

IngestEventForbidden handles this case with default header values.

access to this resource is forbidden

func NewIngestEventForbidden

func NewIngestEventForbidden() *IngestEventForbidden

NewIngestEventForbidden creates a IngestEventForbidden with default headers values

func (*IngestEventForbidden) Error

func (o *IngestEventForbidden) Error() string

type IngestEventOK

type IngestEventOK struct {
	Payload *v1.Emission
}

IngestEventOK handles this case with default header values.

Event emitted

func NewIngestEventOK

func NewIngestEventOK() *IngestEventOK

NewIngestEventOK creates a IngestEventOK with default headers values

func (*IngestEventOK) Error

func (o *IngestEventOK) Error() string

type IngestEventParams

type IngestEventParams struct {

	/*AuthToken
	  Token to authenticate event

	*/
	AuthToken string
	/*Body
	  emission object

	*/
	Body *v1.Emission

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

IngestEventParams contains all the parameters to send to the API endpoint for the ingest event operation typically these are written to a http.Request

func NewIngestEventParams

func NewIngestEventParams() *IngestEventParams

NewIngestEventParams creates a new IngestEventParams object with the default values initialized.

func NewIngestEventParamsWithContext

func NewIngestEventParamsWithContext(ctx context.Context) *IngestEventParams

NewIngestEventParamsWithContext creates a new IngestEventParams object with the default values initialized, and the ability to set a context for a request

func NewIngestEventParamsWithHTTPClient

func NewIngestEventParamsWithHTTPClient(client *http.Client) *IngestEventParams

NewIngestEventParamsWithHTTPClient creates a new IngestEventParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewIngestEventParamsWithTimeout

func NewIngestEventParamsWithTimeout(timeout time.Duration) *IngestEventParams

NewIngestEventParamsWithTimeout creates a new IngestEventParams object with the default values initialized, and the ability to set a timeout on a request

func (*IngestEventParams) SetAuthToken

func (o *IngestEventParams) SetAuthToken(authToken string)

SetAuthToken adds the authToken to the ingest event params

func (*IngestEventParams) SetBody

func (o *IngestEventParams) SetBody(body *v1.Emission)

SetBody adds the body to the ingest event params

func (*IngestEventParams) SetContext

func (o *IngestEventParams) SetContext(ctx context.Context)

SetContext adds the context to the ingest event params

func (*IngestEventParams) SetHTTPClient

func (o *IngestEventParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ingest event params

func (*IngestEventParams) SetTimeout

func (o *IngestEventParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ingest event params

func (*IngestEventParams) WithAuthToken

func (o *IngestEventParams) WithAuthToken(authToken string) *IngestEventParams

WithAuthToken adds the authToken to the ingest event params

func (*IngestEventParams) WithBody

func (o *IngestEventParams) WithBody(body *v1.Emission) *IngestEventParams

WithBody adds the body to the ingest event params

func (*IngestEventParams) WithContext

func (o *IngestEventParams) WithContext(ctx context.Context) *IngestEventParams

WithContext adds the context to the ingest event params

func (*IngestEventParams) WithHTTPClient

func (o *IngestEventParams) WithHTTPClient(client *http.Client) *IngestEventParams

WithHTTPClient adds the HTTPClient to the ingest event params

func (*IngestEventParams) WithTimeout

func (o *IngestEventParams) WithTimeout(timeout time.Duration) *IngestEventParams

WithTimeout adds the timeout to the ingest event params

func (*IngestEventParams) WriteToRequest

func (o *IngestEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type IngestEventReader

type IngestEventReader struct {
	// contains filtered or unexported fields
}

IngestEventReader is a Reader for the IngestEvent structure.

func (*IngestEventReader) ReadResponse

func (o *IngestEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type IngestEventUnauthorized

type IngestEventUnauthorized struct {
	Payload *v1.Error
}

IngestEventUnauthorized handles this case with default header values.

Unauthorized Request

func NewIngestEventUnauthorized

func NewIngestEventUnauthorized() *IngestEventUnauthorized

NewIngestEventUnauthorized creates a IngestEventUnauthorized with default headers values

func (*IngestEventUnauthorized) Error

func (o *IngestEventUnauthorized) Error() string

Jump to

Keyboard shortcuts

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