mirror of
https://github.com/openziti/zrok.git
synced 2025-08-24 22:15:26 +02:00
133 lines
3.4 KiB
Go
133 lines
3.4 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"
|
|
)
|
|
|
|
// RemoteShareOKCode is the HTTP code returned for type RemoteShareOK
|
|
const RemoteShareOKCode int = 200
|
|
|
|
/*
|
|
RemoteShareOK ok
|
|
|
|
swagger:response remoteShareOK
|
|
*/
|
|
type RemoteShareOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *RemoteShareOKBody `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewRemoteShareOK creates RemoteShareOK with default headers values
|
|
func NewRemoteShareOK() *RemoteShareOK {
|
|
|
|
return &RemoteShareOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the remote share o k response
|
|
func (o *RemoteShareOK) WithPayload(payload *RemoteShareOKBody) *RemoteShareOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the remote share o k response
|
|
func (o *RemoteShareOK) SetPayload(payload *RemoteShareOKBody) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteShareOK) 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
|
|
}
|
|
}
|
|
}
|
|
|
|
// RemoteShareUnauthorizedCode is the HTTP code returned for type RemoteShareUnauthorized
|
|
const RemoteShareUnauthorizedCode int = 401
|
|
|
|
/*
|
|
RemoteShareUnauthorized unauthorized
|
|
|
|
swagger:response remoteShareUnauthorized
|
|
*/
|
|
type RemoteShareUnauthorized struct {
|
|
}
|
|
|
|
// NewRemoteShareUnauthorized creates RemoteShareUnauthorized with default headers values
|
|
func NewRemoteShareUnauthorized() *RemoteShareUnauthorized {
|
|
|
|
return &RemoteShareUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteShareUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// RemoteShareInternalServerErrorCode is the HTTP code returned for type RemoteShareInternalServerError
|
|
const RemoteShareInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
RemoteShareInternalServerError internal server error
|
|
|
|
swagger:response remoteShareInternalServerError
|
|
*/
|
|
type RemoteShareInternalServerError struct {
|
|
}
|
|
|
|
// NewRemoteShareInternalServerError creates RemoteShareInternalServerError with default headers values
|
|
func NewRemoteShareInternalServerError() *RemoteShareInternalServerError {
|
|
|
|
return &RemoteShareInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteShareInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|
|
|
|
// RemoteShareBadGatewayCode is the HTTP code returned for type RemoteShareBadGateway
|
|
const RemoteShareBadGatewayCode int = 502
|
|
|
|
/*
|
|
RemoteShareBadGateway bad gateway; agent not reachable
|
|
|
|
swagger:response remoteShareBadGateway
|
|
*/
|
|
type RemoteShareBadGateway struct {
|
|
}
|
|
|
|
// NewRemoteShareBadGateway creates RemoteShareBadGateway with default headers values
|
|
func NewRemoteShareBadGateway() *RemoteShareBadGateway {
|
|
|
|
return &RemoteShareBadGateway{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *RemoteShareBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(502)
|
|
}
|