Documentation ¶
Index ¶
- Constants
- type GetRbd
- type GetRbdDefault
- func (o *GetRbdDefault) SetPayload(payload *models.Error)
- func (o *GetRbdDefault) SetStatusCode(code int)
- func (o *GetRbdDefault) WithPayload(payload *models.Error) *GetRbdDefault
- func (o *GetRbdDefault) WithStatusCode(code int) *GetRbdDefault
- func (o *GetRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRbdHandler
- type GetRbdHandlerFunc
- type GetRbdOK
- type GetRbdParams
- type GetRbdURL
- func (o *GetRbdURL) Build() (*url.URL, error)
- func (o *GetRbdURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRbdURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRbdURL) SetBasePath(bp string)
- func (o *GetRbdURL) String() string
- func (o *GetRbdURL) StringFull(scheme, host string) string
- func (o *GetRbdURL) WithBasePath(bp string) *GetRbdURL
- type ListRbds
- type ListRbdsDefault
- func (o *ListRbdsDefault) SetPayload(payload *models.Error)
- func (o *ListRbdsDefault) SetStatusCode(code int)
- func (o *ListRbdsDefault) WithPayload(payload *models.Error) *ListRbdsDefault
- func (o *ListRbdsDefault) WithStatusCode(code int) *ListRbdsDefault
- func (o *ListRbdsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRbdsHandler
- type ListRbdsHandlerFunc
- type ListRbdsOK
- type ListRbdsParams
- type ListRbdsURL
- func (o *ListRbdsURL) Build() (*url.URL, error)
- func (o *ListRbdsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRbdsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRbdsURL) SetBasePath(bp string)
- func (o *ListRbdsURL) String() string
- func (o *ListRbdsURL) StringFull(scheme, host string) string
- func (o *ListRbdsURL) WithBasePath(bp string) *ListRbdsURL
- type MapRbd
- type MapRbdCreated
- type MapRbdDefault
- func (o *MapRbdDefault) SetPayload(payload *models.Error)
- func (o *MapRbdDefault) SetStatusCode(code int)
- func (o *MapRbdDefault) WithPayload(payload *models.Error) *MapRbdDefault
- func (o *MapRbdDefault) WithStatusCode(code int) *MapRbdDefault
- func (o *MapRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type MapRbdHandler
- type MapRbdHandlerFunc
- type MapRbdParams
- type MapRbdURL
- func (o *MapRbdURL) Build() (*url.URL, error)
- func (o *MapRbdURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *MapRbdURL) Must(u *url.URL, err error) *url.URL
- func (o *MapRbdURL) SetBasePath(bp string)
- func (o *MapRbdURL) String() string
- func (o *MapRbdURL) StringFull(scheme, host string) string
- func (o *MapRbdURL) WithBasePath(bp string) *MapRbdURL
- type UnmapRbd
- type UnmapRbdDefault
- func (o *UnmapRbdDefault) SetPayload(payload *models.Error)
- func (o *UnmapRbdDefault) SetStatusCode(code int)
- func (o *UnmapRbdDefault) WithPayload(payload *models.Error) *UnmapRbdDefault
- func (o *UnmapRbdDefault) WithStatusCode(code int) *UnmapRbdDefault
- func (o *UnmapRbdDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UnmapRbdHandler
- type UnmapRbdHandlerFunc
- type UnmapRbdOK
- type UnmapRbdParams
- type UnmapRbdURL
- func (o *UnmapRbdURL) Build() (*url.URL, error)
- func (o *UnmapRbdURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UnmapRbdURL) Must(u *url.URL, err error) *url.URL
- func (o *UnmapRbdURL) SetBasePath(bp string)
- func (o *UnmapRbdURL) String() string
- func (o *UnmapRbdURL) StringFull(scheme, host string) string
- func (o *UnmapRbdURL) WithBasePath(bp string) *UnmapRbdURL
Constants ¶
const GetRbdOKCode int = 200
GetRbdOKCode is the HTTP code returned for type GetRbdOK
const ListRbdsOKCode int = 200
ListRbdsOKCode is the HTTP code returned for type ListRbdsOK
const MapRbdCreatedCode int = 201
MapRbdCreatedCode is the HTTP code returned for type MapRbdCreated
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
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 ¶
func (fn GetRbdHandlerFunc) Handle(params GetRbdParams) middleware.Responder
Handle executing the request and returning a response
type GetRbdOK ¶
GetRbdOK RBD entry
swagger:response getRbdOK
func NewGetRbdOK ¶
func NewGetRbdOK() *GetRbdOK
NewGetRbdOK creates GetRbdOK with default headers values
func (*GetRbdOK) SetPayload ¶
SetPayload sets the payload to the get rbd o k response
func (*GetRbdOK) WithPayload ¶
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) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetRbdURL) WithBasePath ¶
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
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 ¶
func (fn ListRbdsHandlerFunc) Handle(params ListRbdsParams) middleware.Responder
Handle executing the request and returning a response
type ListRbdsOK ¶
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 ¶
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) 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
type MapRbdCreated ¶
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 ¶
func (fn MapRbdHandlerFunc) Handle(params MapRbdParams) middleware.Responder
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) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*MapRbdURL) WithBasePath ¶
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
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 ¶
func (fn UnmapRbdHandlerFunc) Handle(params UnmapRbdParams) middleware.Responder
Handle executing the request and returning a response
type UnmapRbdOK ¶
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) 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
Source Files ¶
- get_rbd.go
- get_rbd_parameters.go
- get_rbd_responses.go
- get_rbd_urlbuilder.go
- list_rbds.go
- list_rbds_parameters.go
- list_rbds_responses.go
- list_rbds_urlbuilder.go
- map_rbd.go
- map_rbd_parameters.go
- map_rbd_responses.go
- map_rbd_urlbuilder.go
- unmap_rbd.go
- unmap_rbd_parameters.go
- unmap_rbd_responses.go
- unmap_rbd_urlbuilder.go