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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const GetRbdOKCode int = 200

GetRbdOKCode is the HTTP code returned for type GetRbdOK

View Source
const ListRbdsOKCode int = 200

ListRbdsOKCode is the HTTP code returned for type ListRbdsOK

View Source
const MapRbdCreatedCode int = 201

MapRbdCreatedCode is the HTTP code returned for type MapRbdCreated

View Source
const UnmapRbdOKCode int = 200

UnmapRbdOKCode is the HTTP code returned for type UnmapRbdOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRbd

type GetRbd struct {
	Context *middleware.Context
	Handler GetRbdHandler
}

GetRbd swagger:route GET /attach/rbd/{id} attach getRbd

GetRbd get rbd API

func NewGetRbd

func NewGetRbd(ctx *middleware.Context, handler GetRbdHandler) *GetRbd

NewGetRbd creates a new http.Handler for the get rbd operation

func (*GetRbd) ServeHTTP

func (o *GetRbd) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRbdDefault

type GetRbdDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetRbdDefault error

swagger:response getRbdDefault

func NewGetRbdDefault

func NewGetRbdDefault(code int) *GetRbdDefault

NewGetRbdDefault creates GetRbdDefault with default headers values

func (*GetRbdDefault) SetPayload

func (o *GetRbdDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get rbd default response

func (*GetRbdDefault) SetStatusCode

func (o *GetRbdDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get rbd default response

func (*GetRbdDefault) WithPayload

func (o *GetRbdDefault) WithPayload(payload *models.Error) *GetRbdDefault

WithPayload adds the payload to the get rbd default response

func (*GetRbdDefault) WithStatusCode

func (o *GetRbdDefault) WithStatusCode(code int) *GetRbdDefault

WithStatusCode adds the status to the get rbd default response

func (*GetRbdDefault) WriteResponse

func (o *GetRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRbdHandler

type GetRbdHandler interface {
	Handle(GetRbdParams) middleware.Responder
}

GetRbdHandler interface for that can handle valid get rbd params

type GetRbdHandlerFunc

type GetRbdHandlerFunc func(GetRbdParams) middleware.Responder

GetRbdHandlerFunc turns a function with the right signature into a get rbd handler

func (GetRbdHandlerFunc) Handle

Handle executing the request and returning a response

type GetRbdOK

type GetRbdOK struct {

	/*
	  In: Body
	*/
	Payload *models.Rbd `json:"body,omitempty"`
}

GetRbdOK RBD entry

swagger:response getRbdOK

func NewGetRbdOK

func NewGetRbdOK() *GetRbdOK

NewGetRbdOK creates GetRbdOK with default headers values

func (*GetRbdOK) SetPayload

func (o *GetRbdOK) SetPayload(payload *models.Rbd)

SetPayload sets the payload to the get rbd o k response

func (*GetRbdOK) WithPayload

func (o *GetRbdOK) WithPayload(payload *models.Rbd) *GetRbdOK

WithPayload adds the payload to the get rbd o k response

func (*GetRbdOK) WriteResponse

func (o *GetRbdOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRbdParams

type GetRbdParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetRbdParams contains all the bound params for the get rbd operation typically these are obtained from a http.Request

swagger:parameters get_rbd

func NewGetRbdParams

func NewGetRbdParams() GetRbdParams

NewGetRbdParams creates a new GetRbdParams object no default values defined in spec.

func (*GetRbdParams) BindRequest

func (o *GetRbdParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRbdParams() beforehand.

type GetRbdURL

type GetRbdURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetRbdURL generates an URL for the get rbd operation

func (*GetRbdURL) Build

func (o *GetRbdURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRbdURL) BuildFull

func (o *GetRbdURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRbdURL) Must

func (o *GetRbdURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRbdURL) SetBasePath

func (o *GetRbdURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRbdURL) String

func (o *GetRbdURL) String() string

String returns the string representation of the path with query string

func (*GetRbdURL) StringFull

func (o *GetRbdURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRbdURL) WithBasePath

func (o *GetRbdURL) WithBasePath(bp string) *GetRbdURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListRbds

type ListRbds struct {
	Context *middleware.Context
	Handler ListRbdsHandler
}

ListRbds swagger:route GET /attach/rbd attach listRbds

ListRbds list rbds API

func NewListRbds

func NewListRbds(ctx *middleware.Context, handler ListRbdsHandler) *ListRbds

NewListRbds creates a new http.Handler for the list rbds operation

func (*ListRbds) ServeHTTP

func (o *ListRbds) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListRbdsDefault

type ListRbdsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListRbdsDefault generic error response

swagger:response listRbdsDefault

func NewListRbdsDefault

func NewListRbdsDefault(code int) *ListRbdsDefault

NewListRbdsDefault creates ListRbdsDefault with default headers values

func (*ListRbdsDefault) SetPayload

func (o *ListRbdsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list rbds default response

func (*ListRbdsDefault) SetStatusCode

func (o *ListRbdsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list rbds default response

func (*ListRbdsDefault) WithPayload

func (o *ListRbdsDefault) WithPayload(payload *models.Error) *ListRbdsDefault

WithPayload adds the payload to the list rbds default response

func (*ListRbdsDefault) WithStatusCode

func (o *ListRbdsDefault) WithStatusCode(code int) *ListRbdsDefault

WithStatusCode adds the status to the list rbds default response

func (*ListRbdsDefault) WriteResponse

func (o *ListRbdsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRbdsHandler

type ListRbdsHandler interface {
	Handle(ListRbdsParams) middleware.Responder
}

ListRbdsHandler interface for that can handle valid list rbds params

type ListRbdsHandlerFunc

type ListRbdsHandlerFunc func(ListRbdsParams) middleware.Responder

ListRbdsHandlerFunc turns a function with the right signature into a list rbds handler

func (ListRbdsHandlerFunc) Handle

Handle executing the request and returning a response

type ListRbdsOK

type ListRbdsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Rbd `json:"body,omitempty"`
}

ListRbdsOK list of rbd maps

swagger:response listRbdsOK

func NewListRbdsOK

func NewListRbdsOK() *ListRbdsOK

NewListRbdsOK creates ListRbdsOK with default headers values

func (*ListRbdsOK) SetPayload

func (o *ListRbdsOK) SetPayload(payload []*models.Rbd)

SetPayload sets the payload to the list rbds o k response

func (*ListRbdsOK) WithPayload

func (o *ListRbdsOK) WithPayload(payload []*models.Rbd) *ListRbdsOK

WithPayload adds the payload to the list rbds o k response

func (*ListRbdsOK) WriteResponse

func (o *ListRbdsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRbdsParams

type ListRbdsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListRbdsParams contains all the bound params for the list rbds operation typically these are obtained from a http.Request

swagger:parameters list_rbds

func NewListRbdsParams

func NewListRbdsParams() ListRbdsParams

NewListRbdsParams creates a new ListRbdsParams object no default values defined in spec.

func (*ListRbdsParams) BindRequest

func (o *ListRbdsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListRbdsParams() beforehand.

type ListRbdsURL

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

ListRbdsURL generates an URL for the list rbds operation

func (*ListRbdsURL) Build

func (o *ListRbdsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListRbdsURL) BuildFull

func (o *ListRbdsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListRbdsURL) Must

func (o *ListRbdsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListRbdsURL) SetBasePath

func (o *ListRbdsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListRbdsURL) String

func (o *ListRbdsURL) String() string

String returns the string representation of the path with query string

func (*ListRbdsURL) StringFull

func (o *ListRbdsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListRbdsURL) WithBasePath

func (o *ListRbdsURL) WithBasePath(bp string) *ListRbdsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type MapRbd

type MapRbd struct {
	Context *middleware.Context
	Handler MapRbdHandler
}

MapRbd swagger:route POST /attach/rbd attach mapRbd

MapRbd map rbd API

func NewMapRbd

func NewMapRbd(ctx *middleware.Context, handler MapRbdHandler) *MapRbd

NewMapRbd creates a new http.Handler for the map rbd operation

func (*MapRbd) ServeHTTP

func (o *MapRbd) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type MapRbdCreated

type MapRbdCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Rbd `json:"body,omitempty"`
}

MapRbdCreated RBD attach succeed

swagger:response mapRbdCreated

func NewMapRbdCreated

func NewMapRbdCreated() *MapRbdCreated

NewMapRbdCreated creates MapRbdCreated with default headers values

func (*MapRbdCreated) SetPayload

func (o *MapRbdCreated) SetPayload(payload *models.Rbd)

SetPayload sets the payload to the map rbd created response

func (*MapRbdCreated) WithPayload

func (o *MapRbdCreated) WithPayload(payload *models.Rbd) *MapRbdCreated

WithPayload adds the payload to the map rbd created response

func (*MapRbdCreated) WriteResponse

func (o *MapRbdCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type MapRbdDefault

type MapRbdDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

MapRbdDefault error

swagger:response mapRbdDefault

func NewMapRbdDefault

func NewMapRbdDefault(code int) *MapRbdDefault

NewMapRbdDefault creates MapRbdDefault with default headers values

func (*MapRbdDefault) SetPayload

func (o *MapRbdDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the map rbd default response

func (*MapRbdDefault) SetStatusCode

func (o *MapRbdDefault) SetStatusCode(code int)

SetStatusCode sets the status to the map rbd default response

func (*MapRbdDefault) WithPayload

func (o *MapRbdDefault) WithPayload(payload *models.Error) *MapRbdDefault

WithPayload adds the payload to the map rbd default response

func (*MapRbdDefault) WithStatusCode

func (o *MapRbdDefault) WithStatusCode(code int) *MapRbdDefault

WithStatusCode adds the status to the map rbd default response

func (*MapRbdDefault) WriteResponse

func (o *MapRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type MapRbdHandler

type MapRbdHandler interface {
	Handle(MapRbdParams) middleware.Responder
}

MapRbdHandler interface for that can handle valid map rbd params

type MapRbdHandlerFunc

type MapRbdHandlerFunc func(MapRbdParams) middleware.Responder

MapRbdHandlerFunc turns a function with the right signature into a map rbd handler

func (MapRbdHandlerFunc) Handle

Handle executing the request and returning a response

type MapRbdParams

type MapRbdParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Rbd *models.Rbd
}

MapRbdParams contains all the bound params for the map rbd operation typically these are obtained from a http.Request

swagger:parameters map_rbd

func NewMapRbdParams

func NewMapRbdParams() MapRbdParams

NewMapRbdParams creates a new MapRbdParams object no default values defined in spec.

func (*MapRbdParams) BindRequest

func (o *MapRbdParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewMapRbdParams() beforehand.

type MapRbdURL

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

MapRbdURL generates an URL for the map rbd operation

func (*MapRbdURL) Build

func (o *MapRbdURL) Build() (*url.URL, error)

Build a url path and query string

func (*MapRbdURL) BuildFull

func (o *MapRbdURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*MapRbdURL) Must

func (o *MapRbdURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*MapRbdURL) SetBasePath

func (o *MapRbdURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*MapRbdURL) String

func (o *MapRbdURL) String() string

String returns the string representation of the path with query string

func (*MapRbdURL) StringFull

func (o *MapRbdURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*MapRbdURL) WithBasePath

func (o *MapRbdURL) WithBasePath(bp string) *MapRbdURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UnmapRbd

type UnmapRbd struct {
	Context *middleware.Context
	Handler UnmapRbdHandler
}

UnmapRbd swagger:route DELETE /attach/rbd/{id} attach unmapRbd

UnmapRbd unmap rbd API

func NewUnmapRbd

func NewUnmapRbd(ctx *middleware.Context, handler UnmapRbdHandler) *UnmapRbd

NewUnmapRbd creates a new http.Handler for the unmap rbd operation

func (*UnmapRbd) ServeHTTP

func (o *UnmapRbd) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UnmapRbdDefault

type UnmapRbdDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UnmapRbdDefault error

swagger:response unmapRbdDefault

func NewUnmapRbdDefault

func NewUnmapRbdDefault(code int) *UnmapRbdDefault

NewUnmapRbdDefault creates UnmapRbdDefault with default headers values

func (*UnmapRbdDefault) SetPayload

func (o *UnmapRbdDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the unmap rbd default response

func (*UnmapRbdDefault) SetStatusCode

func (o *UnmapRbdDefault) SetStatusCode(code int)

SetStatusCode sets the status to the unmap rbd default response

func (*UnmapRbdDefault) WithPayload

func (o *UnmapRbdDefault) WithPayload(payload *models.Error) *UnmapRbdDefault

WithPayload adds the payload to the unmap rbd default response

func (*UnmapRbdDefault) WithStatusCode

func (o *UnmapRbdDefault) WithStatusCode(code int) *UnmapRbdDefault

WithStatusCode adds the status to the unmap rbd default response

func (*UnmapRbdDefault) WriteResponse

func (o *UnmapRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnmapRbdHandler

type UnmapRbdHandler interface {
	Handle(UnmapRbdParams) middleware.Responder
}

UnmapRbdHandler interface for that can handle valid unmap rbd params

type UnmapRbdHandlerFunc

type UnmapRbdHandlerFunc func(UnmapRbdParams) middleware.Responder

UnmapRbdHandlerFunc turns a function with the right signature into a unmap rbd handler

func (UnmapRbdHandlerFunc) Handle

Handle executing the request and returning a response

type UnmapRbdOK

type UnmapRbdOK struct {

	/*
	  In: Body
	*/
	Payload *models.Rbd `json:"body,omitempty"`
}

UnmapRbdOK Unmapped

swagger:response unmapRbdOK

func NewUnmapRbdOK

func NewUnmapRbdOK() *UnmapRbdOK

NewUnmapRbdOK creates UnmapRbdOK with default headers values

func (*UnmapRbdOK) SetPayload

func (o *UnmapRbdOK) SetPayload(payload *models.Rbd)

SetPayload sets the payload to the unmap rbd o k response

func (*UnmapRbdOK) WithPayload

func (o *UnmapRbdOK) WithPayload(payload *models.Rbd) *UnmapRbdOK

WithPayload adds the payload to the unmap rbd o k response

func (*UnmapRbdOK) WriteResponse

func (o *UnmapRbdOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnmapRbdParams

type UnmapRbdParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

UnmapRbdParams contains all the bound params for the unmap rbd operation typically these are obtained from a http.Request

swagger:parameters unmap_rbd

func NewUnmapRbdParams

func NewUnmapRbdParams() UnmapRbdParams

NewUnmapRbdParams creates a new UnmapRbdParams object no default values defined in spec.

func (*UnmapRbdParams) BindRequest

func (o *UnmapRbdParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUnmapRbdParams() beforehand.

type UnmapRbdURL

type UnmapRbdURL struct {
	ID int64
	// contains filtered or unexported fields
}

UnmapRbdURL generates an URL for the unmap rbd operation

func (*UnmapRbdURL) Build

func (o *UnmapRbdURL) Build() (*url.URL, error)

Build a url path and query string

func (*UnmapRbdURL) BuildFull

func (o *UnmapRbdURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UnmapRbdURL) Must

func (o *UnmapRbdURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UnmapRbdURL) SetBasePath

func (o *UnmapRbdURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UnmapRbdURL) String

func (o *UnmapRbdURL) String() string

String returns the string representation of the path with query string

func (*UnmapRbdURL) StringFull

func (o *UnmapRbdURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UnmapRbdURL) WithBasePath

func (o *UnmapRbdURL) WithBasePath(bp string) *UnmapRbdURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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