events

package
v1.5.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 8 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 client.Transport, formats strfmt.Registry) *Client

New creates a new events API client.

func (*Client) GetEvents

func (a *Client) GetEvents(params *GetEventsParams) (*GetEventsOK, error)

GetEvents retrieves events by timestamp long

Events are used to track stack creation initiated by cloudbreak users. Events are generated by the backend when resources requested by the user become available or unavailable

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type GetEventsOK

type GetEventsOK struct {
	Payload []*models.CloudbreakEvent
}

GetEventsOK handles this case with default header values.

successful operation

func NewGetEventsOK

func NewGetEventsOK() *GetEventsOK

NewGetEventsOK creates a GetEventsOK with default headers values

func (*GetEventsOK) Error

func (o *GetEventsOK) Error() string

type GetEventsParams

type GetEventsParams struct {

	/*Since*/
	Since *int64
}

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

func NewGetEventsParams

func NewGetEventsParams() *GetEventsParams

NewGetEventsParams creates a new GetEventsParams object with the default values initialized.

func (*GetEventsParams) WithSince

func (o *GetEventsParams) WithSince(since *int64) *GetEventsParams

WithSince adds the since to the get events params

func (*GetEventsParams) WriteToRequest

func (o *GetEventsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetEventsReader

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

GetEventsReader is a Reader for the GetEvents structure.

func (*GetEventsReader) ReadResponse

func (o *GetEventsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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