admin endpoints polish and lint removal (#834)

This commit is contained in:
Michael Quigley
2025-02-03 13:10:13 -05:00
parent 14d03b88f7
commit 62d8086aed
46 changed files with 2224 additions and 456 deletions

View File

@ -6,9 +6,12 @@ package admin
// Editing this file might prove futile when you re-run the generate command
import (
"context"
"net/http"
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/openziti/zrok/rest_model_zrok"
)
@ -69,3 +72,40 @@ func (o *DeleteFrontend) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
o.Context.Respond(rw, r, route.Produces, route, res)
}
// DeleteFrontendBody delete frontend body
//
// swagger:model DeleteFrontendBody
type DeleteFrontendBody struct {
// frontend token
FrontendToken string `json:"frontendToken,omitempty"`
}
// Validate validates this delete frontend body
func (o *DeleteFrontendBody) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this delete frontend body based on context it is used
func (o *DeleteFrontendBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (o *DeleteFrontendBody) MarshalBinary() ([]byte, error) {
if o == nil {
return nil, nil
}
return swag.WriteJSON(o)
}
// UnmarshalBinary interface implementation
func (o *DeleteFrontendBody) UnmarshalBinary(b []byte) error {
var res DeleteFrontendBody
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*o = res
return nil
}