Files
zeekay b7d8ccb10f rebrand: openziti → hanzozt (Hanzo Zero Trust)
Global rebrand of all OpenZiti references to Hanzo ZT:
- Go module paths: github.com/openziti/* → github.com/hanzozt/*
- Docker images: openziti/* → hanzozt/*
- Java packages: org.openziti.* → org.hanzozt.*
- Brand: OpenZiti → Hanzo ZT
- URLs: openziti.io → hanzozt.dev
2026-02-18 16:13:41 -08:00

425 lines
13 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
//
// Copyright NetFoundry Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// __ __ _
// \ \ / / (_)
// \ \ /\ / /_ _ _ __ _ __ _ _ __ __ _
// \ \/ \/ / _` | '__| '_ \| | '_ \ / _` |
// \ /\ / (_| | | | | | | | | | | (_| | : This file is generated, do not edit it.
// \/ \/ \__,_|_| |_| |_|_|_| |_|\__, |
// __/ |
// |___/
package router
// 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/go-openapi/swag"
"github.com/hanzozt/edge-api/rest_model"
)
// DetailRouterOKCode is the HTTP code returned for type DetailRouterOK
const DetailRouterOKCode int = 200
/*
DetailRouterOK A single router
swagger:response detailRouterOK
*/
type DetailRouterOK struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.DetailRouterEnvelope `json:"body,omitempty"`
}
// NewDetailRouterOK creates DetailRouterOK with default headers values
func NewDetailRouterOK() *DetailRouterOK {
return &DetailRouterOK{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the detail router o k response
func (o *DetailRouterOK) WithWWWAuthenticate(wWWAuthenticate []string) *DetailRouterOK {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the detail router o k response
func (o *DetailRouterOK) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the detail router o k response
func (o *DetailRouterOK) WithPayload(payload *rest_model.DetailRouterEnvelope) *DetailRouterOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail router o k response
func (o *DetailRouterOK) SetPayload(payload *rest_model.DetailRouterEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
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
}
}
}
// DetailRouterUnauthorizedCode is the HTTP code returned for type DetailRouterUnauthorized
const DetailRouterUnauthorizedCode int = 401
/*
DetailRouterUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response detailRouterUnauthorized
*/
type DetailRouterUnauthorized struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailRouterUnauthorized creates DetailRouterUnauthorized with default headers values
func NewDetailRouterUnauthorized() *DetailRouterUnauthorized {
return &DetailRouterUnauthorized{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the detail router unauthorized response
func (o *DetailRouterUnauthorized) WithWWWAuthenticate(wWWAuthenticate []string) *DetailRouterUnauthorized {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the detail router unauthorized response
func (o *DetailRouterUnauthorized) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the detail router unauthorized response
func (o *DetailRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterUnauthorized {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail router unauthorized response
func (o *DetailRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(401)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DetailRouterNotFoundCode is the HTTP code returned for type DetailRouterNotFound
const DetailRouterNotFoundCode int = 404
/*
DetailRouterNotFound The requested resource does not exist
swagger:response detailRouterNotFound
*/
type DetailRouterNotFound struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailRouterNotFound creates DetailRouterNotFound with default headers values
func NewDetailRouterNotFound() *DetailRouterNotFound {
return &DetailRouterNotFound{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the detail router not found response
func (o *DetailRouterNotFound) WithWWWAuthenticate(wWWAuthenticate []string) *DetailRouterNotFound {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the detail router not found response
func (o *DetailRouterNotFound) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the detail router not found response
func (o *DetailRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterNotFound {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail router not found response
func (o *DetailRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(404)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DetailRouterTooManyRequestsCode is the HTTP code returned for type DetailRouterTooManyRequests
const DetailRouterTooManyRequestsCode int = 429
/*
DetailRouterTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response detailRouterTooManyRequests
*/
type DetailRouterTooManyRequests struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailRouterTooManyRequests creates DetailRouterTooManyRequests with default headers values
func NewDetailRouterTooManyRequests() *DetailRouterTooManyRequests {
return &DetailRouterTooManyRequests{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the detail router too many requests response
func (o *DetailRouterTooManyRequests) WithWWWAuthenticate(wWWAuthenticate []string) *DetailRouterTooManyRequests {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the detail router too many requests response
func (o *DetailRouterTooManyRequests) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the detail router too many requests response
func (o *DetailRouterTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterTooManyRequests {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail router too many requests response
func (o *DetailRouterTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailRouterTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(429)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DetailRouterServiceUnavailableCode is the HTTP code returned for type DetailRouterServiceUnavailable
const DetailRouterServiceUnavailableCode int = 503
/*
DetailRouterServiceUnavailable The request could not be completed due to the server being busy or in a temporarily bad state
swagger:response detailRouterServiceUnavailable
*/
type DetailRouterServiceUnavailable struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailRouterServiceUnavailable creates DetailRouterServiceUnavailable with default headers values
func NewDetailRouterServiceUnavailable() *DetailRouterServiceUnavailable {
return &DetailRouterServiceUnavailable{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the detail router service unavailable response
func (o *DetailRouterServiceUnavailable) WithWWWAuthenticate(wWWAuthenticate []string) *DetailRouterServiceUnavailable {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the detail router service unavailable response
func (o *DetailRouterServiceUnavailable) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the detail router service unavailable response
func (o *DetailRouterServiceUnavailable) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterServiceUnavailable {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail router service unavailable response
func (o *DetailRouterServiceUnavailable) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailRouterServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(503)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}