mirror of
https://github.com/openziti/zrok.git
synced 2024-12-23 15:18:52 +01:00
60 lines
1.4 KiB
Go
60 lines
1.4 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package metadata
|
|
|
|
// 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/openziti/zrok/rest_model_zrok"
|
|
)
|
|
|
|
// ConfigurationOKCode is the HTTP code returned for type ConfigurationOK
|
|
const ConfigurationOKCode int = 200
|
|
|
|
/*
|
|
ConfigurationOK current configuration
|
|
|
|
swagger:response configurationOK
|
|
*/
|
|
type ConfigurationOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *rest_model_zrok.Configuration `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewConfigurationOK creates ConfigurationOK with default headers values
|
|
func NewConfigurationOK() *ConfigurationOK {
|
|
|
|
return &ConfigurationOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the configuration o k response
|
|
func (o *ConfigurationOK) WithPayload(payload *rest_model_zrok.Configuration) *ConfigurationOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the configuration o k response
|
|
func (o *ConfigurationOK) SetPayload(payload *rest_model_zrok.Configuration) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *ConfigurationOK) 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
|
|
}
|
|
}
|
|
}
|