Documentation
¶
Index ¶
- Constants
- type PostVMRun
- type PostVMRunHandler
- type PostVMRunHandlerFunc
- type PostVMRunInternalServerError
- type PostVMRunOK
- type PostVMRunParams
- type PostVMRunURL
- func (o *PostVMRunURL) Build() (*url.URL, error)
- func (o *PostVMRunURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostVMRunURL) Must(u *url.URL, err error) *url.URL
- func (o *PostVMRunURL) SetBasePath(bp string)
- func (o *PostVMRunURL) String() string
- func (o *PostVMRunURL) StringFull(scheme, host string) string
- func (o *PostVMRunURL) WithBasePath(bp string) *PostVMRunURL
Constants ¶
const PostVMRunInternalServerErrorCode int = 500
PostVMRunInternalServerErrorCode is the HTTP code returned for type PostVMRunInternalServerError
const PostVMRunOKCode int = 200
PostVMRunOKCode is the HTTP code returned for type PostVMRunOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostVMRun ¶
type PostVMRun struct { Context *middleware.Context Handler PostVMRunHandler }
PostVMRun swagger:route POST /vm/run vm postVmRun
This endpoint creates a new VM and starts it
func NewPostVMRun ¶
func NewPostVMRun(ctx *middleware.Context, handler PostVMRunHandler) *PostVMRun
NewPostVMRun creates a new http.Handler for the post VM run operation
type PostVMRunHandler ¶
type PostVMRunHandler interface {
Handle(PostVMRunParams) middleware.Responder
}
PostVMRunHandler interface for that can handle valid post VM run params
type PostVMRunHandlerFunc ¶
type PostVMRunHandlerFunc func(PostVMRunParams) middleware.Responder
PostVMRunHandlerFunc turns a function with the right signature into a post VM run handler
func (PostVMRunHandlerFunc) Handle ¶
func (fn PostVMRunHandlerFunc) Handle(params PostVMRunParams) middleware.Responder
Handle executing the request and returning a response
type PostVMRunInternalServerError ¶
type PostVMRunInternalServerError struct { /* In: Body */ Payload *models.StandardError `json:"body,omitempty"` }
PostVMRunInternalServerError Internal Server Error
swagger:response postVmRunInternalServerError
func NewPostVMRunInternalServerError ¶
func NewPostVMRunInternalServerError() *PostVMRunInternalServerError
NewPostVMRunInternalServerError creates PostVMRunInternalServerError with default headers values
func (*PostVMRunInternalServerError) SetPayload ¶
func (o *PostVMRunInternalServerError) SetPayload(payload *models.StandardError)
SetPayload sets the payload to the post Vm run internal server error response
func (*PostVMRunInternalServerError) WithPayload ¶
func (o *PostVMRunInternalServerError) WithPayload(payload *models.StandardError) *PostVMRunInternalServerError
WithPayload adds the payload to the post Vm run internal server error response
func (*PostVMRunInternalServerError) WriteResponse ¶
func (o *PostVMRunInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostVMRunOK ¶
PostVMRunOK Success
swagger:response postVmRunOK
func NewPostVMRunOK ¶
func NewPostVMRunOK() *PostVMRunOK
NewPostVMRunOK creates PostVMRunOK with default headers values
func (*PostVMRunOK) SetPayload ¶
func (o *PostVMRunOK) SetPayload(payload *models.VM)
SetPayload sets the payload to the post Vm run o k response
func (*PostVMRunOK) WithPayload ¶
func (o *PostVMRunOK) WithPayload(payload *models.VM) *PostVMRunOK
WithPayload adds the payload to the post Vm run o k response
func (*PostVMRunOK) WriteResponse ¶
func (o *PostVMRunOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostVMRunParams ¶
PostVMRunParams contains all the bound params for the post VM run operation typically these are obtained from a http.Request
swagger:parameters PostVMRun
func NewPostVMRunParams ¶
func NewPostVMRunParams() PostVMRunParams
NewPostVMRunParams creates a new PostVMRunParams object
There are no default values defined in the spec.
func (*PostVMRunParams) BindRequest ¶
func (o *PostVMRunParams) 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 NewPostVMRunParams() beforehand.
type PostVMRunURL ¶
type PostVMRunURL struct {
// contains filtered or unexported fields
}
PostVMRunURL generates an URL for the post VM run operation
func (*PostVMRunURL) Build ¶
func (o *PostVMRunURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostVMRunURL) BuildFull ¶
func (o *PostVMRunURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostVMRunURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostVMRunURL) SetBasePath ¶
func (o *PostVMRunURL) 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 (*PostVMRunURL) String ¶
func (o *PostVMRunURL) String() string
String returns the string representation of the path with query string
func (*PostVMRunURL) StringFull ¶
func (o *PostVMRunURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostVMRunURL) WithBasePath ¶
func (o *PostVMRunURL) WithBasePath(bp string) *PostVMRunURL
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