mirror of
https://github.com/openziti/zrok.git
synced 2025-08-16 19:01:16 +02:00
invite token generate lint (#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"
|
||||
)
|
||||
|
||||
// InviteTokenGenerateReader is a Reader for the InviteTokenGenerate structure.
|
||||
@ -272,3 +274,41 @@ func (o *InviteTokenGenerateInternalServerError) readResponse(response runtime.C
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
InviteTokenGenerateBody invite token generate body
|
||||
swagger:model InviteTokenGenerateBody
|
||||
*/
|
||||
type InviteTokenGenerateBody struct {
|
||||
|
||||
// tokens
|
||||
Tokens []string `json:"tokens"`
|
||||
}
|
||||
|
||||
// Validate validates this invite token generate body
|
||||
func (o *InviteTokenGenerateBody) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this invite token generate body based on context it is used
|
||||
func (o *InviteTokenGenerateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (o *InviteTokenGenerateBody) MarshalBinary() ([]byte, error) {
|
||||
if o == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(o)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (o *InviteTokenGenerateBody) UnmarshalBinary(b []byte) error {
|
||||
var res InviteTokenGenerateBody
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*o = res
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user