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
12 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 enroll
// 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"
)
// EnrollCaOKCode is the HTTP code returned for type EnrollCaOK
const EnrollCaOKCode int = 200
/*
EnrollCaOK Base empty response
swagger:response enrollCaOK
*/
type EnrollCaOK struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.Empty `json:"body,omitempty"`
}
// NewEnrollCaOK creates EnrollCaOK with default headers values
func NewEnrollCaOK() *EnrollCaOK {
return &EnrollCaOK{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll ca o k response
func (o *EnrollCaOK) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollCaOK {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll ca o k response
func (o *EnrollCaOK) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll ca o k response
func (o *EnrollCaOK) WithPayload(payload *rest_model.Empty) *EnrollCaOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll ca o k response
func (o *EnrollCaOK) SetPayload(payload *rest_model.Empty) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollCaOK) 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
}
}
}
// EnrollCaBadRequestCode is the HTTP code returned for type EnrollCaBadRequest
const EnrollCaBadRequestCode int = 400
/*
EnrollCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response enrollCaBadRequest
*/
type EnrollCaBadRequest struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollCaBadRequest creates EnrollCaBadRequest with default headers values
func NewEnrollCaBadRequest() *EnrollCaBadRequest {
return &EnrollCaBadRequest{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll ca bad request response
func (o *EnrollCaBadRequest) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollCaBadRequest {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll ca bad request response
func (o *EnrollCaBadRequest) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll ca bad request response
func (o *EnrollCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollCaBadRequest {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll ca bad request response
func (o *EnrollCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollCaBadRequest) 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(400)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// EnrollCaNotFoundCode is the HTTP code returned for type EnrollCaNotFound
const EnrollCaNotFoundCode int = 404
/*
EnrollCaNotFound The requested resource does not exist
swagger:response enrollCaNotFound
*/
type EnrollCaNotFound struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollCaNotFound creates EnrollCaNotFound with default headers values
func NewEnrollCaNotFound() *EnrollCaNotFound {
return &EnrollCaNotFound{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll ca not found response
func (o *EnrollCaNotFound) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollCaNotFound {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll ca not found response
func (o *EnrollCaNotFound) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll ca not found response
func (o *EnrollCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollCaNotFound {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll ca not found response
func (o *EnrollCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollCaNotFound) 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
}
}
}
// EnrollCaTooManyRequestsCode is the HTTP code returned for type EnrollCaTooManyRequests
const EnrollCaTooManyRequestsCode int = 429
/*
EnrollCaTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response enrollCaTooManyRequests
*/
type EnrollCaTooManyRequests struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollCaTooManyRequests creates EnrollCaTooManyRequests with default headers values
func NewEnrollCaTooManyRequests() *EnrollCaTooManyRequests {
return &EnrollCaTooManyRequests{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll ca too many requests response
func (o *EnrollCaTooManyRequests) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollCaTooManyRequests {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll ca too many requests response
func (o *EnrollCaTooManyRequests) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll ca too many requests response
func (o *EnrollCaTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollCaTooManyRequests {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll ca too many requests response
func (o *EnrollCaTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollCaTooManyRequests) 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
}
}
}
// EnrollCaServiceUnavailableCode is the HTTP code returned for type EnrollCaServiceUnavailable
const EnrollCaServiceUnavailableCode int = 503
/*
EnrollCaServiceUnavailable The request could not be completed due to the server being busy or in a temporarily bad state
swagger:response enrollCaServiceUnavailable
*/
type EnrollCaServiceUnavailable struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollCaServiceUnavailable creates EnrollCaServiceUnavailable with default headers values
func NewEnrollCaServiceUnavailable() *EnrollCaServiceUnavailable {
return &EnrollCaServiceUnavailable{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll ca service unavailable response
func (o *EnrollCaServiceUnavailable) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollCaServiceUnavailable {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll ca service unavailable response
func (o *EnrollCaServiceUnavailable) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll ca service unavailable response
func (o *EnrollCaServiceUnavailable) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollCaServiceUnavailable {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll ca service unavailable response
func (o *EnrollCaServiceUnavailable) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollCaServiceUnavailable) 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
}
}
}