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

579 lines
16 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"
)
// EnrollOKCode is the HTTP code returned for type EnrollOK
const EnrollOKCode int = 200
/*
EnrollOK A response containing and identities client certificate chains
swagger:response enrollOK
*/
type EnrollOK struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.EnrollmentCertsEnvelope `json:"body,omitempty"`
}
// NewEnrollOK creates EnrollOK with default headers values
func NewEnrollOK() *EnrollOK {
return &EnrollOK{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll o k response
func (o *EnrollOK) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollOK {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll o k response
func (o *EnrollOK) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll o k response
func (o *EnrollOK) WithPayload(payload *rest_model.EnrollmentCertsEnvelope) *EnrollOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll o k response
func (o *EnrollOK) SetPayload(payload *rest_model.EnrollmentCertsEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollOK) 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
}
}
}
// EnrollBadRequestCode is the HTTP code returned for type EnrollBadRequest
const EnrollBadRequestCode int = 400
/*
EnrollBadRequest 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 enrollBadRequest
*/
type EnrollBadRequest struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollBadRequest creates EnrollBadRequest with default headers values
func NewEnrollBadRequest() *EnrollBadRequest {
return &EnrollBadRequest{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll bad request response
func (o *EnrollBadRequest) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollBadRequest {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll bad request response
func (o *EnrollBadRequest) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll bad request response
func (o *EnrollBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollBadRequest {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll bad request response
func (o *EnrollBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollBadRequest) 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
}
}
}
// EnrollNotFoundCode is the HTTP code returned for type EnrollNotFound
const EnrollNotFoundCode int = 404
/*
EnrollNotFound The requested resource does not exist
swagger:response enrollNotFound
*/
type EnrollNotFound struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollNotFound creates EnrollNotFound with default headers values
func NewEnrollNotFound() *EnrollNotFound {
return &EnrollNotFound{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll not found response
func (o *EnrollNotFound) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollNotFound {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll not found response
func (o *EnrollNotFound) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll not found response
func (o *EnrollNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollNotFound {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll not found response
func (o *EnrollNotFound) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollNotFound) 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
}
}
}
// EnrollConflictCode is the HTTP code returned for type EnrollConflict
const EnrollConflictCode int = 409
/*
EnrollConflict The request could not be completed due to a conflict of configuration or state
swagger:response enrollConflict
*/
type EnrollConflict struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollConflict creates EnrollConflict with default headers values
func NewEnrollConflict() *EnrollConflict {
return &EnrollConflict{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll conflict response
func (o *EnrollConflict) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollConflict {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll conflict response
func (o *EnrollConflict) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll conflict response
func (o *EnrollConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollConflict {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll conflict response
func (o *EnrollConflict) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollConflict) 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(409)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// EnrollGoneCode is the HTTP code returned for type EnrollGone
const EnrollGoneCode int = 410
/*
EnrollGone The request could not be completed as the resource is no longer available
swagger:response enrollGone
*/
type EnrollGone struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollGone creates EnrollGone with default headers values
func NewEnrollGone() *EnrollGone {
return &EnrollGone{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll gone response
func (o *EnrollGone) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollGone {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll gone response
func (o *EnrollGone) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll gone response
func (o *EnrollGone) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollGone {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll gone response
func (o *EnrollGone) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollGone) 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(410)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// EnrollTooManyRequestsCode is the HTTP code returned for type EnrollTooManyRequests
const EnrollTooManyRequestsCode int = 429
/*
EnrollTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response enrollTooManyRequests
*/
type EnrollTooManyRequests struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollTooManyRequests creates EnrollTooManyRequests with default headers values
func NewEnrollTooManyRequests() *EnrollTooManyRequests {
return &EnrollTooManyRequests{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll too many requests response
func (o *EnrollTooManyRequests) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollTooManyRequests {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll too many requests response
func (o *EnrollTooManyRequests) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll too many requests response
func (o *EnrollTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollTooManyRequests {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll too many requests response
func (o *EnrollTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollTooManyRequests) 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
}
}
}
// EnrollServiceUnavailableCode is the HTTP code returned for type EnrollServiceUnavailable
const EnrollServiceUnavailableCode int = 503
/*
EnrollServiceUnavailable The request could not be completed due to the server being busy or in a temporarily bad state
swagger:response enrollServiceUnavailable
*/
type EnrollServiceUnavailable struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewEnrollServiceUnavailable creates EnrollServiceUnavailable with default headers values
func NewEnrollServiceUnavailable() *EnrollServiceUnavailable {
return &EnrollServiceUnavailable{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the enroll service unavailable response
func (o *EnrollServiceUnavailable) WithWWWAuthenticate(wWWAuthenticate []string) *EnrollServiceUnavailable {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the enroll service unavailable response
func (o *EnrollServiceUnavailable) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the enroll service unavailable response
func (o *EnrollServiceUnavailable) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollServiceUnavailable {
o.Payload = payload
return o
}
// SetPayload sets the payload to the enroll service unavailable response
func (o *EnrollServiceUnavailable) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *EnrollServiceUnavailable) 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
}
}
}