mirror of
https://github.com/openziti/zrok.git
synced 2024-12-12 01:40:50 +01:00
135 lines
3.7 KiB
Go
135 lines
3.7 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"
|
|
)
|
|
|
|
// GetFrontendDetailOKCode is the HTTP code returned for type GetFrontendDetailOK
|
|
const GetFrontendDetailOKCode int = 200
|
|
|
|
/*
|
|
GetFrontendDetailOK ok
|
|
|
|
swagger:response getFrontendDetailOK
|
|
*/
|
|
type GetFrontendDetailOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *rest_model_zrok.Frontend `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewGetFrontendDetailOK creates GetFrontendDetailOK with default headers values
|
|
func NewGetFrontendDetailOK() *GetFrontendDetailOK {
|
|
|
|
return &GetFrontendDetailOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the get frontend detail o k response
|
|
func (o *GetFrontendDetailOK) WithPayload(payload *rest_model_zrok.Frontend) *GetFrontendDetailOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the get frontend detail o k response
|
|
func (o *GetFrontendDetailOK) SetPayload(payload *rest_model_zrok.Frontend) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetFrontendDetailOK) 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
|
|
}
|
|
}
|
|
}
|
|
|
|
// GetFrontendDetailUnauthorizedCode is the HTTP code returned for type GetFrontendDetailUnauthorized
|
|
const GetFrontendDetailUnauthorizedCode int = 401
|
|
|
|
/*
|
|
GetFrontendDetailUnauthorized unauthorized
|
|
|
|
swagger:response getFrontendDetailUnauthorized
|
|
*/
|
|
type GetFrontendDetailUnauthorized struct {
|
|
}
|
|
|
|
// NewGetFrontendDetailUnauthorized creates GetFrontendDetailUnauthorized with default headers values
|
|
func NewGetFrontendDetailUnauthorized() *GetFrontendDetailUnauthorized {
|
|
|
|
return &GetFrontendDetailUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetFrontendDetailUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// GetFrontendDetailNotFoundCode is the HTTP code returned for type GetFrontendDetailNotFound
|
|
const GetFrontendDetailNotFoundCode int = 404
|
|
|
|
/*
|
|
GetFrontendDetailNotFound not found
|
|
|
|
swagger:response getFrontendDetailNotFound
|
|
*/
|
|
type GetFrontendDetailNotFound struct {
|
|
}
|
|
|
|
// NewGetFrontendDetailNotFound creates GetFrontendDetailNotFound with default headers values
|
|
func NewGetFrontendDetailNotFound() *GetFrontendDetailNotFound {
|
|
|
|
return &GetFrontendDetailNotFound{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetFrontendDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(404)
|
|
}
|
|
|
|
// GetFrontendDetailInternalServerErrorCode is the HTTP code returned for type GetFrontendDetailInternalServerError
|
|
const GetFrontendDetailInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
GetFrontendDetailInternalServerError internal server error
|
|
|
|
swagger:response getFrontendDetailInternalServerError
|
|
*/
|
|
type GetFrontendDetailInternalServerError struct {
|
|
}
|
|
|
|
// NewGetFrontendDetailInternalServerError creates GetFrontendDetailInternalServerError with default headers values
|
|
func NewGetFrontendDetailInternalServerError() *GetFrontendDetailInternalServerError {
|
|
|
|
return &GetFrontendDetailInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetFrontendDetailInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|