Documentation ¶
Index ¶
- Constants
- type RestartService
- type RestartServiceDefault
- func (o *RestartServiceDefault) SetPayload(payload *models.Error)
- func (o *RestartServiceDefault) SetStatusCode(code int)
- func (o *RestartServiceDefault) WithPayload(payload *models.Error) *RestartServiceDefault
- func (o *RestartServiceDefault) WithStatusCode(code int) *RestartServiceDefault
- func (o *RestartServiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RestartServiceHandler
- type RestartServiceHandlerFunc
- type RestartServiceNoContent
- type RestartServiceParams
- type RestartServiceURL
- func (o *RestartServiceURL) Build() (*url.URL, error)
- func (o *RestartServiceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RestartServiceURL) Must(u *url.URL, err error) *url.URL
- func (o *RestartServiceURL) SetBasePath(bp string)
- func (o *RestartServiceURL) String() string
- func (o *RestartServiceURL) StringFull(scheme, host string) string
- func (o *RestartServiceURL) WithBasePath(bp string) *RestartServiceURL
Constants ¶
const RestartServiceNoContentCode int = 204
RestartServiceNoContentCode is the HTTP code returned for type RestartServiceNoContent
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestartService ¶
type RestartService struct { Context *middleware.Context Handler RestartServiceHandler }
RestartService swagger:route POST /service/restart Service restartService
Restart Service
func NewRestartService ¶
func NewRestartService(ctx *middleware.Context, handler RestartServiceHandler) *RestartService
NewRestartService creates a new http.Handler for the restart service operation
func (*RestartService) ServeHTTP ¶
func (o *RestartService) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RestartServiceDefault ¶
type RestartServiceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RestartServiceDefault Generic error response.
swagger:response restartServiceDefault
func NewRestartServiceDefault ¶
func NewRestartServiceDefault(code int) *RestartServiceDefault
NewRestartServiceDefault creates RestartServiceDefault with default headers values
func (*RestartServiceDefault) SetPayload ¶
func (o *RestartServiceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the restart service default response
func (*RestartServiceDefault) SetStatusCode ¶
func (o *RestartServiceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the restart service default response
func (*RestartServiceDefault) WithPayload ¶
func (o *RestartServiceDefault) WithPayload(payload *models.Error) *RestartServiceDefault
WithPayload adds the payload to the restart service default response
func (*RestartServiceDefault) WithStatusCode ¶
func (o *RestartServiceDefault) WithStatusCode(code int) *RestartServiceDefault
WithStatusCode adds the status to the restart service default response
func (*RestartServiceDefault) WriteResponse ¶
func (o *RestartServiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RestartServiceHandler ¶
type RestartServiceHandler interface {
Handle(RestartServiceParams, *models.Principal) middleware.Responder
}
RestartServiceHandler interface for that can handle valid restart service params
type RestartServiceHandlerFunc ¶
type RestartServiceHandlerFunc func(RestartServiceParams, *models.Principal) middleware.Responder
RestartServiceHandlerFunc turns a function with the right signature into a restart service handler
func (RestartServiceHandlerFunc) Handle ¶
func (fn RestartServiceHandlerFunc) Handle(params RestartServiceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RestartServiceNoContent ¶
type RestartServiceNoContent struct { }
RestartServiceNoContent A successful response.
swagger:response restartServiceNoContent
func NewRestartServiceNoContent ¶
func NewRestartServiceNoContent() *RestartServiceNoContent
NewRestartServiceNoContent creates RestartServiceNoContent with default headers values
func (*RestartServiceNoContent) WriteResponse ¶
func (o *RestartServiceNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RestartServiceParams ¶
RestartServiceParams contains all the bound params for the restart service operation typically these are obtained from a http.Request
swagger:parameters RestartService
func NewRestartServiceParams ¶
func NewRestartServiceParams() RestartServiceParams
NewRestartServiceParams creates a new RestartServiceParams object
There are no default values defined in the spec.
func (*RestartServiceParams) BindRequest ¶
func (o *RestartServiceParams) 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 NewRestartServiceParams() beforehand.
type RestartServiceURL ¶
type RestartServiceURL struct {
// contains filtered or unexported fields
}
RestartServiceURL generates an URL for the restart service operation
func (*RestartServiceURL) Build ¶
func (o *RestartServiceURL) Build() (*url.URL, error)
Build a url path and query string
func (*RestartServiceURL) BuildFull ¶
func (o *RestartServiceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RestartServiceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RestartServiceURL) SetBasePath ¶
func (o *RestartServiceURL) 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 (*RestartServiceURL) String ¶
func (o *RestartServiceURL) String() string
String returns the string representation of the path with query string
func (*RestartServiceURL) StringFull ¶
func (o *RestartServiceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RestartServiceURL) WithBasePath ¶
func (o *RestartServiceURL) WithBasePath(bp string) *RestartServiceURL
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