Documentation
¶
Index ¶
- type Client
- func (a *Client) GetRbd(params *GetRbdParams) (*GetRbdOK, error)
- func (a *Client) ListRbds(params *ListRbdsParams) (*ListRbdsOK, error)
- func (a *Client) MapRbd(params *MapRbdParams) (*MapRbdCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UnmapRbd(params *UnmapRbdParams) (*UnmapRbdOK, error)
- type ClientService
- type GetRbdDefault
- type GetRbdOK
- type GetRbdParams
- func (o *GetRbdParams) SetContext(ctx context.Context)
- func (o *GetRbdParams) SetHTTPClient(client *http.Client)
- func (o *GetRbdParams) SetID(id int64)
- func (o *GetRbdParams) SetTimeout(timeout time.Duration)
- func (o *GetRbdParams) WithContext(ctx context.Context) *GetRbdParams
- func (o *GetRbdParams) WithHTTPClient(client *http.Client) *GetRbdParams
- func (o *GetRbdParams) WithID(id int64) *GetRbdParams
- func (o *GetRbdParams) WithTimeout(timeout time.Duration) *GetRbdParams
- func (o *GetRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRbdReader
- type ListRbdsDefault
- type ListRbdsOK
- type ListRbdsParams
- func (o *ListRbdsParams) SetContext(ctx context.Context)
- func (o *ListRbdsParams) SetHTTPClient(client *http.Client)
- func (o *ListRbdsParams) SetTimeout(timeout time.Duration)
- func (o *ListRbdsParams) WithContext(ctx context.Context) *ListRbdsParams
- func (o *ListRbdsParams) WithHTTPClient(client *http.Client) *ListRbdsParams
- func (o *ListRbdsParams) WithTimeout(timeout time.Duration) *ListRbdsParams
- func (o *ListRbdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRbdsReader
- type MapRbdCreated
- type MapRbdDefault
- type MapRbdParams
- func (o *MapRbdParams) SetContext(ctx context.Context)
- func (o *MapRbdParams) SetHTTPClient(client *http.Client)
- func (o *MapRbdParams) SetRbd(rbd *models.Rbd)
- func (o *MapRbdParams) SetTimeout(timeout time.Duration)
- func (o *MapRbdParams) WithContext(ctx context.Context) *MapRbdParams
- func (o *MapRbdParams) WithHTTPClient(client *http.Client) *MapRbdParams
- func (o *MapRbdParams) WithRbd(rbd *models.Rbd) *MapRbdParams
- func (o *MapRbdParams) WithTimeout(timeout time.Duration) *MapRbdParams
- func (o *MapRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MapRbdReader
- type UnmapRbdDefault
- type UnmapRbdOK
- type UnmapRbdParams
- func (o *UnmapRbdParams) SetContext(ctx context.Context)
- func (o *UnmapRbdParams) SetHTTPClient(client *http.Client)
- func (o *UnmapRbdParams) SetID(id int64)
- func (o *UnmapRbdParams) SetTimeout(timeout time.Duration)
- func (o *UnmapRbdParams) WithContext(ctx context.Context) *UnmapRbdParams
- func (o *UnmapRbdParams) WithHTTPClient(client *http.Client) *UnmapRbdParams
- func (o *UnmapRbdParams) WithID(id int64) *UnmapRbdParams
- func (o *UnmapRbdParams) WithTimeout(timeout time.Duration) *UnmapRbdParams
- func (o *UnmapRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnmapRbdReader
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 attach API
func (*Client) GetRbd ¶
func (a *Client) GetRbd(params *GetRbdParams) (*GetRbdOK, error)
GetRbd get rbd API
func (*Client) ListRbds ¶
func (a *Client) ListRbds(params *ListRbdsParams) (*ListRbdsOK, error)
ListRbds list rbds API
func (*Client) MapRbd ¶
func (a *Client) MapRbd(params *MapRbdParams) (*MapRbdCreated, error)
MapRbd map rbd API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UnmapRbd ¶
func (a *Client) UnmapRbd(params *UnmapRbdParams) (*UnmapRbdOK, error)
UnmapRbd unmap rbd API
type ClientService ¶
type ClientService interface { GetRbd(params *GetRbdParams) (*GetRbdOK, error) ListRbds(params *ListRbdsParams) (*ListRbdsOK, error) MapRbd(params *MapRbdParams) (*MapRbdCreated, error) UnmapRbd(params *UnmapRbdParams) (*UnmapRbdOK, 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 attach API client.
type GetRbdDefault ¶
GetRbdDefault handles this case with default header values.
error
func NewGetRbdDefault ¶
func NewGetRbdDefault(code int) *GetRbdDefault
NewGetRbdDefault creates a GetRbdDefault with default headers values
func (*GetRbdDefault) Code ¶
func (o *GetRbdDefault) Code() int
Code gets the status code for the get rbd default response
func (*GetRbdDefault) Error ¶
func (o *GetRbdDefault) Error() string
func (*GetRbdDefault) GetPayload ¶
func (o *GetRbdDefault) GetPayload() *models.Error
type GetRbdOK ¶
GetRbdOK handles this case with default header values.
RBD entry
func NewGetRbdOK ¶
func NewGetRbdOK() *GetRbdOK
NewGetRbdOK creates a GetRbdOK with default headers values
func (*GetRbdOK) GetPayload ¶
type GetRbdParams ¶
type GetRbdParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRbdParams contains all the parameters to send to the API endpoint for the get rbd operation typically these are written to a http.Request
func NewGetRbdParams ¶
func NewGetRbdParams() *GetRbdParams
NewGetRbdParams creates a new GetRbdParams object with the default values initialized.
func NewGetRbdParamsWithContext ¶
func NewGetRbdParamsWithContext(ctx context.Context) *GetRbdParams
NewGetRbdParamsWithContext creates a new GetRbdParams object with the default values initialized, and the ability to set a context for a request
func NewGetRbdParamsWithHTTPClient ¶
func NewGetRbdParamsWithHTTPClient(client *http.Client) *GetRbdParams
NewGetRbdParamsWithHTTPClient creates a new GetRbdParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRbdParamsWithTimeout ¶
func NewGetRbdParamsWithTimeout(timeout time.Duration) *GetRbdParams
NewGetRbdParamsWithTimeout creates a new GetRbdParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRbdParams) SetContext ¶
func (o *GetRbdParams) SetContext(ctx context.Context)
SetContext adds the context to the get rbd params
func (*GetRbdParams) SetHTTPClient ¶
func (o *GetRbdParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get rbd params
func (*GetRbdParams) SetID ¶
func (o *GetRbdParams) SetID(id int64)
SetID adds the id to the get rbd params
func (*GetRbdParams) SetTimeout ¶
func (o *GetRbdParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get rbd params
func (*GetRbdParams) WithContext ¶
func (o *GetRbdParams) WithContext(ctx context.Context) *GetRbdParams
WithContext adds the context to the get rbd params
func (*GetRbdParams) WithHTTPClient ¶
func (o *GetRbdParams) WithHTTPClient(client *http.Client) *GetRbdParams
WithHTTPClient adds the HTTPClient to the get rbd params
func (*GetRbdParams) WithID ¶
func (o *GetRbdParams) WithID(id int64) *GetRbdParams
WithID adds the id to the get rbd params
func (*GetRbdParams) WithTimeout ¶
func (o *GetRbdParams) WithTimeout(timeout time.Duration) *GetRbdParams
WithTimeout adds the timeout to the get rbd params
func (*GetRbdParams) WriteToRequest ¶
func (o *GetRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRbdReader ¶
type GetRbdReader struct {
// contains filtered or unexported fields
}
GetRbdReader is a Reader for the GetRbd structure.
func (*GetRbdReader) ReadResponse ¶
func (o *GetRbdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListRbdsDefault ¶
ListRbdsDefault handles this case with default header values.
generic error response
func NewListRbdsDefault ¶
func NewListRbdsDefault(code int) *ListRbdsDefault
NewListRbdsDefault creates a ListRbdsDefault with default headers values
func (*ListRbdsDefault) Code ¶
func (o *ListRbdsDefault) Code() int
Code gets the status code for the list rbds default response
func (*ListRbdsDefault) Error ¶
func (o *ListRbdsDefault) Error() string
func (*ListRbdsDefault) GetPayload ¶
func (o *ListRbdsDefault) GetPayload() *models.Error
type ListRbdsOK ¶
ListRbdsOK handles this case with default header values.
list of rbd maps
func NewListRbdsOK ¶
func NewListRbdsOK() *ListRbdsOK
NewListRbdsOK creates a ListRbdsOK with default headers values
func (*ListRbdsOK) Error ¶
func (o *ListRbdsOK) Error() string
func (*ListRbdsOK) GetPayload ¶
func (o *ListRbdsOK) GetPayload() []*models.Rbd
type ListRbdsParams ¶
type ListRbdsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRbdsParams contains all the parameters to send to the API endpoint for the list rbds operation typically these are written to a http.Request
func NewListRbdsParams ¶
func NewListRbdsParams() *ListRbdsParams
NewListRbdsParams creates a new ListRbdsParams object with the default values initialized.
func NewListRbdsParamsWithContext ¶
func NewListRbdsParamsWithContext(ctx context.Context) *ListRbdsParams
NewListRbdsParamsWithContext creates a new ListRbdsParams object with the default values initialized, and the ability to set a context for a request
func NewListRbdsParamsWithHTTPClient ¶
func NewListRbdsParamsWithHTTPClient(client *http.Client) *ListRbdsParams
NewListRbdsParamsWithHTTPClient creates a new ListRbdsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListRbdsParamsWithTimeout ¶
func NewListRbdsParamsWithTimeout(timeout time.Duration) *ListRbdsParams
NewListRbdsParamsWithTimeout creates a new ListRbdsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListRbdsParams) SetContext ¶
func (o *ListRbdsParams) SetContext(ctx context.Context)
SetContext adds the context to the list rbds params
func (*ListRbdsParams) SetHTTPClient ¶
func (o *ListRbdsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list rbds params
func (*ListRbdsParams) SetTimeout ¶
func (o *ListRbdsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list rbds params
func (*ListRbdsParams) WithContext ¶
func (o *ListRbdsParams) WithContext(ctx context.Context) *ListRbdsParams
WithContext adds the context to the list rbds params
func (*ListRbdsParams) WithHTTPClient ¶
func (o *ListRbdsParams) WithHTTPClient(client *http.Client) *ListRbdsParams
WithHTTPClient adds the HTTPClient to the list rbds params
func (*ListRbdsParams) WithTimeout ¶
func (o *ListRbdsParams) WithTimeout(timeout time.Duration) *ListRbdsParams
WithTimeout adds the timeout to the list rbds params
func (*ListRbdsParams) WriteToRequest ¶
func (o *ListRbdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRbdsReader ¶
type ListRbdsReader struct {
// contains filtered or unexported fields
}
ListRbdsReader is a Reader for the ListRbds structure.
func (*ListRbdsReader) ReadResponse ¶
func (o *ListRbdsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MapRbdCreated ¶
MapRbdCreated handles this case with default header values.
RBD attach succeed
func NewMapRbdCreated ¶
func NewMapRbdCreated() *MapRbdCreated
NewMapRbdCreated creates a MapRbdCreated with default headers values
func (*MapRbdCreated) Error ¶
func (o *MapRbdCreated) Error() string
func (*MapRbdCreated) GetPayload ¶
func (o *MapRbdCreated) GetPayload() *models.Rbd
type MapRbdDefault ¶
MapRbdDefault handles this case with default header values.
error
func NewMapRbdDefault ¶
func NewMapRbdDefault(code int) *MapRbdDefault
NewMapRbdDefault creates a MapRbdDefault with default headers values
func (*MapRbdDefault) Code ¶
func (o *MapRbdDefault) Code() int
Code gets the status code for the map rbd default response
func (*MapRbdDefault) Error ¶
func (o *MapRbdDefault) Error() string
func (*MapRbdDefault) GetPayload ¶
func (o *MapRbdDefault) GetPayload() *models.Error
type MapRbdParams ¶
type MapRbdParams struct { /*Rbd*/ Rbd *models.Rbd Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MapRbdParams contains all the parameters to send to the API endpoint for the map rbd operation typically these are written to a http.Request
func NewMapRbdParams ¶
func NewMapRbdParams() *MapRbdParams
NewMapRbdParams creates a new MapRbdParams object with the default values initialized.
func NewMapRbdParamsWithContext ¶
func NewMapRbdParamsWithContext(ctx context.Context) *MapRbdParams
NewMapRbdParamsWithContext creates a new MapRbdParams object with the default values initialized, and the ability to set a context for a request
func NewMapRbdParamsWithHTTPClient ¶
func NewMapRbdParamsWithHTTPClient(client *http.Client) *MapRbdParams
NewMapRbdParamsWithHTTPClient creates a new MapRbdParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewMapRbdParamsWithTimeout ¶
func NewMapRbdParamsWithTimeout(timeout time.Duration) *MapRbdParams
NewMapRbdParamsWithTimeout creates a new MapRbdParams object with the default values initialized, and the ability to set a timeout on a request
func (*MapRbdParams) SetContext ¶
func (o *MapRbdParams) SetContext(ctx context.Context)
SetContext adds the context to the map rbd params
func (*MapRbdParams) SetHTTPClient ¶
func (o *MapRbdParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the map rbd params
func (*MapRbdParams) SetRbd ¶
func (o *MapRbdParams) SetRbd(rbd *models.Rbd)
SetRbd adds the rbd to the map rbd params
func (*MapRbdParams) SetTimeout ¶
func (o *MapRbdParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the map rbd params
func (*MapRbdParams) WithContext ¶
func (o *MapRbdParams) WithContext(ctx context.Context) *MapRbdParams
WithContext adds the context to the map rbd params
func (*MapRbdParams) WithHTTPClient ¶
func (o *MapRbdParams) WithHTTPClient(client *http.Client) *MapRbdParams
WithHTTPClient adds the HTTPClient to the map rbd params
func (*MapRbdParams) WithRbd ¶
func (o *MapRbdParams) WithRbd(rbd *models.Rbd) *MapRbdParams
WithRbd adds the rbd to the map rbd params
func (*MapRbdParams) WithTimeout ¶
func (o *MapRbdParams) WithTimeout(timeout time.Duration) *MapRbdParams
WithTimeout adds the timeout to the map rbd params
func (*MapRbdParams) WriteToRequest ¶
func (o *MapRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MapRbdReader ¶
type MapRbdReader struct {
// contains filtered or unexported fields
}
MapRbdReader is a Reader for the MapRbd structure.
func (*MapRbdReader) ReadResponse ¶
func (o *MapRbdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UnmapRbdDefault ¶
UnmapRbdDefault handles this case with default header values.
error
func NewUnmapRbdDefault ¶
func NewUnmapRbdDefault(code int) *UnmapRbdDefault
NewUnmapRbdDefault creates a UnmapRbdDefault with default headers values
func (*UnmapRbdDefault) Code ¶
func (o *UnmapRbdDefault) Code() int
Code gets the status code for the unmap rbd default response
func (*UnmapRbdDefault) Error ¶
func (o *UnmapRbdDefault) Error() string
func (*UnmapRbdDefault) GetPayload ¶
func (o *UnmapRbdDefault) GetPayload() *models.Error
type UnmapRbdOK ¶
UnmapRbdOK handles this case with default header values.
Unmapped
func NewUnmapRbdOK ¶
func NewUnmapRbdOK() *UnmapRbdOK
NewUnmapRbdOK creates a UnmapRbdOK with default headers values
func (*UnmapRbdOK) Error ¶
func (o *UnmapRbdOK) Error() string
func (*UnmapRbdOK) GetPayload ¶
func (o *UnmapRbdOK) GetPayload() *models.Rbd
type UnmapRbdParams ¶
type UnmapRbdParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UnmapRbdParams contains all the parameters to send to the API endpoint for the unmap rbd operation typically these are written to a http.Request
func NewUnmapRbdParams ¶
func NewUnmapRbdParams() *UnmapRbdParams
NewUnmapRbdParams creates a new UnmapRbdParams object with the default values initialized.
func NewUnmapRbdParamsWithContext ¶
func NewUnmapRbdParamsWithContext(ctx context.Context) *UnmapRbdParams
NewUnmapRbdParamsWithContext creates a new UnmapRbdParams object with the default values initialized, and the ability to set a context for a request
func NewUnmapRbdParamsWithHTTPClient ¶
func NewUnmapRbdParamsWithHTTPClient(client *http.Client) *UnmapRbdParams
NewUnmapRbdParamsWithHTTPClient creates a new UnmapRbdParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUnmapRbdParamsWithTimeout ¶
func NewUnmapRbdParamsWithTimeout(timeout time.Duration) *UnmapRbdParams
NewUnmapRbdParamsWithTimeout creates a new UnmapRbdParams object with the default values initialized, and the ability to set a timeout on a request
func (*UnmapRbdParams) SetContext ¶
func (o *UnmapRbdParams) SetContext(ctx context.Context)
SetContext adds the context to the unmap rbd params
func (*UnmapRbdParams) SetHTTPClient ¶
func (o *UnmapRbdParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the unmap rbd params
func (*UnmapRbdParams) SetID ¶
func (o *UnmapRbdParams) SetID(id int64)
SetID adds the id to the unmap rbd params
func (*UnmapRbdParams) SetTimeout ¶
func (o *UnmapRbdParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the unmap rbd params
func (*UnmapRbdParams) WithContext ¶
func (o *UnmapRbdParams) WithContext(ctx context.Context) *UnmapRbdParams
WithContext adds the context to the unmap rbd params
func (*UnmapRbdParams) WithHTTPClient ¶
func (o *UnmapRbdParams) WithHTTPClient(client *http.Client) *UnmapRbdParams
WithHTTPClient adds the HTTPClient to the unmap rbd params
func (*UnmapRbdParams) WithID ¶
func (o *UnmapRbdParams) WithID(id int64) *UnmapRbdParams
WithID adds the id to the unmap rbd params
func (*UnmapRbdParams) WithTimeout ¶
func (o *UnmapRbdParams) WithTimeout(timeout time.Duration) *UnmapRbdParams
WithTimeout adds the timeout to the unmap rbd params
func (*UnmapRbdParams) WriteToRequest ¶
func (o *UnmapRbdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UnmapRbdReader ¶
type UnmapRbdReader struct {
// contains filtered or unexported fields
}
UnmapRbdReader is a Reader for the UnmapRbd structure.
func (*UnmapRbdReader) ReadResponse ¶
func (o *UnmapRbdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.