Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListControllersBadRequest
- type ListControllersOK
- type ListControllersParams
- func NewListControllersParams() *ListControllersParams
- func NewListControllersParamsWithContext(ctx context.Context) *ListControllersParams
- func NewListControllersParamsWithHTTPClient(client *http.Client) *ListControllersParams
- func NewListControllersParamsWithTimeout(timeout time.Duration) *ListControllersParams
- func (o *ListControllersParams) SetContext(ctx context.Context)
- func (o *ListControllersParams) SetDefaults()
- func (o *ListControllersParams) SetFilter(filter *string)
- func (o *ListControllersParams) SetHTTPClient(client *http.Client)
- func (o *ListControllersParams) SetLimit(limit *int64)
- func (o *ListControllersParams) SetOffset(offset *int64)
- func (o *ListControllersParams) SetTimeout(timeout time.Duration)
- func (o *ListControllersParams) WithContext(ctx context.Context) *ListControllersParams
- func (o *ListControllersParams) WithDefaults() *ListControllersParams
- func (o *ListControllersParams) WithFilter(filter *string) *ListControllersParams
- func (o *ListControllersParams) WithHTTPClient(client *http.Client) *ListControllersParams
- func (o *ListControllersParams) WithLimit(limit *int64) *ListControllersParams
- func (o *ListControllersParams) WithOffset(offset *int64) *ListControllersParams
- func (o *ListControllersParams) WithTimeout(timeout time.Duration) *ListControllersParams
- func (o *ListControllersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListControllersReader
- type ListControllersTooManyRequests
- type ListControllersUnauthorized
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 controllers API
func (*Client) ListControllers ¶
func (a *Client) ListControllers(params *ListControllersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListControllersOK, error)
ListControllers lists controllers
Retrieves a list of controllers
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ListControllers(params *ListControllersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListControllersOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new controllers API client.
type ListControllersBadRequest ¶
type ListControllersBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
ListControllersBadRequest describes a response with status code 400, with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewListControllersBadRequest ¶
func NewListControllersBadRequest() *ListControllersBadRequest
NewListControllersBadRequest creates a ListControllersBadRequest with default headers values
func (*ListControllersBadRequest) Error ¶
func (o *ListControllersBadRequest) Error() string
func (*ListControllersBadRequest) GetPayload ¶
func (o *ListControllersBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type ListControllersOK ¶
type ListControllersOK struct {
Payload *rest_model.ListControllersEnvelope
}
ListControllersOK describes a response with status code 200, with default header values.
A list of controllers
func NewListControllersOK ¶
func NewListControllersOK() *ListControllersOK
NewListControllersOK creates a ListControllersOK with default headers values
func (*ListControllersOK) Error ¶
func (o *ListControllersOK) Error() string
func (*ListControllersOK) GetPayload ¶
func (o *ListControllersOK) GetPayload() *rest_model.ListControllersEnvelope
type ListControllersParams ¶
type ListControllersParams struct { // Filter. Filter *string // Limit. Limit *int64 // Offset. Offset *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListControllersParams contains all the parameters to send to the API endpoint
for the list controllers operation. Typically these are written to a http.Request.
func NewListControllersParams ¶
func NewListControllersParams() *ListControllersParams
NewListControllersParams creates a new ListControllersParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListControllersParamsWithContext ¶
func NewListControllersParamsWithContext(ctx context.Context) *ListControllersParams
NewListControllersParamsWithContext creates a new ListControllersParams object with the ability to set a context for a request.
func NewListControllersParamsWithHTTPClient ¶
func NewListControllersParamsWithHTTPClient(client *http.Client) *ListControllersParams
NewListControllersParamsWithHTTPClient creates a new ListControllersParams object with the ability to set a custom HTTPClient for a request.
func NewListControllersParamsWithTimeout ¶
func NewListControllersParamsWithTimeout(timeout time.Duration) *ListControllersParams
NewListControllersParamsWithTimeout creates a new ListControllersParams object with the ability to set a timeout on a request.
func (*ListControllersParams) SetContext ¶
func (o *ListControllersParams) SetContext(ctx context.Context)
SetContext adds the context to the list controllers params
func (*ListControllersParams) SetDefaults ¶
func (o *ListControllersParams) SetDefaults()
SetDefaults hydrates default values in the list controllers params (not the query body).
All values with no default are reset to their zero value.
func (*ListControllersParams) SetFilter ¶
func (o *ListControllersParams) SetFilter(filter *string)
SetFilter adds the filter to the list controllers params
func (*ListControllersParams) SetHTTPClient ¶
func (o *ListControllersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list controllers params
func (*ListControllersParams) SetLimit ¶
func (o *ListControllersParams) SetLimit(limit *int64)
SetLimit adds the limit to the list controllers params
func (*ListControllersParams) SetOffset ¶
func (o *ListControllersParams) SetOffset(offset *int64)
SetOffset adds the offset to the list controllers params
func (*ListControllersParams) SetTimeout ¶
func (o *ListControllersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list controllers params
func (*ListControllersParams) WithContext ¶
func (o *ListControllersParams) WithContext(ctx context.Context) *ListControllersParams
WithContext adds the context to the list controllers params
func (*ListControllersParams) WithDefaults ¶
func (o *ListControllersParams) WithDefaults() *ListControllersParams
WithDefaults hydrates default values in the list controllers params (not the query body).
All values with no default are reset to their zero value.
func (*ListControllersParams) WithFilter ¶
func (o *ListControllersParams) WithFilter(filter *string) *ListControllersParams
WithFilter adds the filter to the list controllers params
func (*ListControllersParams) WithHTTPClient ¶
func (o *ListControllersParams) WithHTTPClient(client *http.Client) *ListControllersParams
WithHTTPClient adds the HTTPClient to the list controllers params
func (*ListControllersParams) WithLimit ¶
func (o *ListControllersParams) WithLimit(limit *int64) *ListControllersParams
WithLimit adds the limit to the list controllers params
func (*ListControllersParams) WithOffset ¶
func (o *ListControllersParams) WithOffset(offset *int64) *ListControllersParams
WithOffset adds the offset to the list controllers params
func (*ListControllersParams) WithTimeout ¶
func (o *ListControllersParams) WithTimeout(timeout time.Duration) *ListControllersParams
WithTimeout adds the timeout to the list controllers params
func (*ListControllersParams) WriteToRequest ¶
func (o *ListControllersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListControllersReader ¶
type ListControllersReader struct {
// contains filtered or unexported fields
}
ListControllersReader is a Reader for the ListControllers structure.
func (*ListControllersReader) ReadResponse ¶
func (o *ListControllersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListControllersTooManyRequests ¶
type ListControllersTooManyRequests struct {
Payload *rest_model.APIErrorEnvelope
}
ListControllersTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewListControllersTooManyRequests ¶
func NewListControllersTooManyRequests() *ListControllersTooManyRequests
NewListControllersTooManyRequests creates a ListControllersTooManyRequests with default headers values
func (*ListControllersTooManyRequests) Error ¶
func (o *ListControllersTooManyRequests) Error() string
func (*ListControllersTooManyRequests) GetPayload ¶
func (o *ListControllersTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type ListControllersUnauthorized ¶
type ListControllersUnauthorized struct {
}ListControllersUnauthorized describes a response with status code 401, with default header values.
The supplied session does not have the correct access rights to request this resource
func NewListControllersUnauthorized ¶
func NewListControllersUnauthorized() *ListControllersUnauthorized
NewListControllersUnauthorized creates a ListControllersUnauthorized with default headers values
func (*ListControllersUnauthorized) Error ¶
func (o *ListControllersUnauthorized) Error() string
func (*ListControllersUnauthorized) GetPayload ¶
func (o *ListControllersUnauthorized) GetPayload() *rest_model.APIErrorEnvelope