volume

package
v0.18.21 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 11 Imported by: 2

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 volume API

func (*Client) ClusterInfo added in v0.17.3

func (a *Client) ClusterInfo(params *ClusterInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterInfoOK, error)

ClusterInfo returns info and status to connected storage clusters

func (*Client) DeleteVolume

func (a *Client) DeleteVolume(params *DeleteVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVolumeOK, error)

DeleteVolume deletes a volume including all data

func (*Client) FindVolumes

func (a *Client) FindVolumes(params *FindVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindVolumesOK, error)

FindVolumes finds volumes by multiple criteria

func (*Client) GetVolume added in v0.17.15

func (a *Client) GetVolume(params *GetVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVolumeOK, error)

GetVolume gets a volume

func (*Client) ListVolumes

func (a *Client) ListVolumes(params *ListVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVolumesOK, error)

ListVolumes gets all volumes

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v0.15.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ClusterInfo(params *ClusterInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterInfoOK, error)

	DeleteVolume(params *DeleteVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVolumeOK, error)

	FindVolumes(params *FindVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindVolumesOK, error)

	GetVolume(params *GetVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVolumeOK, error)

	ListVolumes(params *ListVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVolumesOK, 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 volume API client.

type ClusterInfoDefault added in v0.17.3

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

Error

func NewClusterInfoDefault added in v0.17.3

func NewClusterInfoDefault(code int) *ClusterInfoDefault

NewClusterInfoDefault creates a ClusterInfoDefault with default headers values

func (*ClusterInfoDefault) Code added in v0.17.3

func (o *ClusterInfoDefault) Code() int

Code gets the status code for the cluster info default response

func (*ClusterInfoDefault) Error added in v0.17.3

func (o *ClusterInfoDefault) Error() string

func (*ClusterInfoDefault) GetPayload added in v0.17.3

type ClusterInfoOK added in v0.17.3

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

OK

func NewClusterInfoOK added in v0.17.3

func NewClusterInfoOK() *ClusterInfoOK

NewClusterInfoOK creates a ClusterInfoOK with default headers values

func (*ClusterInfoOK) Error added in v0.17.3

func (o *ClusterInfoOK) Error() string

func (*ClusterInfoOK) GetPayload added in v0.17.3

func (o *ClusterInfoOK) GetPayload() []*models.V1StorageClusterInfo

type ClusterInfoParams added in v0.17.3

type ClusterInfoParams struct {

	/* Partitionid.

	   identifier of the partition
	*/
	Partitionid *string

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

ClusterInfoParams contains all the parameters to send to the API endpoint

for the cluster info operation.

Typically these are written to a http.Request.

func NewClusterInfoParams added in v0.17.3

func NewClusterInfoParams() *ClusterInfoParams

NewClusterInfoParams creates a new ClusterInfoParams 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 NewClusterInfoParamsWithContext added in v0.17.3

func NewClusterInfoParamsWithContext(ctx context.Context) *ClusterInfoParams

NewClusterInfoParamsWithContext creates a new ClusterInfoParams object with the ability to set a context for a request.

func NewClusterInfoParamsWithHTTPClient added in v0.17.3

func NewClusterInfoParamsWithHTTPClient(client *http.Client) *ClusterInfoParams

NewClusterInfoParamsWithHTTPClient creates a new ClusterInfoParams object with the ability to set a custom HTTPClient for a request.

func NewClusterInfoParamsWithTimeout added in v0.17.3

func NewClusterInfoParamsWithTimeout(timeout time.Duration) *ClusterInfoParams

NewClusterInfoParamsWithTimeout creates a new ClusterInfoParams object with the ability to set a timeout on a request.

func (*ClusterInfoParams) SetContext added in v0.17.3

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

SetContext adds the context to the cluster info params

func (*ClusterInfoParams) SetDefaults added in v0.17.3

func (o *ClusterInfoParams) SetDefaults()

SetDefaults hydrates default values in the cluster info params (not the query body).

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

func (*ClusterInfoParams) SetHTTPClient added in v0.17.3

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

SetHTTPClient adds the HTTPClient to the cluster info params

func (*ClusterInfoParams) SetPartitionid added in v0.17.15

func (o *ClusterInfoParams) SetPartitionid(partitionid *string)

SetPartitionid adds the partitionid to the cluster info params

func (*ClusterInfoParams) SetTimeout added in v0.17.3

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

SetTimeout adds the timeout to the cluster info params

func (*ClusterInfoParams) WithContext added in v0.17.3

func (o *ClusterInfoParams) WithContext(ctx context.Context) *ClusterInfoParams

WithContext adds the context to the cluster info params

func (*ClusterInfoParams) WithDefaults added in v0.17.3

func (o *ClusterInfoParams) WithDefaults() *ClusterInfoParams

WithDefaults hydrates default values in the cluster info params (not the query body).

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

func (*ClusterInfoParams) WithHTTPClient added in v0.17.3

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

WithHTTPClient adds the HTTPClient to the cluster info params

func (*ClusterInfoParams) WithPartitionid added in v0.17.15

func (o *ClusterInfoParams) WithPartitionid(partitionid *string) *ClusterInfoParams

WithPartitionid adds the partitionid to the cluster info params

func (*ClusterInfoParams) WithTimeout added in v0.17.3

func (o *ClusterInfoParams) WithTimeout(timeout time.Duration) *ClusterInfoParams

WithTimeout adds the timeout to the cluster info params

func (*ClusterInfoParams) WriteToRequest added in v0.17.3

func (o *ClusterInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ClusterInfoReader added in v0.17.3

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

ClusterInfoReader is a Reader for the ClusterInfo structure.

func (*ClusterInfoReader) ReadResponse added in v0.17.3

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

ReadResponse reads a server response into the received o.

type DeleteVolumeDefault

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

Error

func NewDeleteVolumeDefault

func NewDeleteVolumeDefault(code int) *DeleteVolumeDefault

NewDeleteVolumeDefault creates a DeleteVolumeDefault with default headers values

func (*DeleteVolumeDefault) Code

func (o *DeleteVolumeDefault) Code() int

Code gets the status code for the delete volume default response

func (*DeleteVolumeDefault) Error

func (o *DeleteVolumeDefault) Error() string

func (*DeleteVolumeDefault) GetPayload

type DeleteVolumeOK

type DeleteVolumeOK struct {
	Payload *models.V1VolumeResponse
}
DeleteVolumeOK describes a response with status code 200, with default header values.

OK

func NewDeleteVolumeOK

func NewDeleteVolumeOK() *DeleteVolumeOK

NewDeleteVolumeOK creates a DeleteVolumeOK with default headers values

func (*DeleteVolumeOK) Error

func (o *DeleteVolumeOK) Error() string

func (*DeleteVolumeOK) GetPayload

func (o *DeleteVolumeOK) GetPayload() *models.V1VolumeResponse

type DeleteVolumeParams

type DeleteVolumeParams struct {

	/* ID.

	   id of the volume
	*/
	ID string

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

DeleteVolumeParams contains all the parameters to send to the API endpoint

for the delete volume operation.

Typically these are written to a http.Request.

func NewDeleteVolumeParams

func NewDeleteVolumeParams() *DeleteVolumeParams

NewDeleteVolumeParams creates a new DeleteVolumeParams 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 NewDeleteVolumeParamsWithContext

func NewDeleteVolumeParamsWithContext(ctx context.Context) *DeleteVolumeParams

NewDeleteVolumeParamsWithContext creates a new DeleteVolumeParams object with the ability to set a context for a request.

func NewDeleteVolumeParamsWithHTTPClient

func NewDeleteVolumeParamsWithHTTPClient(client *http.Client) *DeleteVolumeParams

NewDeleteVolumeParamsWithHTTPClient creates a new DeleteVolumeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteVolumeParamsWithTimeout

func NewDeleteVolumeParamsWithTimeout(timeout time.Duration) *DeleteVolumeParams

NewDeleteVolumeParamsWithTimeout creates a new DeleteVolumeParams object with the ability to set a timeout on a request.

func (*DeleteVolumeParams) SetContext

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

SetContext adds the context to the delete volume params

func (*DeleteVolumeParams) SetDefaults

func (o *DeleteVolumeParams) SetDefaults()

SetDefaults hydrates default values in the delete volume params (not the query body).

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

func (*DeleteVolumeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete volume params

func (*DeleteVolumeParams) SetID

func (o *DeleteVolumeParams) SetID(id string)

SetID adds the id to the delete volume params

func (*DeleteVolumeParams) SetTimeout

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

SetTimeout adds the timeout to the delete volume params

func (*DeleteVolumeParams) WithContext

WithContext adds the context to the delete volume params

func (*DeleteVolumeParams) WithDefaults

func (o *DeleteVolumeParams) WithDefaults() *DeleteVolumeParams

WithDefaults hydrates default values in the delete volume params (not the query body).

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

func (*DeleteVolumeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete volume params

func (*DeleteVolumeParams) WithID

WithID adds the id to the delete volume params

func (*DeleteVolumeParams) WithTimeout

func (o *DeleteVolumeParams) WithTimeout(timeout time.Duration) *DeleteVolumeParams

WithTimeout adds the timeout to the delete volume params

func (*DeleteVolumeParams) WriteToRequest

func (o *DeleteVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteVolumeReader

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

DeleteVolumeReader is a Reader for the DeleteVolume structure.

func (*DeleteVolumeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindVolumesDefault

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

Error

func NewFindVolumesDefault

func NewFindVolumesDefault(code int) *FindVolumesDefault

NewFindVolumesDefault creates a FindVolumesDefault with default headers values

func (*FindVolumesDefault) Code

func (o *FindVolumesDefault) Code() int

Code gets the status code for the find volumes default response

func (*FindVolumesDefault) Error

func (o *FindVolumesDefault) Error() string

func (*FindVolumesDefault) GetPayload

type FindVolumesOK

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

OK

func NewFindVolumesOK

func NewFindVolumesOK() *FindVolumesOK

NewFindVolumesOK creates a FindVolumesOK with default headers values

func (*FindVolumesOK) Error

func (o *FindVolumesOK) Error() string

func (*FindVolumesOK) GetPayload

func (o *FindVolumesOK) GetPayload() []*models.V1VolumeResponse

type FindVolumesParams

type FindVolumesParams struct {

	// Body.
	Body *models.V1VolumeFindRequest

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

FindVolumesParams contains all the parameters to send to the API endpoint

for the find volumes operation.

Typically these are written to a http.Request.

func NewFindVolumesParams

func NewFindVolumesParams() *FindVolumesParams

NewFindVolumesParams creates a new FindVolumesParams 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 NewFindVolumesParamsWithContext

func NewFindVolumesParamsWithContext(ctx context.Context) *FindVolumesParams

NewFindVolumesParamsWithContext creates a new FindVolumesParams object with the ability to set a context for a request.

func NewFindVolumesParamsWithHTTPClient

func NewFindVolumesParamsWithHTTPClient(client *http.Client) *FindVolumesParams

NewFindVolumesParamsWithHTTPClient creates a new FindVolumesParams object with the ability to set a custom HTTPClient for a request.

func NewFindVolumesParamsWithTimeout

func NewFindVolumesParamsWithTimeout(timeout time.Duration) *FindVolumesParams

NewFindVolumesParamsWithTimeout creates a new FindVolumesParams object with the ability to set a timeout on a request.

func (*FindVolumesParams) SetBody

func (o *FindVolumesParams) SetBody(body *models.V1VolumeFindRequest)

SetBody adds the body to the find volumes params

func (*FindVolumesParams) SetContext

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

SetContext adds the context to the find volumes params

func (*FindVolumesParams) SetDefaults

func (o *FindVolumesParams) SetDefaults()

SetDefaults hydrates default values in the find volumes params (not the query body).

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

func (*FindVolumesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find volumes params

func (*FindVolumesParams) SetTimeout

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

SetTimeout adds the timeout to the find volumes params

func (*FindVolumesParams) WithBody

WithBody adds the body to the find volumes params

func (*FindVolumesParams) WithContext

func (o *FindVolumesParams) WithContext(ctx context.Context) *FindVolumesParams

WithContext adds the context to the find volumes params

func (*FindVolumesParams) WithDefaults

func (o *FindVolumesParams) WithDefaults() *FindVolumesParams

WithDefaults hydrates default values in the find volumes params (not the query body).

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

func (*FindVolumesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find volumes params

func (*FindVolumesParams) WithTimeout

func (o *FindVolumesParams) WithTimeout(timeout time.Duration) *FindVolumesParams

WithTimeout adds the timeout to the find volumes params

func (*FindVolumesParams) WriteToRequest

func (o *FindVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindVolumesReader

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

FindVolumesReader is a Reader for the FindVolumes structure.

func (*FindVolumesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetVolumeDefault added in v0.17.15

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

Error

func NewGetVolumeDefault added in v0.17.15

func NewGetVolumeDefault(code int) *GetVolumeDefault

NewGetVolumeDefault creates a GetVolumeDefault with default headers values

func (*GetVolumeDefault) Code added in v0.17.15

func (o *GetVolumeDefault) Code() int

Code gets the status code for the get volume default response

func (*GetVolumeDefault) Error added in v0.17.15

func (o *GetVolumeDefault) Error() string

func (*GetVolumeDefault) GetPayload added in v0.17.15

type GetVolumeOK added in v0.17.15

type GetVolumeOK struct {
	Payload *models.V1VolumeResponse
}
GetVolumeOK describes a response with status code 200, with default header values.

OK

func NewGetVolumeOK added in v0.17.15

func NewGetVolumeOK() *GetVolumeOK

NewGetVolumeOK creates a GetVolumeOK with default headers values

func (*GetVolumeOK) Error added in v0.17.15

func (o *GetVolumeOK) Error() string

func (*GetVolumeOK) GetPayload added in v0.17.15

func (o *GetVolumeOK) GetPayload() *models.V1VolumeResponse

type GetVolumeParams added in v0.17.15

type GetVolumeParams struct {

	/* ID.

	   identifier of the volume
	*/
	ID string

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

GetVolumeParams contains all the parameters to send to the API endpoint

for the get volume operation.

Typically these are written to a http.Request.

func NewGetVolumeParams added in v0.17.15

func NewGetVolumeParams() *GetVolumeParams

NewGetVolumeParams creates a new GetVolumeParams 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 NewGetVolumeParamsWithContext added in v0.17.15

func NewGetVolumeParamsWithContext(ctx context.Context) *GetVolumeParams

NewGetVolumeParamsWithContext creates a new GetVolumeParams object with the ability to set a context for a request.

func NewGetVolumeParamsWithHTTPClient added in v0.17.15

func NewGetVolumeParamsWithHTTPClient(client *http.Client) *GetVolumeParams

NewGetVolumeParamsWithHTTPClient creates a new GetVolumeParams object with the ability to set a custom HTTPClient for a request.

func NewGetVolumeParamsWithTimeout added in v0.17.15

func NewGetVolumeParamsWithTimeout(timeout time.Duration) *GetVolumeParams

NewGetVolumeParamsWithTimeout creates a new GetVolumeParams object with the ability to set a timeout on a request.

func (*GetVolumeParams) SetContext added in v0.17.15

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

SetContext adds the context to the get volume params

func (*GetVolumeParams) SetDefaults added in v0.17.15

func (o *GetVolumeParams) SetDefaults()

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

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

func (*GetVolumeParams) SetHTTPClient added in v0.17.15

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

SetHTTPClient adds the HTTPClient to the get volume params

func (*GetVolumeParams) SetID added in v0.17.15

func (o *GetVolumeParams) SetID(id string)

SetID adds the id to the get volume params

func (*GetVolumeParams) SetTimeout added in v0.17.15

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

SetTimeout adds the timeout to the get volume params

func (*GetVolumeParams) WithContext added in v0.17.15

func (o *GetVolumeParams) WithContext(ctx context.Context) *GetVolumeParams

WithContext adds the context to the get volume params

func (*GetVolumeParams) WithDefaults added in v0.17.15

func (o *GetVolumeParams) WithDefaults() *GetVolumeParams

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

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

func (*GetVolumeParams) WithHTTPClient added in v0.17.15

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

WithHTTPClient adds the HTTPClient to the get volume params

func (*GetVolumeParams) WithID added in v0.17.15

func (o *GetVolumeParams) WithID(id string) *GetVolumeParams

WithID adds the id to the get volume params

func (*GetVolumeParams) WithTimeout added in v0.17.15

func (o *GetVolumeParams) WithTimeout(timeout time.Duration) *GetVolumeParams

WithTimeout adds the timeout to the get volume params

func (*GetVolumeParams) WriteToRequest added in v0.17.15

func (o *GetVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetVolumeReader added in v0.17.15

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

GetVolumeReader is a Reader for the GetVolume structure.

func (*GetVolumeReader) ReadResponse added in v0.17.15

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

ReadResponse reads a server response into the received o.

type ListVolumesDefault

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

Error

func NewListVolumesDefault

func NewListVolumesDefault(code int) *ListVolumesDefault

NewListVolumesDefault creates a ListVolumesDefault with default headers values

func (*ListVolumesDefault) Code

func (o *ListVolumesDefault) Code() int

Code gets the status code for the list volumes default response

func (*ListVolumesDefault) Error

func (o *ListVolumesDefault) Error() string

func (*ListVolumesDefault) GetPayload

type ListVolumesOK

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

OK

func NewListVolumesOK

func NewListVolumesOK() *ListVolumesOK

NewListVolumesOK creates a ListVolumesOK with default headers values

func (*ListVolumesOK) Error

func (o *ListVolumesOK) Error() string

func (*ListVolumesOK) GetPayload

func (o *ListVolumesOK) GetPayload() []*models.V1VolumeResponse

type ListVolumesParams

type ListVolumesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListVolumesParams contains all the parameters to send to the API endpoint

for the list volumes operation.

Typically these are written to a http.Request.

func NewListVolumesParams

func NewListVolumesParams() *ListVolumesParams

NewListVolumesParams creates a new ListVolumesParams 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 NewListVolumesParamsWithContext

func NewListVolumesParamsWithContext(ctx context.Context) *ListVolumesParams

NewListVolumesParamsWithContext creates a new ListVolumesParams object with the ability to set a context for a request.

func NewListVolumesParamsWithHTTPClient

func NewListVolumesParamsWithHTTPClient(client *http.Client) *ListVolumesParams

NewListVolumesParamsWithHTTPClient creates a new ListVolumesParams object with the ability to set a custom HTTPClient for a request.

func NewListVolumesParamsWithTimeout

func NewListVolumesParamsWithTimeout(timeout time.Duration) *ListVolumesParams

NewListVolumesParamsWithTimeout creates a new ListVolumesParams object with the ability to set a timeout on a request.

func (*ListVolumesParams) SetContext

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

SetContext adds the context to the list volumes params

func (*ListVolumesParams) SetDefaults

func (o *ListVolumesParams) SetDefaults()

SetDefaults hydrates default values in the list volumes params (not the query body).

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

func (*ListVolumesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list volumes params

func (*ListVolumesParams) SetTimeout

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

SetTimeout adds the timeout to the list volumes params

func (*ListVolumesParams) WithContext

func (o *ListVolumesParams) WithContext(ctx context.Context) *ListVolumesParams

WithContext adds the context to the list volumes params

func (*ListVolumesParams) WithDefaults

func (o *ListVolumesParams) WithDefaults() *ListVolumesParams

WithDefaults hydrates default values in the list volumes params (not the query body).

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

func (*ListVolumesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list volumes params

func (*ListVolumesParams) WithTimeout

func (o *ListVolumesParams) WithTimeout(timeout time.Duration) *ListVolumesParams

WithTimeout adds the timeout to the list volumes params

func (*ListVolumesParams) WriteToRequest

func (o *ListVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListVolumesReader

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

ListVolumesReader is a Reader for the ListVolumes structure.

func (*ListVolumesReader) ReadResponse

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