mirror of
https://github.com/openziti/zrok.git
synced 2025-08-23 21:45:40 +02:00
admin endpoints polish and lint removal (#834)
This commit is contained in:
@@ -6,10 +6,12 @@ package admin
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// DeleteFrontendReader is a Reader for the DeleteFrontend structure.
|
||||
@@ -272,3 +274,41 @@ func (o *DeleteFrontendInternalServerError) readResponse(response runtime.Client
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
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