Documentation ¶
Index ¶
- Constants
- type Shutdown
- type ShutdownDefault
- func (o *ShutdownDefault) SetPayload(payload *models.Error)
- func (o *ShutdownDefault) SetStatusCode(code int)
- func (o *ShutdownDefault) WithPayload(payload *models.Error) *ShutdownDefault
- func (o *ShutdownDefault) WithStatusCode(code int) *ShutdownDefault
- func (o *ShutdownDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ShutdownHandler
- type ShutdownHandlerFunc
- type ShutdownOK
- type ShutdownParams
- type ShutdownURL
- func (o *ShutdownURL) Build() (*url.URL, error)
- func (o *ShutdownURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ShutdownURL) Must(u *url.URL, err error) *url.URL
- func (o *ShutdownURL) SetBasePath(bp string)
- func (o *ShutdownURL) String() string
- func (o *ShutdownURL) StringFull(scheme, host string) string
- func (o *ShutdownURL) WithBasePath(bp string) *ShutdownURL
Constants ¶
const ShutdownOKCode int = 200
ShutdownOKCode is the HTTP code returned for type ShutdownOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shutdown ¶
type Shutdown struct { Context *middleware.Context Handler ShutdownHandler }
Shutdown swagger:route PUT /system/shutdown System shutdown
Shutdown the Operating System
func NewShutdown ¶
func NewShutdown(ctx *middleware.Context, handler ShutdownHandler) *Shutdown
NewShutdown creates a new http.Handler for the shutdown operation
type ShutdownDefault ¶
type ShutdownDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ShutdownDefault Unexpected error
swagger:response shutdownDefault
func NewShutdownDefault ¶
func NewShutdownDefault(code int) *ShutdownDefault
NewShutdownDefault creates ShutdownDefault with default headers values
func (*ShutdownDefault) SetPayload ¶
func (o *ShutdownDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the shutdown default response
func (*ShutdownDefault) SetStatusCode ¶
func (o *ShutdownDefault) SetStatusCode(code int)
SetStatusCode sets the status to the shutdown default response
func (*ShutdownDefault) WithPayload ¶
func (o *ShutdownDefault) WithPayload(payload *models.Error) *ShutdownDefault
WithPayload adds the payload to the shutdown default response
func (*ShutdownDefault) WithStatusCode ¶
func (o *ShutdownDefault) WithStatusCode(code int) *ShutdownDefault
WithStatusCode adds the status to the shutdown default response
func (*ShutdownDefault) WriteResponse ¶
func (o *ShutdownDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ShutdownHandler ¶
type ShutdownHandler interface {
Handle(ShutdownParams) middleware.Responder
}
ShutdownHandler interface for that can handle valid shutdown params
type ShutdownHandlerFunc ¶
type ShutdownHandlerFunc func(ShutdownParams) middleware.Responder
ShutdownHandlerFunc turns a function with the right signature into a shutdown handler
func (ShutdownHandlerFunc) Handle ¶
func (fn ShutdownHandlerFunc) Handle(params ShutdownParams) middleware.Responder
Handle executing the request and returning a response
type ShutdownOK ¶
ShutdownOK Shutdown executed successfully
swagger:response shutdownOK
func NewShutdownOK ¶
func NewShutdownOK() *ShutdownOK
NewShutdownOK creates ShutdownOK with default headers values
func (*ShutdownOK) SetPayload ¶
func (o *ShutdownOK) SetPayload(payload *models.Shutdown)
SetPayload sets the payload to the shutdown o k response
func (*ShutdownOK) WithPayload ¶
func (o *ShutdownOK) WithPayload(payload *models.Shutdown) *ShutdownOK
WithPayload adds the payload to the shutdown o k response
func (*ShutdownOK) WriteResponse ¶
func (o *ShutdownOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ShutdownParams ¶
ShutdownParams contains all the bound params for the shutdown operation typically these are obtained from a http.Request
swagger:parameters shutdown
func NewShutdownParams ¶
func NewShutdownParams() ShutdownParams
NewShutdownParams creates a new ShutdownParams object with the default values initialized.
func (*ShutdownParams) BindRequest ¶
func (o *ShutdownParams) 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
type ShutdownURL ¶
type ShutdownURL struct {
// contains filtered or unexported fields
}
ShutdownURL generates an URL for the shutdown operation
func (*ShutdownURL) Build ¶
func (o *ShutdownURL) Build() (*url.URL, error)
Build a url path and query string
func (*ShutdownURL) BuildFull ¶
func (o *ShutdownURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ShutdownURL) SetBasePath ¶
func (o *ShutdownURL) 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 (*ShutdownURL) String ¶
func (o *ShutdownURL) String() string
String returns the string representation of the path with query string
func (*ShutdownURL) StringFull ¶
func (o *ShutdownURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ShutdownURL) WithBasePath ¶
func (o *ShutdownURL) WithBasePath(bp string) *ShutdownURL
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