cniversion

package
v2.21.10 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 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 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

Code gets the status code for the list versions by c n i plugin default response

func (*ListVersionsByCNIPluginDefault) Error

func (*ListVersionsByCNIPluginDefault) GetPayload

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

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

WithContext adds the context to the list versions by c n i plugin params

func (*ListVersionsByCNIPluginParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the list versions by c n i plugin params

func (*ListVersionsByCNIPluginParams) WithTimeout

WithTimeout adds the timeout to the list versions by c n i plugin params

func (*ListVersionsByCNIPluginParams) WriteToRequest

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL