cniversion

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 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

func (*ListVersionsByCNIPluginDefault) IsClientError

func (o *ListVersionsByCNIPluginDefault) IsClientError() bool

IsClientError returns true when this list versions by c n i plugin default response has a 4xx status code

func (*ListVersionsByCNIPluginDefault) IsCode

func (o *ListVersionsByCNIPluginDefault) IsCode(code int) bool

IsCode returns true when this list versions by c n i plugin default response a status code equal to that given

func (*ListVersionsByCNIPluginDefault) IsRedirect

func (o *ListVersionsByCNIPluginDefault) IsRedirect() bool

IsRedirect returns true when this list versions by c n i plugin default response has a 3xx status code

func (*ListVersionsByCNIPluginDefault) IsServerError

func (o *ListVersionsByCNIPluginDefault) IsServerError() bool

IsServerError returns true when this list versions by c n i plugin default response has a 5xx status code

func (*ListVersionsByCNIPluginDefault) IsSuccess

func (o *ListVersionsByCNIPluginDefault) IsSuccess() bool

IsSuccess returns true when this list versions by c n i plugin default response has a 2xx status code

func (*ListVersionsByCNIPluginDefault) String

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 (*ListVersionsByCNIPluginForbidden) IsClientError

func (o *ListVersionsByCNIPluginForbidden) IsClientError() bool

IsClientError returns true when this list versions by c n i plugin forbidden response has a 4xx status code

func (*ListVersionsByCNIPluginForbidden) IsCode

func (o *ListVersionsByCNIPluginForbidden) IsCode(code int) bool

IsCode returns true when this list versions by c n i plugin forbidden response a status code equal to that given

func (*ListVersionsByCNIPluginForbidden) IsRedirect

func (o *ListVersionsByCNIPluginForbidden) IsRedirect() bool

IsRedirect returns true when this list versions by c n i plugin forbidden response has a 3xx status code

func (*ListVersionsByCNIPluginForbidden) IsServerError

func (o *ListVersionsByCNIPluginForbidden) IsServerError() bool

IsServerError returns true when this list versions by c n i plugin forbidden response has a 5xx status code

func (*ListVersionsByCNIPluginForbidden) IsSuccess

func (o *ListVersionsByCNIPluginForbidden) IsSuccess() bool

IsSuccess returns true when this list versions by c n i plugin forbidden response has a 2xx status code

func (*ListVersionsByCNIPluginForbidden) 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

func (*ListVersionsByCNIPluginOK) IsClientError

func (o *ListVersionsByCNIPluginOK) IsClientError() bool

IsClientError returns true when this list versions by c n i plugin o k response has a 4xx status code

func (*ListVersionsByCNIPluginOK) IsCode

func (o *ListVersionsByCNIPluginOK) IsCode(code int) bool

IsCode returns true when this list versions by c n i plugin o k response a status code equal to that given

func (*ListVersionsByCNIPluginOK) IsRedirect

func (o *ListVersionsByCNIPluginOK) IsRedirect() bool

IsRedirect returns true when this list versions by c n i plugin o k response has a 3xx status code

func (*ListVersionsByCNIPluginOK) IsServerError

func (o *ListVersionsByCNIPluginOK) IsServerError() bool

IsServerError returns true when this list versions by c n i plugin o k response has a 5xx status code

func (*ListVersionsByCNIPluginOK) IsSuccess

func (o *ListVersionsByCNIPluginOK) IsSuccess() bool

IsSuccess returns true when this list versions by c n i plugin o k response has a 2xx status code

func (*ListVersionsByCNIPluginOK) String

func (o *ListVersionsByCNIPluginOK) String() string

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

func (*ListVersionsByCNIPluginUnauthorized) IsClientError

func (o *ListVersionsByCNIPluginUnauthorized) IsClientError() bool

IsClientError returns true when this list versions by c n i plugin unauthorized response has a 4xx status code

func (*ListVersionsByCNIPluginUnauthorized) IsCode

IsCode returns true when this list versions by c n i plugin unauthorized response a status code equal to that given

func (*ListVersionsByCNIPluginUnauthorized) IsRedirect

func (o *ListVersionsByCNIPluginUnauthorized) IsRedirect() bool

IsRedirect returns true when this list versions by c n i plugin unauthorized response has a 3xx status code

func (*ListVersionsByCNIPluginUnauthorized) IsServerError

func (o *ListVersionsByCNIPluginUnauthorized) IsServerError() bool

IsServerError returns true when this list versions by c n i plugin unauthorized response has a 5xx status code

func (*ListVersionsByCNIPluginUnauthorized) IsSuccess

IsSuccess returns true when this list versions by c n i plugin unauthorized response has a 2xx status code

func (*ListVersionsByCNIPluginUnauthorized) String

Jump to

Keyboard shortcuts

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