mirror of
https://github.com/openziti/zrok.git
synced 2025-08-22 21:20:42 +02:00
113 lines
3.1 KiB
Go
113 lines
3.1 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package agent
|
|
|
|
// 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"
|
|
)
|
|
|
|
// RemoteUnaccessOKCode is the HTTP code returned for type RemoteUnaccessOK
|
|
const RemoteUnaccessOKCode int = 200
|
|
|
|
/*
|
|
RemoteUnaccessOK ok
|
|
|
|
swagger:response remoteUnaccessOK
|
|
*/
|
|
type RemoteUnaccessOK struct {
|
|
}
|
|
|
|
// NewRemoteUnaccessOK creates RemoteUnaccessOK with default headers values
|
|
func NewRemoteUnaccessOK() *RemoteUnaccessOK {
|
|
|
|
return &RemoteUnaccessOK{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteUnaccessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(200)
|
|
}
|
|
|
|
// RemoteUnaccessUnauthorizedCode is the HTTP code returned for type RemoteUnaccessUnauthorized
|
|
const RemoteUnaccessUnauthorizedCode int = 401
|
|
|
|
/*
|
|
RemoteUnaccessUnauthorized unauthorized
|
|
|
|
swagger:response remoteUnaccessUnauthorized
|
|
*/
|
|
type RemoteUnaccessUnauthorized struct {
|
|
}
|
|
|
|
// NewRemoteUnaccessUnauthorized creates RemoteUnaccessUnauthorized with default headers values
|
|
func NewRemoteUnaccessUnauthorized() *RemoteUnaccessUnauthorized {
|
|
|
|
return &RemoteUnaccessUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteUnaccessUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// RemoteUnaccessInternalServerErrorCode is the HTTP code returned for type RemoteUnaccessInternalServerError
|
|
const RemoteUnaccessInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
RemoteUnaccessInternalServerError internal server error
|
|
|
|
swagger:response remoteUnaccessInternalServerError
|
|
*/
|
|
type RemoteUnaccessInternalServerError struct {
|
|
}
|
|
|
|
// NewRemoteUnaccessInternalServerError creates RemoteUnaccessInternalServerError with default headers values
|
|
func NewRemoteUnaccessInternalServerError() *RemoteUnaccessInternalServerError {
|
|
|
|
return &RemoteUnaccessInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteUnaccessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|
|
|
|
// RemoteUnaccessBadGatewayCode is the HTTP code returned for type RemoteUnaccessBadGateway
|
|
const RemoteUnaccessBadGatewayCode int = 502
|
|
|
|
/*
|
|
RemoteUnaccessBadGateway bad gateway; agent not reachable
|
|
|
|
swagger:response remoteUnaccessBadGateway
|
|
*/
|
|
type RemoteUnaccessBadGateway struct {
|
|
}
|
|
|
|
// NewRemoteUnaccessBadGateway creates RemoteUnaccessBadGateway with default headers values
|
|
func NewRemoteUnaccessBadGateway() *RemoteUnaccessBadGateway {
|
|
|
|
return &RemoteUnaccessBadGateway{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteUnaccessBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(502)
|
|
}
|