Documentation ¶
Index ¶
- type Client
- type InfoOK
- type InfoParams
- func (o *InfoParams) SetContext(ctx context.Context)
- func (o *InfoParams) SetHTTPClient(client *http.Client)
- func (o *InfoParams) SetTimeout(timeout time.Duration)
- func (o *InfoParams) WithContext(ctx context.Context) *InfoParams
- func (o *InfoParams) WithHTTPClient(client *http.Client) *InfoParams
- func (o *InfoParams) WithTimeout(timeout time.Duration) *InfoParams
- func (o *InfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InfoReader
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 version API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new version API client.
func (*Client) Info ¶
func (a *Client) Info(params *InfoParams, authInfo runtime.ClientAuthInfoWriter) (*InfoOK, error)
Info returns the current version information of this module
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type InfoOK ¶
type InfoOK struct {
Payload *models.RestVersion
}
InfoOK handles this case with default header values.
OK
type InfoParams ¶
type InfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InfoParams contains all the parameters to send to the API endpoint for the info operation typically these are written to a http.Request
func NewInfoParams ¶
func NewInfoParams() *InfoParams
NewInfoParams creates a new InfoParams object with the default values initialized.
func NewInfoParamsWithContext ¶
func NewInfoParamsWithContext(ctx context.Context) *InfoParams
NewInfoParamsWithContext creates a new InfoParams object with the default values initialized, and the ability to set a context for a request
func NewInfoParamsWithHTTPClient ¶
func NewInfoParamsWithHTTPClient(client *http.Client) *InfoParams
NewInfoParamsWithHTTPClient creates a new InfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewInfoParamsWithTimeout ¶
func NewInfoParamsWithTimeout(timeout time.Duration) *InfoParams
NewInfoParamsWithTimeout creates a new InfoParams object with the default values initialized, and the ability to set a timeout on a request
func (*InfoParams) SetContext ¶
func (o *InfoParams) SetContext(ctx context.Context)
SetContext adds the context to the info params
func (*InfoParams) SetHTTPClient ¶
func (o *InfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the info params
func (*InfoParams) SetTimeout ¶
func (o *InfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the info params
func (*InfoParams) WithContext ¶
func (o *InfoParams) WithContext(ctx context.Context) *InfoParams
WithContext adds the context to the info params
func (*InfoParams) WithHTTPClient ¶
func (o *InfoParams) WithHTTPClient(client *http.Client) *InfoParams
WithHTTPClient adds the HTTPClient to the info params
func (*InfoParams) WithTimeout ¶
func (o *InfoParams) WithTimeout(timeout time.Duration) *InfoParams
WithTimeout adds the timeout to the info params
func (*InfoParams) WriteToRequest ¶
func (o *InfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InfoReader ¶
type InfoReader struct {
// contains filtered or unexported fields
}
InfoReader is a Reader for the Info structure.
func (*InfoReader) ReadResponse ¶
func (o *InfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.