messages

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause 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 messages API

func New

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

New creates a new messages API client.

func (*Client) Index

func (a *Client) Index(params *IndexParams, authInfo runtime.ClientAuthInfoWriter) (*IndexOK, error)

Index gets overview of current indexing state for the given index set including deflector config cluster state index ranges and message counts

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type IndexOK

type IndexOK struct {
	Payload *models.IndexerOverview
}

IndexOK handles this case with default header values.

No response was specified

func NewIndexOK

func NewIndexOK() *IndexOK

NewIndexOK creates a IndexOK with default headers values

func (*IndexOK) Error

func (o *IndexOK) Error() string

type IndexParams

type IndexParams struct {

	/*IndexSetID*/
	IndexSetID string

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

IndexParams contains all the parameters to send to the API endpoint for the index operation typically these are written to a http.Request

func NewIndexParams

func NewIndexParams() *IndexParams

NewIndexParams creates a new IndexParams object with the default values initialized.

func NewIndexParamsWithContext

func NewIndexParamsWithContext(ctx context.Context) *IndexParams

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

func NewIndexParamsWithHTTPClient

func NewIndexParamsWithHTTPClient(client *http.Client) *IndexParams

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

func NewIndexParamsWithTimeout

func NewIndexParamsWithTimeout(timeout time.Duration) *IndexParams

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

func (*IndexParams) SetContext

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

SetContext adds the context to the index params

func (*IndexParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the index params

func (*IndexParams) SetIndexSetID

func (o *IndexParams) SetIndexSetID(indexSetID string)

SetIndexSetID adds the indexSetId to the index params

func (*IndexParams) SetTimeout

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

SetTimeout adds the timeout to the index params

func (*IndexParams) WithContext

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

WithContext adds the context to the index params

func (*IndexParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the index params

func (*IndexParams) WithIndexSetID

func (o *IndexParams) WithIndexSetID(indexSetID string) *IndexParams

WithIndexSetID adds the indexSetID to the index params

func (*IndexParams) WithTimeout

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

WithTimeout adds the timeout to the index params

func (*IndexParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type IndexReader

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

IndexReader is a Reader for the Index structure.

func (*IndexReader) ReadResponse

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