You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package status_management
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
"github.com/Cyclops-Labs/cyclops-4-hpc.git/extensions/lexis/models"
|
|
)
|
|
|
|
// ShowStatusOKCode is the HTTP code returned for type ShowStatusOK
|
|
const ShowStatusOKCode int = 200
|
|
|
|
/*ShowStatusOK Status information of the system
|
|
|
|
swagger:response showStatusOK
|
|
*/
|
|
type ShowStatusOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *models.Status `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewShowStatusOK creates ShowStatusOK with default headers values
|
|
func NewShowStatusOK() *ShowStatusOK {
|
|
|
|
return &ShowStatusOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the show status o k response
|
|
func (o *ShowStatusOK) WithPayload(payload *models.Status) *ShowStatusOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the show status o k response
|
|
func (o *ShowStatusOK) SetPayload(payload *models.Status) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *ShowStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.WriteHeader(200)
|
|
if o.Payload != nil {
|
|
payload := o.Payload
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
panic(err) // let the recovery middleware deal with this
|
|
}
|
|
}
|
|
}
|
|
|