events

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 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 API

type API interface {
	/*
	   ListEvents lists events for an entity id*/
	ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error)
}

API is the interface of the events client

type Client

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

Client for events API

func New

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

New creates a new events API client.

func (*Client) ListEvents

func (a *Client) ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error)

ListEvents lists events for an entity id

type ListEventsInternalServerError

type ListEventsInternalServerError struct {
	Payload *models.Error
}

ListEventsInternalServerError handles this case with default header values.

Error.

func NewListEventsInternalServerError

func NewListEventsInternalServerError() *ListEventsInternalServerError

NewListEventsInternalServerError creates a ListEventsInternalServerError with default headers values

func (*ListEventsInternalServerError) Error

func (*ListEventsInternalServerError) GetPayload

func (o *ListEventsInternalServerError) GetPayload() *models.Error

type ListEventsOK

type ListEventsOK struct {
	Payload models.EventList
}

ListEventsOK handles this case with default header values.

Success.

func NewListEventsOK

func NewListEventsOK() *ListEventsOK

NewListEventsOK creates a ListEventsOK with default headers values

func (*ListEventsOK) Error

func (o *ListEventsOK) Error() string

func (*ListEventsOK) GetPayload

func (o *ListEventsOK) GetPayload() models.EventList

type ListEventsParams

type ListEventsParams struct {

	/*EntityID*/
	EntityID strfmt.UUID

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

ListEventsParams contains all the parameters to send to the API endpoint for the list events operation typically these are written to a http.Request

func NewListEventsParams

func NewListEventsParams() *ListEventsParams

NewListEventsParams creates a new ListEventsParams object with the default values initialized.

func NewListEventsParamsWithContext

func NewListEventsParamsWithContext(ctx context.Context) *ListEventsParams

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

func NewListEventsParamsWithHTTPClient

func NewListEventsParamsWithHTTPClient(client *http.Client) *ListEventsParams

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

func NewListEventsParamsWithTimeout

func NewListEventsParamsWithTimeout(timeout time.Duration) *ListEventsParams

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

func (*ListEventsParams) SetContext

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

SetContext adds the context to the list events params

func (*ListEventsParams) SetEntityID

func (o *ListEventsParams) SetEntityID(entityID strfmt.UUID)

SetEntityID adds the entityId to the list events params

func (*ListEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list events params

func (*ListEventsParams) SetTimeout

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

SetTimeout adds the timeout to the list events params

func (*ListEventsParams) WithContext

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

WithContext adds the context to the list events params

func (*ListEventsParams) WithEntityID

func (o *ListEventsParams) WithEntityID(entityID strfmt.UUID) *ListEventsParams

WithEntityID adds the entityID to the list events params

func (*ListEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list events params

func (*ListEventsParams) WithTimeout

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

WithTimeout adds the timeout to the list events params

func (*ListEventsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListEventsReader

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

ListEventsReader is a Reader for the ListEvents structure.

func (*ListEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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