kubevirt

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 kubevirt API

func (*Client) ListKubeVirtVMIPresets

func (a *Client) ListKubeVirtVMIPresets(params *ListKubeVirtVMIPresetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubeVirtVMIPresetsOK, error)

ListKubeVirtVMIPresets lists available kube virt virtual machine instance preset

func (*Client) ListKubeVirtVMIPresetsNoCredentials

func (a *Client) ListKubeVirtVMIPresetsNoCredentials(params *ListKubeVirtVMIPresetsNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubeVirtVMIPresetsNoCredentialsOK, error)

ListKubeVirtVMIPresetsNoCredentials Lists available VirtualMachineInstancePreset

func (*Client) ListKubevirtStorageClasses

func (a *Client) ListKubevirtStorageClasses(params *ListKubevirtStorageClassesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubevirtStorageClassesOK, error)

ListKubevirtStorageClasses lists available k8s storage classes in the kubevirt cluster

func (*Client) ListKubevirtStorageClassesNoCredentials

ListKubevirtStorageClassesNoCredentials List Storage Classes

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 {
	ListKubeVirtVMIPresets(params *ListKubeVirtVMIPresetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubeVirtVMIPresetsOK, error)

	ListKubeVirtVMIPresetsNoCredentials(params *ListKubeVirtVMIPresetsNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubeVirtVMIPresetsNoCredentialsOK, error)

	ListKubevirtStorageClasses(params *ListKubevirtStorageClassesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubevirtStorageClassesOK, error)

	ListKubevirtStorageClassesNoCredentials(params *ListKubevirtStorageClassesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListKubevirtStorageClassesNoCredentialsOK, 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 kubevirt API client.

type ListKubeVirtVMIPresetsDefault

type ListKubeVirtVMIPresetsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListKubeVirtVMIPresetsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListKubeVirtVMIPresetsDefault

func NewListKubeVirtVMIPresetsDefault(code int) *ListKubeVirtVMIPresetsDefault

NewListKubeVirtVMIPresetsDefault creates a ListKubeVirtVMIPresetsDefault with default headers values

func (*ListKubeVirtVMIPresetsDefault) Code

Code gets the status code for the list kube virt VM i presets default response

func (*ListKubeVirtVMIPresetsDefault) Error

func (*ListKubeVirtVMIPresetsDefault) GetPayload

type ListKubeVirtVMIPresetsNoCredentialsDefault

type ListKubeVirtVMIPresetsNoCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListKubeVirtVMIPresetsNoCredentialsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListKubeVirtVMIPresetsNoCredentialsDefault

func NewListKubeVirtVMIPresetsNoCredentialsDefault(code int) *ListKubeVirtVMIPresetsNoCredentialsDefault

NewListKubeVirtVMIPresetsNoCredentialsDefault creates a ListKubeVirtVMIPresetsNoCredentialsDefault with default headers values

func (*ListKubeVirtVMIPresetsNoCredentialsDefault) Code

Code gets the status code for the list kube virt VM i presets no credentials default response

func (*ListKubeVirtVMIPresetsNoCredentialsDefault) Error

func (*ListKubeVirtVMIPresetsNoCredentialsDefault) GetPayload

type ListKubeVirtVMIPresetsNoCredentialsOK

type ListKubeVirtVMIPresetsNoCredentialsOK struct {
	Payload models.VirtualMachineInstancePresetList
}
ListKubeVirtVMIPresetsNoCredentialsOK describes a response with status code 200, with default header values.

VirtualMachineInstancePresetList

func NewListKubeVirtVMIPresetsNoCredentialsOK

func NewListKubeVirtVMIPresetsNoCredentialsOK() *ListKubeVirtVMIPresetsNoCredentialsOK

NewListKubeVirtVMIPresetsNoCredentialsOK creates a ListKubeVirtVMIPresetsNoCredentialsOK with default headers values

func (*ListKubeVirtVMIPresetsNoCredentialsOK) Error

func (*ListKubeVirtVMIPresetsNoCredentialsOK) GetPayload

type ListKubeVirtVMIPresetsNoCredentialsParams

type ListKubeVirtVMIPresetsNoCredentialsParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListKubeVirtVMIPresetsNoCredentialsParams contains all the parameters to send to the API endpoint

for the list kube virt VM i presets no credentials operation.

Typically these are written to a http.Request.

func NewListKubeVirtVMIPresetsNoCredentialsParams

func NewListKubeVirtVMIPresetsNoCredentialsParams() *ListKubeVirtVMIPresetsNoCredentialsParams

NewListKubeVirtVMIPresetsNoCredentialsParams creates a new ListKubeVirtVMIPresetsNoCredentialsParams 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 NewListKubeVirtVMIPresetsNoCredentialsParamsWithContext

func NewListKubeVirtVMIPresetsNoCredentialsParamsWithContext(ctx context.Context) *ListKubeVirtVMIPresetsNoCredentialsParams

NewListKubeVirtVMIPresetsNoCredentialsParamsWithContext creates a new ListKubeVirtVMIPresetsNoCredentialsParams object with the ability to set a context for a request.

func NewListKubeVirtVMIPresetsNoCredentialsParamsWithHTTPClient

func NewListKubeVirtVMIPresetsNoCredentialsParamsWithHTTPClient(client *http.Client) *ListKubeVirtVMIPresetsNoCredentialsParams

NewListKubeVirtVMIPresetsNoCredentialsParamsWithHTTPClient creates a new ListKubeVirtVMIPresetsNoCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewListKubeVirtVMIPresetsNoCredentialsParamsWithTimeout

func NewListKubeVirtVMIPresetsNoCredentialsParamsWithTimeout(timeout time.Duration) *ListKubeVirtVMIPresetsNoCredentialsParams

NewListKubeVirtVMIPresetsNoCredentialsParamsWithTimeout creates a new ListKubeVirtVMIPresetsNoCredentialsParams object with the ability to set a timeout on a request.

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetClusterID

func (o *ListKubeVirtVMIPresetsNoCredentialsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetContext

SetContext adds the context to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetDefaults

SetDefaults hydrates default values in the list kube virt VM i presets no credentials params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetHTTPClient

func (o *ListKubeVirtVMIPresetsNoCredentialsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetProjectID

func (o *ListKubeVirtVMIPresetsNoCredentialsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) SetTimeout

SetTimeout adds the timeout to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithClusterID

WithClusterID adds the clusterID to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithContext

WithContext adds the context to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithDefaults

WithDefaults hydrates default values in the list kube virt VM i presets no credentials params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithProjectID

WithProjectID adds the projectID to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WithTimeout

WithTimeout adds the timeout to the list kube virt VM i presets no credentials params

func (*ListKubeVirtVMIPresetsNoCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListKubeVirtVMIPresetsNoCredentialsReader

type ListKubeVirtVMIPresetsNoCredentialsReader struct {
	// contains filtered or unexported fields
}

ListKubeVirtVMIPresetsNoCredentialsReader is a Reader for the ListKubeVirtVMIPresetsNoCredentials structure.

func (*ListKubeVirtVMIPresetsNoCredentialsReader) ReadResponse

func (o *ListKubeVirtVMIPresetsNoCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListKubeVirtVMIPresetsOK

type ListKubeVirtVMIPresetsOK struct {
	Payload models.VirtualMachineInstancePresetList
}
ListKubeVirtVMIPresetsOK describes a response with status code 200, with default header values.

VirtualMachineInstancePresetList

func NewListKubeVirtVMIPresetsOK

func NewListKubeVirtVMIPresetsOK() *ListKubeVirtVMIPresetsOK

NewListKubeVirtVMIPresetsOK creates a ListKubeVirtVMIPresetsOK with default headers values

func (*ListKubeVirtVMIPresetsOK) Error

func (o *ListKubeVirtVMIPresetsOK) Error() string

func (*ListKubeVirtVMIPresetsOK) GetPayload

type ListKubeVirtVMIPresetsParams

type ListKubeVirtVMIPresetsParams struct {

	// Credential.
	Credential *string

	// Kubeconfig.
	Kubeconfig *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListKubeVirtVMIPresetsParams contains all the parameters to send to the API endpoint

for the list kube virt VM i presets operation.

Typically these are written to a http.Request.

func NewListKubeVirtVMIPresetsParams

func NewListKubeVirtVMIPresetsParams() *ListKubeVirtVMIPresetsParams

NewListKubeVirtVMIPresetsParams creates a new ListKubeVirtVMIPresetsParams 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 NewListKubeVirtVMIPresetsParamsWithContext

func NewListKubeVirtVMIPresetsParamsWithContext(ctx context.Context) *ListKubeVirtVMIPresetsParams

NewListKubeVirtVMIPresetsParamsWithContext creates a new ListKubeVirtVMIPresetsParams object with the ability to set a context for a request.

func NewListKubeVirtVMIPresetsParamsWithHTTPClient

func NewListKubeVirtVMIPresetsParamsWithHTTPClient(client *http.Client) *ListKubeVirtVMIPresetsParams

NewListKubeVirtVMIPresetsParamsWithHTTPClient creates a new ListKubeVirtVMIPresetsParams object with the ability to set a custom HTTPClient for a request.

func NewListKubeVirtVMIPresetsParamsWithTimeout

func NewListKubeVirtVMIPresetsParamsWithTimeout(timeout time.Duration) *ListKubeVirtVMIPresetsParams

NewListKubeVirtVMIPresetsParamsWithTimeout creates a new ListKubeVirtVMIPresetsParams object with the ability to set a timeout on a request.

func (*ListKubeVirtVMIPresetsParams) SetContext

func (o *ListKubeVirtVMIPresetsParams) SetContext(ctx context.Context)

SetContext adds the context to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) SetCredential

func (o *ListKubeVirtVMIPresetsParams) SetCredential(credential *string)

SetCredential adds the credential to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) SetDefaults

func (o *ListKubeVirtVMIPresetsParams) SetDefaults()

SetDefaults hydrates default values in the list kube virt VM i presets params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubeVirtVMIPresetsParams) SetHTTPClient

func (o *ListKubeVirtVMIPresetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) SetKubeconfig

func (o *ListKubeVirtVMIPresetsParams) SetKubeconfig(kubeconfig *string)

SetKubeconfig adds the kubeconfig to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) SetTimeout

func (o *ListKubeVirtVMIPresetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WithContext

WithContext adds the context to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WithCredential

func (o *ListKubeVirtVMIPresetsParams) WithCredential(credential *string) *ListKubeVirtVMIPresetsParams

WithCredential adds the credential to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WithDefaults

WithDefaults hydrates default values in the list kube virt VM i presets params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubeVirtVMIPresetsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WithKubeconfig

func (o *ListKubeVirtVMIPresetsParams) WithKubeconfig(kubeconfig *string) *ListKubeVirtVMIPresetsParams

WithKubeconfig adds the kubeconfig to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WithTimeout

WithTimeout adds the timeout to the list kube virt VM i presets params

func (*ListKubeVirtVMIPresetsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListKubeVirtVMIPresetsReader

type ListKubeVirtVMIPresetsReader struct {
	// contains filtered or unexported fields
}

ListKubeVirtVMIPresetsReader is a Reader for the ListKubeVirtVMIPresets structure.

func (*ListKubeVirtVMIPresetsReader) ReadResponse

func (o *ListKubeVirtVMIPresetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListKubevirtStorageClassesDefault

type ListKubevirtStorageClassesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListKubevirtStorageClassesDefault describes a response with status code -1, with default header values.

errorResponse

func NewListKubevirtStorageClassesDefault

func NewListKubevirtStorageClassesDefault(code int) *ListKubevirtStorageClassesDefault

NewListKubevirtStorageClassesDefault creates a ListKubevirtStorageClassesDefault with default headers values

func (*ListKubevirtStorageClassesDefault) Code

Code gets the status code for the list kubevirt storage classes default response

func (*ListKubevirtStorageClassesDefault) Error

func (*ListKubevirtStorageClassesDefault) GetPayload

type ListKubevirtStorageClassesNoCredentialsDefault

type ListKubevirtStorageClassesNoCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListKubevirtStorageClassesNoCredentialsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListKubevirtStorageClassesNoCredentialsDefault

func NewListKubevirtStorageClassesNoCredentialsDefault(code int) *ListKubevirtStorageClassesNoCredentialsDefault

NewListKubevirtStorageClassesNoCredentialsDefault creates a ListKubevirtStorageClassesNoCredentialsDefault with default headers values

func (*ListKubevirtStorageClassesNoCredentialsDefault) Code

Code gets the status code for the list kubevirt storage classes no credentials default response

func (*ListKubevirtStorageClassesNoCredentialsDefault) Error

func (*ListKubevirtStorageClassesNoCredentialsDefault) GetPayload

type ListKubevirtStorageClassesNoCredentialsOK

type ListKubevirtStorageClassesNoCredentialsOK struct {
	Payload models.StorageClassList
}
ListKubevirtStorageClassesNoCredentialsOK describes a response with status code 200, with default header values.

StorageClassList

func NewListKubevirtStorageClassesNoCredentialsOK

func NewListKubevirtStorageClassesNoCredentialsOK() *ListKubevirtStorageClassesNoCredentialsOK

NewListKubevirtStorageClassesNoCredentialsOK creates a ListKubevirtStorageClassesNoCredentialsOK with default headers values

func (*ListKubevirtStorageClassesNoCredentialsOK) Error

func (*ListKubevirtStorageClassesNoCredentialsOK) GetPayload

type ListKubevirtStorageClassesNoCredentialsParams

type ListKubevirtStorageClassesNoCredentialsParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListKubevirtStorageClassesNoCredentialsParams contains all the parameters to send to the API endpoint

for the list kubevirt storage classes no credentials operation.

Typically these are written to a http.Request.

func NewListKubevirtStorageClassesNoCredentialsParams

func NewListKubevirtStorageClassesNoCredentialsParams() *ListKubevirtStorageClassesNoCredentialsParams

NewListKubevirtStorageClassesNoCredentialsParams creates a new ListKubevirtStorageClassesNoCredentialsParams 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 NewListKubevirtStorageClassesNoCredentialsParamsWithContext

func NewListKubevirtStorageClassesNoCredentialsParamsWithContext(ctx context.Context) *ListKubevirtStorageClassesNoCredentialsParams

NewListKubevirtStorageClassesNoCredentialsParamsWithContext creates a new ListKubevirtStorageClassesNoCredentialsParams object with the ability to set a context for a request.

func NewListKubevirtStorageClassesNoCredentialsParamsWithHTTPClient

func NewListKubevirtStorageClassesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListKubevirtStorageClassesNoCredentialsParams

NewListKubevirtStorageClassesNoCredentialsParamsWithHTTPClient creates a new ListKubevirtStorageClassesNoCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewListKubevirtStorageClassesNoCredentialsParamsWithTimeout

func NewListKubevirtStorageClassesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListKubevirtStorageClassesNoCredentialsParams

NewListKubevirtStorageClassesNoCredentialsParamsWithTimeout creates a new ListKubevirtStorageClassesNoCredentialsParams object with the ability to set a timeout on a request.

func (*ListKubevirtStorageClassesNoCredentialsParams) SetClusterID

func (o *ListKubevirtStorageClassesNoCredentialsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) SetContext

SetContext adds the context to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) SetDefaults

SetDefaults hydrates default values in the list kubevirt storage classes no credentials params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubevirtStorageClassesNoCredentialsParams) SetHTTPClient

func (o *ListKubevirtStorageClassesNoCredentialsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) SetProjectID

func (o *ListKubevirtStorageClassesNoCredentialsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) SetTimeout

SetTimeout adds the timeout to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WithClusterID

WithClusterID adds the clusterID to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WithContext

WithContext adds the context to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WithDefaults

WithDefaults hydrates default values in the list kubevirt storage classes no credentials params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubevirtStorageClassesNoCredentialsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WithProjectID

WithProjectID adds the projectID to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WithTimeout

WithTimeout adds the timeout to the list kubevirt storage classes no credentials params

func (*ListKubevirtStorageClassesNoCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListKubevirtStorageClassesNoCredentialsReader

type ListKubevirtStorageClassesNoCredentialsReader struct {
	// contains filtered or unexported fields
}

ListKubevirtStorageClassesNoCredentialsReader is a Reader for the ListKubevirtStorageClassesNoCredentials structure.

func (*ListKubevirtStorageClassesNoCredentialsReader) ReadResponse

func (o *ListKubevirtStorageClassesNoCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListKubevirtStorageClassesOK

type ListKubevirtStorageClassesOK struct {
	Payload models.StorageClassList
}
ListKubevirtStorageClassesOK describes a response with status code 200, with default header values.

StorageClassList

func NewListKubevirtStorageClassesOK

func NewListKubevirtStorageClassesOK() *ListKubevirtStorageClassesOK

NewListKubevirtStorageClassesOK creates a ListKubevirtStorageClassesOK with default headers values

func (*ListKubevirtStorageClassesOK) Error

func (*ListKubevirtStorageClassesOK) GetPayload

type ListKubevirtStorageClassesParams

type ListKubevirtStorageClassesParams struct {

	// Credential.
	Credential *string

	// Kubeconfig.
	Kubeconfig *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListKubevirtStorageClassesParams contains all the parameters to send to the API endpoint

for the list kubevirt storage classes operation.

Typically these are written to a http.Request.

func NewListKubevirtStorageClassesParams

func NewListKubevirtStorageClassesParams() *ListKubevirtStorageClassesParams

NewListKubevirtStorageClassesParams creates a new ListKubevirtStorageClassesParams 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 NewListKubevirtStorageClassesParamsWithContext

func NewListKubevirtStorageClassesParamsWithContext(ctx context.Context) *ListKubevirtStorageClassesParams

NewListKubevirtStorageClassesParamsWithContext creates a new ListKubevirtStorageClassesParams object with the ability to set a context for a request.

func NewListKubevirtStorageClassesParamsWithHTTPClient

func NewListKubevirtStorageClassesParamsWithHTTPClient(client *http.Client) *ListKubevirtStorageClassesParams

NewListKubevirtStorageClassesParamsWithHTTPClient creates a new ListKubevirtStorageClassesParams object with the ability to set a custom HTTPClient for a request.

func NewListKubevirtStorageClassesParamsWithTimeout

func NewListKubevirtStorageClassesParamsWithTimeout(timeout time.Duration) *ListKubevirtStorageClassesParams

NewListKubevirtStorageClassesParamsWithTimeout creates a new ListKubevirtStorageClassesParams object with the ability to set a timeout on a request.

func (*ListKubevirtStorageClassesParams) SetContext

SetContext adds the context to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) SetCredential

func (o *ListKubevirtStorageClassesParams) SetCredential(credential *string)

SetCredential adds the credential to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) SetDefaults

func (o *ListKubevirtStorageClassesParams) SetDefaults()

SetDefaults hydrates default values in the list kubevirt storage classes params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubevirtStorageClassesParams) SetHTTPClient

func (o *ListKubevirtStorageClassesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) SetKubeconfig

func (o *ListKubevirtStorageClassesParams) SetKubeconfig(kubeconfig *string)

SetKubeconfig adds the kubeconfig to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) SetTimeout

func (o *ListKubevirtStorageClassesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WithContext

WithContext adds the context to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WithCredential

WithCredential adds the credential to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WithDefaults

WithDefaults hydrates default values in the list kubevirt storage classes params (not the query body).

All values with no default are reset to their zero value.

func (*ListKubevirtStorageClassesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WithKubeconfig

WithKubeconfig adds the kubeconfig to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WithTimeout

WithTimeout adds the timeout to the list kubevirt storage classes params

func (*ListKubevirtStorageClassesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListKubevirtStorageClassesReader

type ListKubevirtStorageClassesReader struct {
	// contains filtered or unexported fields
}

ListKubevirtStorageClassesReader is a Reader for the ListKubevirtStorageClasses structure.

func (*ListKubevirtStorageClassesReader) ReadResponse

func (o *ListKubevirtStorageClassesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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