Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListVersionsByCNIPluginDefault
- type ListVersionsByCNIPluginForbidden
- type ListVersionsByCNIPluginOK
- type ListVersionsByCNIPluginParams
- func NewListVersionsByCNIPluginParams() *ListVersionsByCNIPluginParams
- func NewListVersionsByCNIPluginParamsWithContext(ctx context.Context) *ListVersionsByCNIPluginParams
- func NewListVersionsByCNIPluginParamsWithHTTPClient(client *http.Client) *ListVersionsByCNIPluginParams
- func NewListVersionsByCNIPluginParamsWithTimeout(timeout time.Duration) *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) SetCNIPluginType(cniPluginType string)
- func (o *ListVersionsByCNIPluginParams) SetContext(ctx context.Context)
- func (o *ListVersionsByCNIPluginParams) SetDefaults()
- func (o *ListVersionsByCNIPluginParams) SetHTTPClient(client *http.Client)
- func (o *ListVersionsByCNIPluginParams) SetTimeout(timeout time.Duration)
- func (o *ListVersionsByCNIPluginParams) WithCNIPluginType(cniPluginType string) *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) WithContext(ctx context.Context) *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) WithDefaults() *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) WithHTTPClient(client *http.Client) *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) WithTimeout(timeout time.Duration) *ListVersionsByCNIPluginParams
- func (o *ListVersionsByCNIPluginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListVersionsByCNIPluginReader
- type ListVersionsByCNIPluginUnauthorized
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 cniversion API
func (*Client) ListVersionsByCNIPlugin ¶
func (a *Client) ListVersionsByCNIPlugin(params *ListVersionsByCNIPluginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVersionsByCNIPluginOK, error)
ListVersionsByCNIPlugin Lists all CNI Plugin versions that are supported for a given CNI plugin type
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 { ListVersionsByCNIPlugin(params *ListVersionsByCNIPluginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVersionsByCNIPluginOK, 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 cniversion API client.
type ListVersionsByCNIPluginDefault ¶
type ListVersionsByCNIPluginDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListVersionsByCNIPluginDefault describes a response with status code -1, with default header values.
errorResponse
func NewListVersionsByCNIPluginDefault ¶
func NewListVersionsByCNIPluginDefault(code int) *ListVersionsByCNIPluginDefault
NewListVersionsByCNIPluginDefault creates a ListVersionsByCNIPluginDefault with default headers values
func (*ListVersionsByCNIPluginDefault) Code ¶
func (o *ListVersionsByCNIPluginDefault) Code() int
Code gets the status code for the list versions by c n i plugin default response
func (*ListVersionsByCNIPluginDefault) Error ¶
func (o *ListVersionsByCNIPluginDefault) Error() string
func (*ListVersionsByCNIPluginDefault) GetPayload ¶
func (o *ListVersionsByCNIPluginDefault) GetPayload() *models.ErrorResponse
type ListVersionsByCNIPluginForbidden ¶
type ListVersionsByCNIPluginForbidden struct { }
ListVersionsByCNIPluginForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListVersionsByCNIPluginForbidden ¶
func NewListVersionsByCNIPluginForbidden() *ListVersionsByCNIPluginForbidden
NewListVersionsByCNIPluginForbidden creates a ListVersionsByCNIPluginForbidden with default headers values
func (*ListVersionsByCNIPluginForbidden) Error ¶
func (o *ListVersionsByCNIPluginForbidden) Error() string
type ListVersionsByCNIPluginOK ¶
type ListVersionsByCNIPluginOK struct {
Payload *models.CNIVersions
}
ListVersionsByCNIPluginOK describes a response with status code 200, with default header values.
CNIVersions
func NewListVersionsByCNIPluginOK ¶
func NewListVersionsByCNIPluginOK() *ListVersionsByCNIPluginOK
NewListVersionsByCNIPluginOK creates a ListVersionsByCNIPluginOK with default headers values
func (*ListVersionsByCNIPluginOK) Error ¶
func (o *ListVersionsByCNIPluginOK) Error() string
func (*ListVersionsByCNIPluginOK) GetPayload ¶
func (o *ListVersionsByCNIPluginOK) GetPayload() *models.CNIVersions
type ListVersionsByCNIPluginParams ¶
type ListVersionsByCNIPluginParams struct { // CniPluginType. CNIPluginType string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListVersionsByCNIPluginParams contains all the parameters to send to the API endpoint
for the list versions by c n i plugin operation. Typically these are written to a http.Request.
func NewListVersionsByCNIPluginParams ¶
func NewListVersionsByCNIPluginParams() *ListVersionsByCNIPluginParams
NewListVersionsByCNIPluginParams creates a new ListVersionsByCNIPluginParams 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 NewListVersionsByCNIPluginParamsWithContext ¶
func NewListVersionsByCNIPluginParamsWithContext(ctx context.Context) *ListVersionsByCNIPluginParams
NewListVersionsByCNIPluginParamsWithContext creates a new ListVersionsByCNIPluginParams object with the ability to set a context for a request.
func NewListVersionsByCNIPluginParamsWithHTTPClient ¶
func NewListVersionsByCNIPluginParamsWithHTTPClient(client *http.Client) *ListVersionsByCNIPluginParams
NewListVersionsByCNIPluginParamsWithHTTPClient creates a new ListVersionsByCNIPluginParams object with the ability to set a custom HTTPClient for a request.
func NewListVersionsByCNIPluginParamsWithTimeout ¶
func NewListVersionsByCNIPluginParamsWithTimeout(timeout time.Duration) *ListVersionsByCNIPluginParams
NewListVersionsByCNIPluginParamsWithTimeout creates a new ListVersionsByCNIPluginParams object with the ability to set a timeout on a request.
func (*ListVersionsByCNIPluginParams) SetCNIPluginType ¶
func (o *ListVersionsByCNIPluginParams) SetCNIPluginType(cniPluginType string)
SetCNIPluginType adds the cniPluginType to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) SetContext ¶
func (o *ListVersionsByCNIPluginParams) SetContext(ctx context.Context)
SetContext adds the context to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) SetDefaults ¶
func (o *ListVersionsByCNIPluginParams) SetDefaults()
SetDefaults hydrates default values in the list versions by c n i plugin params (not the query body).
All values with no default are reset to their zero value.
func (*ListVersionsByCNIPluginParams) SetHTTPClient ¶
func (o *ListVersionsByCNIPluginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) SetTimeout ¶
func (o *ListVersionsByCNIPluginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) WithCNIPluginType ¶
func (o *ListVersionsByCNIPluginParams) WithCNIPluginType(cniPluginType string) *ListVersionsByCNIPluginParams
WithCNIPluginType adds the cniPluginType to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) WithContext ¶
func (o *ListVersionsByCNIPluginParams) WithContext(ctx context.Context) *ListVersionsByCNIPluginParams
WithContext adds the context to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) WithDefaults ¶
func (o *ListVersionsByCNIPluginParams) WithDefaults() *ListVersionsByCNIPluginParams
WithDefaults hydrates default values in the list versions by c n i plugin params (not the query body).
All values with no default are reset to their zero value.
func (*ListVersionsByCNIPluginParams) WithHTTPClient ¶
func (o *ListVersionsByCNIPluginParams) WithHTTPClient(client *http.Client) *ListVersionsByCNIPluginParams
WithHTTPClient adds the HTTPClient to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) WithTimeout ¶
func (o *ListVersionsByCNIPluginParams) WithTimeout(timeout time.Duration) *ListVersionsByCNIPluginParams
WithTimeout adds the timeout to the list versions by c n i plugin params
func (*ListVersionsByCNIPluginParams) WriteToRequest ¶
func (o *ListVersionsByCNIPluginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListVersionsByCNIPluginReader ¶
type ListVersionsByCNIPluginReader struct {
// contains filtered or unexported fields
}
ListVersionsByCNIPluginReader is a Reader for the ListVersionsByCNIPlugin structure.
func (*ListVersionsByCNIPluginReader) ReadResponse ¶
func (o *ListVersionsByCNIPluginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListVersionsByCNIPluginUnauthorized ¶
type ListVersionsByCNIPluginUnauthorized struct { }
ListVersionsByCNIPluginUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListVersionsByCNIPluginUnauthorized ¶
func NewListVersionsByCNIPluginUnauthorized() *ListVersionsByCNIPluginUnauthorized
NewListVersionsByCNIPluginUnauthorized creates a ListVersionsByCNIPluginUnauthorized with default headers values
func (*ListVersionsByCNIPluginUnauthorized) Error ¶
func (o *ListVersionsByCNIPluginUnauthorized) Error() string