iscsi_connection

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 iscsi connection API

func (*Client) GetIscsiConnections

func (a *Client) GetIscsiConnections(params *GetIscsiConnectionsParams, opts ...ClientOption) (*GetIscsiConnectionsOK, error)

GetIscsiConnections get iscsi connections 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 {
	GetIscsiConnections(params *GetIscsiConnectionsParams, opts ...ClientOption) (*GetIscsiConnectionsOK, 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 iscsi connection API client.

type GetIscsiConnectionsBadRequest

type GetIscsiConnectionsBadRequest struct {
	Payload string
}
GetIscsiConnectionsBadRequest describes a response with status code 400, with default header values.

GetIscsiConnectionsBadRequest get iscsi connections bad request

func NewGetIscsiConnectionsBadRequest

func NewGetIscsiConnectionsBadRequest() *GetIscsiConnectionsBadRequest

NewGetIscsiConnectionsBadRequest creates a GetIscsiConnectionsBadRequest with default headers values

func (*GetIscsiConnectionsBadRequest) Error

func (*GetIscsiConnectionsBadRequest) GetPayload

func (o *GetIscsiConnectionsBadRequest) GetPayload() string

type GetIscsiConnectionsOK

type GetIscsiConnectionsOK struct {
	Payload []*models.IscsiConnection
}
GetIscsiConnectionsOK describes a response with status code 200, with default header values.

Ok

func NewGetIscsiConnectionsOK

func NewGetIscsiConnectionsOK() *GetIscsiConnectionsOK

NewGetIscsiConnectionsOK creates a GetIscsiConnectionsOK with default headers values

func (*GetIscsiConnectionsOK) Error

func (o *GetIscsiConnectionsOK) Error() string

func (*GetIscsiConnectionsOK) GetPayload

func (o *GetIscsiConnectionsOK) GetPayload() []*models.IscsiConnection

type GetIscsiConnectionsParams

type GetIscsiConnectionsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetIscsiConnectionsRequestBody

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

GetIscsiConnectionsParams contains all the parameters to send to the API endpoint

for the get iscsi connections operation.

Typically these are written to a http.Request.

func NewGetIscsiConnectionsParams

func NewGetIscsiConnectionsParams() *GetIscsiConnectionsParams

NewGetIscsiConnectionsParams creates a new GetIscsiConnectionsParams 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 NewGetIscsiConnectionsParamsWithContext

func NewGetIscsiConnectionsParamsWithContext(ctx context.Context) *GetIscsiConnectionsParams

NewGetIscsiConnectionsParamsWithContext creates a new GetIscsiConnectionsParams object with the ability to set a context for a request.

func NewGetIscsiConnectionsParamsWithHTTPClient

func NewGetIscsiConnectionsParamsWithHTTPClient(client *http.Client) *GetIscsiConnectionsParams

NewGetIscsiConnectionsParamsWithHTTPClient creates a new GetIscsiConnectionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetIscsiConnectionsParamsWithTimeout

func NewGetIscsiConnectionsParamsWithTimeout(timeout time.Duration) *GetIscsiConnectionsParams

NewGetIscsiConnectionsParamsWithTimeout creates a new GetIscsiConnectionsParams object with the ability to set a timeout on a request.

func (*GetIscsiConnectionsParams) SetContentLanguage

func (o *GetIscsiConnectionsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get iscsi connections params

func (*GetIscsiConnectionsParams) SetContext

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

SetContext adds the context to the get iscsi connections params

func (*GetIscsiConnectionsParams) SetDefaults

func (o *GetIscsiConnectionsParams) SetDefaults()

SetDefaults hydrates default values in the get iscsi connections params (not the query body).

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

func (*GetIscsiConnectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get iscsi connections params

func (*GetIscsiConnectionsParams) SetRequestBody

func (o *GetIscsiConnectionsParams) SetRequestBody(requestBody *models.GetIscsiConnectionsRequestBody)

SetRequestBody adds the requestBody to the get iscsi connections params

func (*GetIscsiConnectionsParams) SetTimeout

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

SetTimeout adds the timeout to the get iscsi connections params

func (*GetIscsiConnectionsParams) WithContentLanguage

func (o *GetIscsiConnectionsParams) WithContentLanguage(contentLanguage *string) *GetIscsiConnectionsParams

WithContentLanguage adds the contentLanguage to the get iscsi connections params

func (*GetIscsiConnectionsParams) WithContext

WithContext adds the context to the get iscsi connections params

func (*GetIscsiConnectionsParams) WithDefaults

WithDefaults hydrates default values in the get iscsi connections params (not the query body).

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

func (*GetIscsiConnectionsParams) WithHTTPClient

func (o *GetIscsiConnectionsParams) WithHTTPClient(client *http.Client) *GetIscsiConnectionsParams

WithHTTPClient adds the HTTPClient to the get iscsi connections params

func (*GetIscsiConnectionsParams) WithRequestBody

WithRequestBody adds the requestBody to the get iscsi connections params

func (*GetIscsiConnectionsParams) WithTimeout

WithTimeout adds the timeout to the get iscsi connections params

func (*GetIscsiConnectionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetIscsiConnectionsReader

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

GetIscsiConnectionsReader is a Reader for the GetIscsiConnections structure.

func (*GetIscsiConnectionsReader) ReadResponse

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