Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteMount(params *DeleteMountParams, opts ...ClientOption) (*DeleteMountOK, error)
- func (a *Client) ListMounts(params *ListMountsParams, opts ...ClientOption) (*ListMountsOK, error)
- func (a *Client) Mount(params *MountParams, opts ...ClientOption) (*MountCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteMountDefault
- type DeleteMountOK
- type DeleteMountParams
- func (o *DeleteMountParams) SetContext(ctx context.Context)
- func (o *DeleteMountParams) SetDefaults()
- func (o *DeleteMountParams) SetForce(force *bool)
- func (o *DeleteMountParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMountParams) SetID(id int64)
- func (o *DeleteMountParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMountParams) WithContext(ctx context.Context) *DeleteMountParams
- func (o *DeleteMountParams) WithDefaults() *DeleteMountParams
- func (o *DeleteMountParams) WithForce(force *bool) *DeleteMountParams
- func (o *DeleteMountParams) WithHTTPClient(client *http.Client) *DeleteMountParams
- func (o *DeleteMountParams) WithID(id int64) *DeleteMountParams
- func (o *DeleteMountParams) WithTimeout(timeout time.Duration) *DeleteMountParams
- func (o *DeleteMountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMountReader
- type ListMountsDefault
- type ListMountsOK
- type ListMountsParams
- func (o *ListMountsParams) SetContext(ctx context.Context)
- func (o *ListMountsParams) SetDefaults()
- func (o *ListMountsParams) SetHTTPClient(client *http.Client)
- func (o *ListMountsParams) SetID(id *int64)
- func (o *ListMountsParams) SetKind(kind *string)
- func (o *ListMountsParams) SetTimeout(timeout time.Duration)
- func (o *ListMountsParams) WithContext(ctx context.Context) *ListMountsParams
- func (o *ListMountsParams) WithDefaults() *ListMountsParams
- func (o *ListMountsParams) WithHTTPClient(client *http.Client) *ListMountsParams
- func (o *ListMountsParams) WithID(id *int64) *ListMountsParams
- func (o *ListMountsParams) WithKind(kind *string) *ListMountsParams
- func (o *ListMountsParams) WithTimeout(timeout time.Duration) *ListMountsParams
- func (o *ListMountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMountsReader
- type MountCreated
- type MountDefault
- type MountParams
- func (o *MountParams) SetContext(ctx context.Context)
- func (o *MountParams) SetDefaults()
- func (o *MountParams) SetHTTPClient(client *http.Client)
- func (o *MountParams) SetMount(mount *models.Mount)
- func (o *MountParams) SetTimeout(timeout time.Duration)
- func (o *MountParams) WithContext(ctx context.Context) *MountParams
- func (o *MountParams) WithDefaults() *MountParams
- func (o *MountParams) WithHTTPClient(client *http.Client) *MountParams
- func (o *MountParams) WithMount(mount *models.Mount) *MountParams
- func (o *MountParams) WithTimeout(timeout time.Duration) *MountParams
- func (o *MountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MountReader
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 mounts API
func (*Client) DeleteMount ¶
func (a *Client) DeleteMount(params *DeleteMountParams, opts ...ClientOption) (*DeleteMountOK, error)
DeleteMount Unmount a specified mount. Note that mount reference IDs must be specified.
func (*Client) ListMounts ¶
func (a *Client) ListMounts(params *ListMountsParams, opts ...ClientOption) (*ListMountsOK, error)
ListMounts List mounts
func (*Client) Mount ¶
func (a *Client) Mount(params *MountParams, opts ...ClientOption) (*MountCreated, error)
Mount Create a new mount by mount specification.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.2.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteMount(params *DeleteMountParams, opts ...ClientOption) (*DeleteMountOK, error) ListMounts(params *ListMountsParams, opts ...ClientOption) (*ListMountsOK, error) Mount(params *MountParams, opts ...ClientOption) (*MountCreated, 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 mounts API client.
type DeleteMountDefault ¶
DeleteMountDefault describes a response with status code -1, with default header values.
Unmount failed
func NewDeleteMountDefault ¶
func NewDeleteMountDefault(code int) *DeleteMountDefault
NewDeleteMountDefault creates a DeleteMountDefault with default headers values
func (*DeleteMountDefault) Code ¶
func (o *DeleteMountDefault) Code() int
Code gets the status code for the delete mount default response
func (*DeleteMountDefault) Error ¶
func (o *DeleteMountDefault) Error() string
func (*DeleteMountDefault) GetPayload ¶
func (o *DeleteMountDefault) GetPayload() *models.Error
type DeleteMountOK ¶
DeleteMountOK describes a response with status code 200, with default header values.
Unmount succeeded
func NewDeleteMountOK ¶
func NewDeleteMountOK() *DeleteMountOK
NewDeleteMountOK creates a DeleteMountOK with default headers values
func (*DeleteMountOK) Error ¶
func (o *DeleteMountOK) Error() string
func (*DeleteMountOK) GetPayload ¶
func (o *DeleteMountOK) GetPayload() *models.Mount
type DeleteMountParams ¶
type DeleteMountParams struct { /* Force. Force deletion */ Force *bool /* ID. ID of mount to delete Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteMountParams contains all the parameters to send to the API endpoint
for the delete mount operation. Typically these are written to a http.Request.
func NewDeleteMountParams ¶
func NewDeleteMountParams() *DeleteMountParams
NewDeleteMountParams creates a new DeleteMountParams 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 NewDeleteMountParamsWithContext ¶
func NewDeleteMountParamsWithContext(ctx context.Context) *DeleteMountParams
NewDeleteMountParamsWithContext creates a new DeleteMountParams object with the ability to set a context for a request.
func NewDeleteMountParamsWithHTTPClient ¶
func NewDeleteMountParamsWithHTTPClient(client *http.Client) *DeleteMountParams
NewDeleteMountParamsWithHTTPClient creates a new DeleteMountParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteMountParamsWithTimeout ¶
func NewDeleteMountParamsWithTimeout(timeout time.Duration) *DeleteMountParams
NewDeleteMountParamsWithTimeout creates a new DeleteMountParams object with the ability to set a timeout on a request.
func (*DeleteMountParams) SetContext ¶
func (o *DeleteMountParams) SetContext(ctx context.Context)
SetContext adds the context to the delete mount params
func (*DeleteMountParams) SetDefaults ¶ added in v0.2.0
func (o *DeleteMountParams) SetDefaults()
SetDefaults hydrates default values in the delete mount params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMountParams) SetForce ¶ added in v0.2.0
func (o *DeleteMountParams) SetForce(force *bool)
SetForce adds the force to the delete mount params
func (*DeleteMountParams) SetHTTPClient ¶
func (o *DeleteMountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete mount params
func (*DeleteMountParams) SetID ¶ added in v0.2.0
func (o *DeleteMountParams) SetID(id int64)
SetID adds the id to the delete mount params
func (*DeleteMountParams) SetTimeout ¶
func (o *DeleteMountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete mount params
func (*DeleteMountParams) WithContext ¶
func (o *DeleteMountParams) WithContext(ctx context.Context) *DeleteMountParams
WithContext adds the context to the delete mount params
func (*DeleteMountParams) WithDefaults ¶ added in v0.2.0
func (o *DeleteMountParams) WithDefaults() *DeleteMountParams
WithDefaults hydrates default values in the delete mount params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMountParams) WithForce ¶ added in v0.2.0
func (o *DeleteMountParams) WithForce(force *bool) *DeleteMountParams
WithForce adds the force to the delete mount params
func (*DeleteMountParams) WithHTTPClient ¶
func (o *DeleteMountParams) WithHTTPClient(client *http.Client) *DeleteMountParams
WithHTTPClient adds the HTTPClient to the delete mount params
func (*DeleteMountParams) WithID ¶ added in v0.2.0
func (o *DeleteMountParams) WithID(id int64) *DeleteMountParams
WithID adds the id to the delete mount params
func (*DeleteMountParams) WithTimeout ¶
func (o *DeleteMountParams) WithTimeout(timeout time.Duration) *DeleteMountParams
WithTimeout adds the timeout to the delete mount params
func (*DeleteMountParams) WriteToRequest ¶
func (o *DeleteMountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteMountReader ¶
type DeleteMountReader struct {
// contains filtered or unexported fields
}
DeleteMountReader is a Reader for the DeleteMount structure.
func (*DeleteMountReader) ReadResponse ¶
func (o *DeleteMountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListMountsDefault ¶
ListMountsDefault describes a response with status code -1, with default header values.
error
func NewListMountsDefault ¶
func NewListMountsDefault(code int) *ListMountsDefault
NewListMountsDefault creates a ListMountsDefault with default headers values
func (*ListMountsDefault) Code ¶
func (o *ListMountsDefault) Code() int
Code gets the status code for the list mounts default response
func (*ListMountsDefault) Error ¶
func (o *ListMountsDefault) Error() string
func (*ListMountsDefault) GetPayload ¶
func (o *ListMountsDefault) GetPayload() *models.Error
type ListMountsOK ¶
ListMountsOK describes a response with status code 200, with default header values.
list all mounts
func NewListMountsOK ¶
func NewListMountsOK() *ListMountsOK
NewListMountsOK creates a ListMountsOK with default headers values
func (*ListMountsOK) Error ¶
func (o *ListMountsOK) Error() string
func (*ListMountsOK) GetPayload ¶
func (o *ListMountsOK) GetPayload() []*models.Mount
type ListMountsParams ¶
type ListMountsParams struct { /* ID. ID of a single mount to query. Format: int64 */ ID *int64 /* Kind. Kind of mounts to query. */ Kind *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListMountsParams contains all the parameters to send to the API endpoint
for the list mounts operation. Typically these are written to a http.Request.
func NewListMountsParams ¶
func NewListMountsParams() *ListMountsParams
NewListMountsParams creates a new ListMountsParams 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 NewListMountsParamsWithContext ¶
func NewListMountsParamsWithContext(ctx context.Context) *ListMountsParams
NewListMountsParamsWithContext creates a new ListMountsParams object with the ability to set a context for a request.
func NewListMountsParamsWithHTTPClient ¶
func NewListMountsParamsWithHTTPClient(client *http.Client) *ListMountsParams
NewListMountsParamsWithHTTPClient creates a new ListMountsParams object with the ability to set a custom HTTPClient for a request.
func NewListMountsParamsWithTimeout ¶
func NewListMountsParamsWithTimeout(timeout time.Duration) *ListMountsParams
NewListMountsParamsWithTimeout creates a new ListMountsParams object with the ability to set a timeout on a request.
func (*ListMountsParams) SetContext ¶
func (o *ListMountsParams) SetContext(ctx context.Context)
SetContext adds the context to the list mounts params
func (*ListMountsParams) SetDefaults ¶ added in v0.2.0
func (o *ListMountsParams) SetDefaults()
SetDefaults hydrates default values in the list mounts params (not the query body).
All values with no default are reset to their zero value.
func (*ListMountsParams) SetHTTPClient ¶
func (o *ListMountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list mounts params
func (*ListMountsParams) SetID ¶ added in v0.2.0
func (o *ListMountsParams) SetID(id *int64)
SetID adds the id to the list mounts params
func (*ListMountsParams) SetKind ¶ added in v0.2.0
func (o *ListMountsParams) SetKind(kind *string)
SetKind adds the kind to the list mounts params
func (*ListMountsParams) SetTimeout ¶
func (o *ListMountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list mounts params
func (*ListMountsParams) WithContext ¶
func (o *ListMountsParams) WithContext(ctx context.Context) *ListMountsParams
WithContext adds the context to the list mounts params
func (*ListMountsParams) WithDefaults ¶ added in v0.2.0
func (o *ListMountsParams) WithDefaults() *ListMountsParams
WithDefaults hydrates default values in the list mounts params (not the query body).
All values with no default are reset to their zero value.
func (*ListMountsParams) WithHTTPClient ¶
func (o *ListMountsParams) WithHTTPClient(client *http.Client) *ListMountsParams
WithHTTPClient adds the HTTPClient to the list mounts params
func (*ListMountsParams) WithID ¶ added in v0.2.0
func (o *ListMountsParams) WithID(id *int64) *ListMountsParams
WithID adds the id to the list mounts params
func (*ListMountsParams) WithKind ¶ added in v0.2.0
func (o *ListMountsParams) WithKind(kind *string) *ListMountsParams
WithKind adds the kind to the list mounts params
func (*ListMountsParams) WithTimeout ¶
func (o *ListMountsParams) WithTimeout(timeout time.Duration) *ListMountsParams
WithTimeout adds the timeout to the list mounts params
func (*ListMountsParams) WriteToRequest ¶
func (o *ListMountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListMountsReader ¶
type ListMountsReader struct {
// contains filtered or unexported fields
}
ListMountsReader is a Reader for the ListMounts structure.
func (*ListMountsReader) ReadResponse ¶
func (o *ListMountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MountCreated ¶
MountCreated describes a response with status code 201, with default header values.
mount succeed
func NewMountCreated ¶
func NewMountCreated() *MountCreated
NewMountCreated creates a MountCreated with default headers values
func (*MountCreated) Error ¶
func (o *MountCreated) Error() string
func (*MountCreated) GetPayload ¶
func (o *MountCreated) GetPayload() *models.Mount
type MountDefault ¶
MountDefault describes a response with status code -1, with default header values.
error
func NewMountDefault ¶
func NewMountDefault(code int) *MountDefault
NewMountDefault creates a MountDefault with default headers values
func (*MountDefault) Code ¶
func (o *MountDefault) Code() int
Code gets the status code for the mount default response
func (*MountDefault) Error ¶
func (o *MountDefault) Error() string
func (*MountDefault) GetPayload ¶
func (o *MountDefault) GetPayload() *models.Error
type MountParams ¶
type MountParams struct { // Mount. Mount *models.Mount Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MountParams contains all the parameters to send to the API endpoint
for the mount operation. Typically these are written to a http.Request.
func NewMountParams ¶
func NewMountParams() *MountParams
NewMountParams creates a new MountParams 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 NewMountParamsWithContext ¶
func NewMountParamsWithContext(ctx context.Context) *MountParams
NewMountParamsWithContext creates a new MountParams object with the ability to set a context for a request.
func NewMountParamsWithHTTPClient ¶
func NewMountParamsWithHTTPClient(client *http.Client) *MountParams
NewMountParamsWithHTTPClient creates a new MountParams object with the ability to set a custom HTTPClient for a request.
func NewMountParamsWithTimeout ¶
func NewMountParamsWithTimeout(timeout time.Duration) *MountParams
NewMountParamsWithTimeout creates a new MountParams object with the ability to set a timeout on a request.
func (*MountParams) SetContext ¶
func (o *MountParams) SetContext(ctx context.Context)
SetContext adds the context to the mount params
func (*MountParams) SetDefaults ¶ added in v0.2.0
func (o *MountParams) SetDefaults()
SetDefaults hydrates default values in the mount params (not the query body).
All values with no default are reset to their zero value.
func (*MountParams) SetHTTPClient ¶
func (o *MountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mount params
func (*MountParams) SetMount ¶
func (o *MountParams) SetMount(mount *models.Mount)
SetMount adds the mount to the mount params
func (*MountParams) SetTimeout ¶
func (o *MountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mount params
func (*MountParams) WithContext ¶
func (o *MountParams) WithContext(ctx context.Context) *MountParams
WithContext adds the context to the mount params
func (*MountParams) WithDefaults ¶ added in v0.2.0
func (o *MountParams) WithDefaults() *MountParams
WithDefaults hydrates default values in the mount params (not the query body).
All values with no default are reset to their zero value.
func (*MountParams) WithHTTPClient ¶
func (o *MountParams) WithHTTPClient(client *http.Client) *MountParams
WithHTTPClient adds the HTTPClient to the mount params
func (*MountParams) WithMount ¶
func (o *MountParams) WithMount(mount *models.Mount) *MountParams
WithMount adds the mount to the mount params
func (*MountParams) WithTimeout ¶
func (o *MountParams) WithTimeout(timeout time.Duration) *MountParams
WithTimeout adds the timeout to the mount params
func (*MountParams) WriteToRequest ¶
func (o *MountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MountReader ¶
type MountReader struct {
// contains filtered or unexported fields
}
MountReader is a Reader for the Mount structure.
func (*MountReader) ReadResponse ¶
func (o *MountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.