attach

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: BSD-3-Clause Imports: 11 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 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

type GetRbdDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type GetRbdOK struct {
	Payload *models.Rbd
}

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) Error

func (o *GetRbdOK) Error() string

func (*GetRbdOK) GetPayload

func (o *GetRbdOK) GetPayload() *models.Rbd

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

type ListRbdsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type ListRbdsOK struct {
	Payload []*models.Rbd
}

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

type MapRbdCreated struct {
	Payload *models.Rbd
}

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

type MapRbdDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type UnmapRbdDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type UnmapRbdOK struct {
	Payload *models.Rbd
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL