volume

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 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) DeleteVolume

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

DeleteVolume deletes a volume including all data

func (*Client) FindVolumes

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

FindVolumes finds volumes by multiple criteria

func (*Client) ListVolumes

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

ListVolumes gets all volumes

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteVolume(params *DeleteVolumeParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteVolumeOK, error)

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

	ListVolumes(params *ListVolumesParams, authInfo runtime.ClientAuthInfoWriter) (*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 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 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