Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAPIVersionOK
- type GetAPIVersionParams
- func (o *GetAPIVersionParams) SetContext(ctx context.Context)
- func (o *GetAPIVersionParams) SetDefaults()
- func (o *GetAPIVersionParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIVersionParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIVersionParams) WithContext(ctx context.Context) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithDefaults() *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithHTTPClient(client *http.Client) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithTimeout(timeout time.Duration) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIVersionReader
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 api info API
func (*Client) GetAPIVersion ¶
func (a *Client) GetAPIVersion(params *GetAPIVersionParams, opts ...ClientOption) (*GetAPIVersionOK, error)
GetAPIVersion get Api version API
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 { GetAPIVersion(params *GetAPIVersionParams, opts ...ClientOption) (*GetAPIVersionOK, 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 api info API client.
type GetAPIVersionOK ¶
GetAPIVersionOK describes a response with status code 200, with default header values.
GetAPIVersionOK get Api version o k
func NewGetAPIVersionOK ¶
func NewGetAPIVersionOK() *GetAPIVersionOK
NewGetAPIVersionOK creates a GetAPIVersionOK with default headers values
func (*GetAPIVersionOK) Error ¶
func (o *GetAPIVersionOK) Error() string
func (*GetAPIVersionOK) GetPayload ¶
func (o *GetAPIVersionOK) GetPayload() string
type GetAPIVersionParams ¶
type GetAPIVersionParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIVersionParams contains all the parameters to send to the API endpoint
for the get Api version operation. Typically these are written to a http.Request.
func NewGetAPIVersionParams ¶
func NewGetAPIVersionParams() *GetAPIVersionParams
NewGetAPIVersionParams creates a new GetAPIVersionParams 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 NewGetAPIVersionParamsWithContext ¶
func NewGetAPIVersionParamsWithContext(ctx context.Context) *GetAPIVersionParams
NewGetAPIVersionParamsWithContext creates a new GetAPIVersionParams object with the ability to set a context for a request.
func NewGetAPIVersionParamsWithHTTPClient ¶
func NewGetAPIVersionParamsWithHTTPClient(client *http.Client) *GetAPIVersionParams
NewGetAPIVersionParamsWithHTTPClient creates a new GetAPIVersionParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIVersionParamsWithTimeout ¶
func NewGetAPIVersionParamsWithTimeout(timeout time.Duration) *GetAPIVersionParams
NewGetAPIVersionParamsWithTimeout creates a new GetAPIVersionParams object with the ability to set a timeout on a request.
func (*GetAPIVersionParams) SetContext ¶
func (o *GetAPIVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the get Api version params
func (*GetAPIVersionParams) SetDefaults ¶
func (o *GetAPIVersionParams) SetDefaults()
SetDefaults hydrates default values in the get Api version params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIVersionParams) SetHTTPClient ¶
func (o *GetAPIVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get Api version params
func (*GetAPIVersionParams) SetTimeout ¶
func (o *GetAPIVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get Api version params
func (*GetAPIVersionParams) WithContext ¶
func (o *GetAPIVersionParams) WithContext(ctx context.Context) *GetAPIVersionParams
WithContext adds the context to the get Api version params
func (*GetAPIVersionParams) WithDefaults ¶
func (o *GetAPIVersionParams) WithDefaults() *GetAPIVersionParams
WithDefaults hydrates default values in the get Api version params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIVersionParams) WithHTTPClient ¶
func (o *GetAPIVersionParams) WithHTTPClient(client *http.Client) *GetAPIVersionParams
WithHTTPClient adds the HTTPClient to the get Api version params
func (*GetAPIVersionParams) WithTimeout ¶
func (o *GetAPIVersionParams) WithTimeout(timeout time.Duration) *GetAPIVersionParams
WithTimeout adds the timeout to the get Api version params
func (*GetAPIVersionParams) WriteToRequest ¶
func (o *GetAPIVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIVersionReader ¶
type GetAPIVersionReader struct {
// contains filtered or unexported fields
}
GetAPIVersionReader is a Reader for the GetAPIVersion structure.
func (*GetAPIVersionReader) ReadResponse ¶
func (o *GetAPIVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.