events

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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) 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

Jump to

Keyboard shortcuts

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