mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 11:21:07 +02:00
admin endpoints polish and lint removal (#834)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user