Documentation ¶
Index ¶
- type Client
- func (a *Client) ExternalCallback(params *ExternalCallbackParams, opts ...ClientOption) error
- func (a *Client) ExternalInitialize(params *ExternalInitializeParams, opts ...ClientOption) error
- func (a *Client) LoginUser(params *LoginUserParams, opts ...ClientOption) (*LoginUserOK, error)
- func (a *Client) LogoutUser(params *LogoutUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*LogoutUserOK, error)
- func (a *Client) RefreshAuth(params *RefreshAuthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RefreshAuthOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) VerifyAuth(params *VerifyAuthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*VerifyAuthOK, error)
- type ClientOption
- type ClientService
- type ExternalCallbackDefault
- func (o *ExternalCallbackDefault) Code() int
- func (o *ExternalCallbackDefault) Error() string
- func (o *ExternalCallbackDefault) GetPayload() *models.GeneralError
- func (o *ExternalCallbackDefault) IsClientError() bool
- func (o *ExternalCallbackDefault) IsCode(code int) bool
- func (o *ExternalCallbackDefault) IsRedirect() bool
- func (o *ExternalCallbackDefault) IsServerError() bool
- func (o *ExternalCallbackDefault) IsSuccess() bool
- func (o *ExternalCallbackDefault) String() string
- type ExternalCallbackNotFound
- func (o *ExternalCallbackNotFound) Code() int
- func (o *ExternalCallbackNotFound) Error() string
- func (o *ExternalCallbackNotFound) GetPayload() *models.GeneralError
- func (o *ExternalCallbackNotFound) IsClientError() bool
- func (o *ExternalCallbackNotFound) IsCode(code int) bool
- func (o *ExternalCallbackNotFound) IsRedirect() bool
- func (o *ExternalCallbackNotFound) IsServerError() bool
- func (o *ExternalCallbackNotFound) IsSuccess() bool
- func (o *ExternalCallbackNotFound) String() string
- type ExternalCallbackParams
- func NewExternalCallbackParams() *ExternalCallbackParams
- func NewExternalCallbackParamsWithContext(ctx context.Context) *ExternalCallbackParams
- func NewExternalCallbackParamsWithHTTPClient(client *http.Client) *ExternalCallbackParams
- func NewExternalCallbackParamsWithTimeout(timeout time.Duration) *ExternalCallbackParams
- func (o *ExternalCallbackParams) SetContext(ctx context.Context)
- func (o *ExternalCallbackParams) SetDefaults()
- func (o *ExternalCallbackParams) SetHTTPClient(client *http.Client)
- func (o *ExternalCallbackParams) SetProvider(provider string)
- func (o *ExternalCallbackParams) SetTimeout(timeout time.Duration)
- func (o *ExternalCallbackParams) WithContext(ctx context.Context) *ExternalCallbackParams
- func (o *ExternalCallbackParams) WithDefaults() *ExternalCallbackParams
- func (o *ExternalCallbackParams) WithHTTPClient(client *http.Client) *ExternalCallbackParams
- func (o *ExternalCallbackParams) WithProvider(provider string) *ExternalCallbackParams
- func (o *ExternalCallbackParams) WithTimeout(timeout time.Duration) *ExternalCallbackParams
- func (o *ExternalCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExternalCallbackPreconditionFailed
- func (o *ExternalCallbackPreconditionFailed) Code() int
- func (o *ExternalCallbackPreconditionFailed) Error() string
- func (o *ExternalCallbackPreconditionFailed) GetPayload() *models.GeneralError
- func (o *ExternalCallbackPreconditionFailed) IsClientError() bool
- func (o *ExternalCallbackPreconditionFailed) IsCode(code int) bool
- func (o *ExternalCallbackPreconditionFailed) IsRedirect() bool
- func (o *ExternalCallbackPreconditionFailed) IsServerError() bool
- func (o *ExternalCallbackPreconditionFailed) IsSuccess() bool
- func (o *ExternalCallbackPreconditionFailed) String() string
- type ExternalCallbackReader
- type ExternalCallbackTemporaryRedirect
- func (o *ExternalCallbackTemporaryRedirect) Code() int
- func (o *ExternalCallbackTemporaryRedirect) Error() string
- func (o *ExternalCallbackTemporaryRedirect) IsClientError() bool
- func (o *ExternalCallbackTemporaryRedirect) IsCode(code int) bool
- func (o *ExternalCallbackTemporaryRedirect) IsRedirect() bool
- func (o *ExternalCallbackTemporaryRedirect) IsServerError() bool
- func (o *ExternalCallbackTemporaryRedirect) IsSuccess() bool
- func (o *ExternalCallbackTemporaryRedirect) String() string
- type ExternalInitializeDefault
- func (o *ExternalInitializeDefault) Code() int
- func (o *ExternalInitializeDefault) Error() string
- func (o *ExternalInitializeDefault) GetPayload() *models.GeneralError
- func (o *ExternalInitializeDefault) IsClientError() bool
- func (o *ExternalInitializeDefault) IsCode(code int) bool
- func (o *ExternalInitializeDefault) IsRedirect() bool
- func (o *ExternalInitializeDefault) IsServerError() bool
- func (o *ExternalInitializeDefault) IsSuccess() bool
- func (o *ExternalInitializeDefault) String() string
- type ExternalInitializeInternalServerError
- func (o *ExternalInitializeInternalServerError) Code() int
- func (o *ExternalInitializeInternalServerError) Error() string
- func (o *ExternalInitializeInternalServerError) GetPayload() *models.GeneralError
- func (o *ExternalInitializeInternalServerError) IsClientError() bool
- func (o *ExternalInitializeInternalServerError) IsCode(code int) bool
- func (o *ExternalInitializeInternalServerError) IsRedirect() bool
- func (o *ExternalInitializeInternalServerError) IsServerError() bool
- func (o *ExternalInitializeInternalServerError) IsSuccess() bool
- func (o *ExternalInitializeInternalServerError) String() string
- type ExternalInitializeNotFound
- func (o *ExternalInitializeNotFound) Code() int
- func (o *ExternalInitializeNotFound) Error() string
- func (o *ExternalInitializeNotFound) GetPayload() *models.GeneralError
- func (o *ExternalInitializeNotFound) IsClientError() bool
- func (o *ExternalInitializeNotFound) IsCode(code int) bool
- func (o *ExternalInitializeNotFound) IsRedirect() bool
- func (o *ExternalInitializeNotFound) IsServerError() bool
- func (o *ExternalInitializeNotFound) IsSuccess() bool
- func (o *ExternalInitializeNotFound) String() string
- type ExternalInitializeParams
- func NewExternalInitializeParams() *ExternalInitializeParams
- func NewExternalInitializeParamsWithContext(ctx context.Context) *ExternalInitializeParams
- func NewExternalInitializeParamsWithHTTPClient(client *http.Client) *ExternalInitializeParams
- func NewExternalInitializeParamsWithTimeout(timeout time.Duration) *ExternalInitializeParams
- func (o *ExternalInitializeParams) SetContext(ctx context.Context)
- func (o *ExternalInitializeParams) SetDefaults()
- func (o *ExternalInitializeParams) SetHTTPClient(client *http.Client)
- func (o *ExternalInitializeParams) SetProvider(provider string)
- func (o *ExternalInitializeParams) SetTimeout(timeout time.Duration)
- func (o *ExternalInitializeParams) WithContext(ctx context.Context) *ExternalInitializeParams
- func (o *ExternalInitializeParams) WithDefaults() *ExternalInitializeParams
- func (o *ExternalInitializeParams) WithHTTPClient(client *http.Client) *ExternalInitializeParams
- func (o *ExternalInitializeParams) WithProvider(provider string) *ExternalInitializeParams
- func (o *ExternalInitializeParams) WithTimeout(timeout time.Duration) *ExternalInitializeParams
- func (o *ExternalInitializeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExternalInitializeReader
- type ExternalInitializeTemporaryRedirect
- func (o *ExternalInitializeTemporaryRedirect) Code() int
- func (o *ExternalInitializeTemporaryRedirect) Error() string
- func (o *ExternalInitializeTemporaryRedirect) IsClientError() bool
- func (o *ExternalInitializeTemporaryRedirect) IsCode(code int) bool
- func (o *ExternalInitializeTemporaryRedirect) IsRedirect() bool
- func (o *ExternalInitializeTemporaryRedirect) IsServerError() bool
- func (o *ExternalInitializeTemporaryRedirect) IsSuccess() bool
- func (o *ExternalInitializeTemporaryRedirect) String() string
- type LoginUserDefault
- func (o *LoginUserDefault) Code() int
- func (o *LoginUserDefault) Error() string
- func (o *LoginUserDefault) GetPayload() *models.GeneralError
- func (o *LoginUserDefault) IsClientError() bool
- func (o *LoginUserDefault) IsCode(code int) bool
- func (o *LoginUserDefault) IsRedirect() bool
- func (o *LoginUserDefault) IsServerError() bool
- func (o *LoginUserDefault) IsSuccess() bool
- func (o *LoginUserDefault) String() string
- type LoginUserOK
- func (o *LoginUserOK) Code() int
- func (o *LoginUserOK) Error() string
- func (o *LoginUserOK) GetPayload() *models.AuthToken
- func (o *LoginUserOK) IsClientError() bool
- func (o *LoginUserOK) IsCode(code int) bool
- func (o *LoginUserOK) IsRedirect() bool
- func (o *LoginUserOK) IsServerError() bool
- func (o *LoginUserOK) IsSuccess() bool
- func (o *LoginUserOK) String() string
- type LoginUserParams
- func (o *LoginUserParams) SetAuthLogin(authLogin *models.AuthLogin)
- func (o *LoginUserParams) SetContext(ctx context.Context)
- func (o *LoginUserParams) SetDefaults()
- func (o *LoginUserParams) SetHTTPClient(client *http.Client)
- func (o *LoginUserParams) SetTimeout(timeout time.Duration)
- func (o *LoginUserParams) WithAuthLogin(authLogin *models.AuthLogin) *LoginUserParams
- func (o *LoginUserParams) WithContext(ctx context.Context) *LoginUserParams
- func (o *LoginUserParams) WithDefaults() *LoginUserParams
- func (o *LoginUserParams) WithHTTPClient(client *http.Client) *LoginUserParams
- func (o *LoginUserParams) WithTimeout(timeout time.Duration) *LoginUserParams
- func (o *LoginUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginUserReader
- type LoginUserUnauthorized
- func (o *LoginUserUnauthorized) Code() int
- func (o *LoginUserUnauthorized) Error() string
- func (o *LoginUserUnauthorized) GetPayload() *models.GeneralError
- func (o *LoginUserUnauthorized) IsClientError() bool
- func (o *LoginUserUnauthorized) IsCode(code int) bool
- func (o *LoginUserUnauthorized) IsRedirect() bool
- func (o *LoginUserUnauthorized) IsServerError() bool
- func (o *LoginUserUnauthorized) IsSuccess() bool
- func (o *LoginUserUnauthorized) String() string
- type LogoutUserDefault
- func (o *LogoutUserDefault) Code() int
- func (o *LogoutUserDefault) Error() string
- func (o *LogoutUserDefault) GetPayload() *models.GeneralError
- func (o *LogoutUserDefault) IsClientError() bool
- func (o *LogoutUserDefault) IsCode(code int) bool
- func (o *LogoutUserDefault) IsRedirect() bool
- func (o *LogoutUserDefault) IsServerError() bool
- func (o *LogoutUserDefault) IsSuccess() bool
- func (o *LogoutUserDefault) String() string
- type LogoutUserOK
- func (o *LogoutUserOK) Code() int
- func (o *LogoutUserOK) Error() string
- func (o *LogoutUserOK) GetPayload() *models.GeneralError
- func (o *LogoutUserOK) IsClientError() bool
- func (o *LogoutUserOK) IsCode(code int) bool
- func (o *LogoutUserOK) IsRedirect() bool
- func (o *LogoutUserOK) IsServerError() bool
- func (o *LogoutUserOK) IsSuccess() bool
- func (o *LogoutUserOK) String() string
- type LogoutUserParams
- func (o *LogoutUserParams) SetContext(ctx context.Context)
- func (o *LogoutUserParams) SetDefaults()
- func (o *LogoutUserParams) SetHTTPClient(client *http.Client)
- func (o *LogoutUserParams) SetTimeout(timeout time.Duration)
- func (o *LogoutUserParams) WithContext(ctx context.Context) *LogoutUserParams
- func (o *LogoutUserParams) WithDefaults() *LogoutUserParams
- func (o *LogoutUserParams) WithHTTPClient(client *http.Client) *LogoutUserParams
- func (o *LogoutUserParams) WithTimeout(timeout time.Duration) *LogoutUserParams
- func (o *LogoutUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LogoutUserReader
- type LogoutUserUnauthorized
- func (o *LogoutUserUnauthorized) Code() int
- func (o *LogoutUserUnauthorized) Error() string
- func (o *LogoutUserUnauthorized) GetPayload() *models.GeneralError
- func (o *LogoutUserUnauthorized) IsClientError() bool
- func (o *LogoutUserUnauthorized) IsCode(code int) bool
- func (o *LogoutUserUnauthorized) IsRedirect() bool
- func (o *LogoutUserUnauthorized) IsServerError() bool
- func (o *LogoutUserUnauthorized) IsSuccess() bool
- func (o *LogoutUserUnauthorized) String() string
- type RefreshAuthDefault
- func (o *RefreshAuthDefault) Code() int
- func (o *RefreshAuthDefault) Error() string
- func (o *RefreshAuthDefault) GetPayload() *models.GeneralError
- func (o *RefreshAuthDefault) IsClientError() bool
- func (o *RefreshAuthDefault) IsCode(code int) bool
- func (o *RefreshAuthDefault) IsRedirect() bool
- func (o *RefreshAuthDefault) IsServerError() bool
- func (o *RefreshAuthDefault) IsSuccess() bool
- func (o *RefreshAuthDefault) String() string
- type RefreshAuthOK
- func (o *RefreshAuthOK) Code() int
- func (o *RefreshAuthOK) Error() string
- func (o *RefreshAuthOK) GetPayload() *models.AuthToken
- func (o *RefreshAuthOK) IsClientError() bool
- func (o *RefreshAuthOK) IsCode(code int) bool
- func (o *RefreshAuthOK) IsRedirect() bool
- func (o *RefreshAuthOK) IsServerError() bool
- func (o *RefreshAuthOK) IsSuccess() bool
- func (o *RefreshAuthOK) String() string
- type RefreshAuthParams
- func (o *RefreshAuthParams) SetContext(ctx context.Context)
- func (o *RefreshAuthParams) SetDefaults()
- func (o *RefreshAuthParams) SetHTTPClient(client *http.Client)
- func (o *RefreshAuthParams) SetTimeout(timeout time.Duration)
- func (o *RefreshAuthParams) WithContext(ctx context.Context) *RefreshAuthParams
- func (o *RefreshAuthParams) WithDefaults() *RefreshAuthParams
- func (o *RefreshAuthParams) WithHTTPClient(client *http.Client) *RefreshAuthParams
- func (o *RefreshAuthParams) WithTimeout(timeout time.Duration) *RefreshAuthParams
- func (o *RefreshAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RefreshAuthReader
- type RefreshAuthUnauthorized
- func (o *RefreshAuthUnauthorized) Code() int
- func (o *RefreshAuthUnauthorized) Error() string
- func (o *RefreshAuthUnauthorized) GetPayload() *models.GeneralError
- func (o *RefreshAuthUnauthorized) IsClientError() bool
- func (o *RefreshAuthUnauthorized) IsCode(code int) bool
- func (o *RefreshAuthUnauthorized) IsRedirect() bool
- func (o *RefreshAuthUnauthorized) IsServerError() bool
- func (o *RefreshAuthUnauthorized) IsSuccess() bool
- func (o *RefreshAuthUnauthorized) String() string
- type VerifyAuthDefault
- func (o *VerifyAuthDefault) Code() int
- func (o *VerifyAuthDefault) Error() string
- func (o *VerifyAuthDefault) GetPayload() *models.GeneralError
- func (o *VerifyAuthDefault) IsClientError() bool
- func (o *VerifyAuthDefault) IsCode(code int) bool
- func (o *VerifyAuthDefault) IsRedirect() bool
- func (o *VerifyAuthDefault) IsServerError() bool
- func (o *VerifyAuthDefault) IsSuccess() bool
- func (o *VerifyAuthDefault) String() string
- type VerifyAuthOK
- func (o *VerifyAuthOK) Code() int
- func (o *VerifyAuthOK) Error() string
- func (o *VerifyAuthOK) GetPayload() *models.AuthVerify
- func (o *VerifyAuthOK) IsClientError() bool
- func (o *VerifyAuthOK) IsCode(code int) bool
- func (o *VerifyAuthOK) IsRedirect() bool
- func (o *VerifyAuthOK) IsServerError() bool
- func (o *VerifyAuthOK) IsSuccess() bool
- func (o *VerifyAuthOK) String() string
- type VerifyAuthParams
- func (o *VerifyAuthParams) SetContext(ctx context.Context)
- func (o *VerifyAuthParams) SetDefaults()
- func (o *VerifyAuthParams) SetHTTPClient(client *http.Client)
- func (o *VerifyAuthParams) SetTimeout(timeout time.Duration)
- func (o *VerifyAuthParams) WithContext(ctx context.Context) *VerifyAuthParams
- func (o *VerifyAuthParams) WithDefaults() *VerifyAuthParams
- func (o *VerifyAuthParams) WithHTTPClient(client *http.Client) *VerifyAuthParams
- func (o *VerifyAuthParams) WithTimeout(timeout time.Duration) *VerifyAuthParams
- func (o *VerifyAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VerifyAuthReader
- type VerifyAuthUnauthorized
- func (o *VerifyAuthUnauthorized) Code() int
- func (o *VerifyAuthUnauthorized) Error() string
- func (o *VerifyAuthUnauthorized) GetPayload() *models.GeneralError
- func (o *VerifyAuthUnauthorized) IsClientError() bool
- func (o *VerifyAuthUnauthorized) IsCode(code int) bool
- func (o *VerifyAuthUnauthorized) IsRedirect() bool
- func (o *VerifyAuthUnauthorized) IsServerError() bool
- func (o *VerifyAuthUnauthorized) IsSuccess() bool
- func (o *VerifyAuthUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for auth API
func (*Client) ExternalCallback ¶
func (a *Client) ExternalCallback(params *ExternalCallbackParams, opts ...ClientOption) error
ExternalCallback callbacks for external authentication
func (*Client) ExternalInitialize ¶
func (a *Client) ExternalInitialize(params *ExternalInitializeParams, opts ...ClientOption) error
ExternalInitialize initializes the external authentication
func (*Client) LoginUser ¶
func (a *Client) LoginUser(params *LoginUserParams, opts ...ClientOption) (*LoginUserOK, error)
LoginUser authenticates an user by credentials
func (*Client) LogoutUser ¶
func (a *Client) LogoutUser(params *LogoutUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LogoutUserOK, error)
LogoutUser logouts an user authenticated by cookie
func (*Client) RefreshAuth ¶
func (a *Client) RefreshAuth(params *RefreshAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefreshAuthOK, error)
RefreshAuth refreshes an auth token before it expires
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) VerifyAuth ¶
func (a *Client) VerifyAuth(params *VerifyAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyAuthOK, error)
VerifyAuth verifies validity for an authentication token
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ExternalCallback(params *ExternalCallbackParams, opts ...ClientOption) error ExternalInitialize(params *ExternalInitializeParams, opts ...ClientOption) error LoginUser(params *LoginUserParams, opts ...ClientOption) (*LoginUserOK, error) LogoutUser(params *LogoutUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LogoutUserOK, error) RefreshAuth(params *RefreshAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefreshAuthOK, error) VerifyAuth(params *VerifyAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyAuthOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new auth API client.
type ExternalCallbackDefault ¶
type ExternalCallbackDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
ExternalCallbackDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewExternalCallbackDefault ¶
func NewExternalCallbackDefault(code int) *ExternalCallbackDefault
NewExternalCallbackDefault creates a ExternalCallbackDefault with default headers values
func (*ExternalCallbackDefault) Code ¶
func (o *ExternalCallbackDefault) Code() int
Code gets the status code for the external callback default response
func (*ExternalCallbackDefault) Error ¶
func (o *ExternalCallbackDefault) Error() string
func (*ExternalCallbackDefault) GetPayload ¶
func (o *ExternalCallbackDefault) GetPayload() *models.GeneralError
func (*ExternalCallbackDefault) IsClientError ¶
func (o *ExternalCallbackDefault) IsClientError() bool
IsClientError returns true when this external callback default response has a 4xx status code
func (*ExternalCallbackDefault) IsCode ¶
func (o *ExternalCallbackDefault) IsCode(code int) bool
IsCode returns true when this external callback default response a status code equal to that given
func (*ExternalCallbackDefault) IsRedirect ¶
func (o *ExternalCallbackDefault) IsRedirect() bool
IsRedirect returns true when this external callback default response has a 3xx status code
func (*ExternalCallbackDefault) IsServerError ¶
func (o *ExternalCallbackDefault) IsServerError() bool
IsServerError returns true when this external callback default response has a 5xx status code
func (*ExternalCallbackDefault) IsSuccess ¶
func (o *ExternalCallbackDefault) IsSuccess() bool
IsSuccess returns true when this external callback default response has a 2xx status code
func (*ExternalCallbackDefault) String ¶
func (o *ExternalCallbackDefault) String() string
type ExternalCallbackNotFound ¶
type ExternalCallbackNotFound struct {
Payload *models.GeneralError
}
ExternalCallbackNotFound describes a response with status code 404, with default header values.
Provider identifier is unknown
func NewExternalCallbackNotFound ¶
func NewExternalCallbackNotFound() *ExternalCallbackNotFound
NewExternalCallbackNotFound creates a ExternalCallbackNotFound with default headers values
func (*ExternalCallbackNotFound) Code ¶
func (o *ExternalCallbackNotFound) Code() int
Code gets the status code for the external callback not found response
func (*ExternalCallbackNotFound) Error ¶
func (o *ExternalCallbackNotFound) Error() string
func (*ExternalCallbackNotFound) GetPayload ¶
func (o *ExternalCallbackNotFound) GetPayload() *models.GeneralError
func (*ExternalCallbackNotFound) IsClientError ¶
func (o *ExternalCallbackNotFound) IsClientError() bool
IsClientError returns true when this external callback not found response has a 4xx status code
func (*ExternalCallbackNotFound) IsCode ¶
func (o *ExternalCallbackNotFound) IsCode(code int) bool
IsCode returns true when this external callback not found response a status code equal to that given
func (*ExternalCallbackNotFound) IsRedirect ¶
func (o *ExternalCallbackNotFound) IsRedirect() bool
IsRedirect returns true when this external callback not found response has a 3xx status code
func (*ExternalCallbackNotFound) IsServerError ¶
func (o *ExternalCallbackNotFound) IsServerError() bool
IsServerError returns true when this external callback not found response has a 5xx status code
func (*ExternalCallbackNotFound) IsSuccess ¶
func (o *ExternalCallbackNotFound) IsSuccess() bool
IsSuccess returns true when this external callback not found response has a 2xx status code
func (*ExternalCallbackNotFound) String ¶
func (o *ExternalCallbackNotFound) String() string
type ExternalCallbackParams ¶
type ExternalCallbackParams struct { /* Provider. An identifier for the auth provider */ Provider string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ExternalCallbackParams contains all the parameters to send to the API endpoint
for the external callback operation. Typically these are written to a http.Request.
func NewExternalCallbackParams ¶
func NewExternalCallbackParams() *ExternalCallbackParams
NewExternalCallbackParams creates a new ExternalCallbackParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewExternalCallbackParamsWithContext ¶
func NewExternalCallbackParamsWithContext(ctx context.Context) *ExternalCallbackParams
NewExternalCallbackParamsWithContext creates a new ExternalCallbackParams object with the ability to set a context for a request.
func NewExternalCallbackParamsWithHTTPClient ¶
func NewExternalCallbackParamsWithHTTPClient(client *http.Client) *ExternalCallbackParams
NewExternalCallbackParamsWithHTTPClient creates a new ExternalCallbackParams object with the ability to set a custom HTTPClient for a request.
func NewExternalCallbackParamsWithTimeout ¶
func NewExternalCallbackParamsWithTimeout(timeout time.Duration) *ExternalCallbackParams
NewExternalCallbackParamsWithTimeout creates a new ExternalCallbackParams object with the ability to set a timeout on a request.
func (*ExternalCallbackParams) SetContext ¶
func (o *ExternalCallbackParams) SetContext(ctx context.Context)
SetContext adds the context to the external callback params
func (*ExternalCallbackParams) SetDefaults ¶
func (o *ExternalCallbackParams) SetDefaults()
SetDefaults hydrates default values in the external callback params (not the query body).
All values with no default are reset to their zero value.
func (*ExternalCallbackParams) SetHTTPClient ¶
func (o *ExternalCallbackParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the external callback params
func (*ExternalCallbackParams) SetProvider ¶
func (o *ExternalCallbackParams) SetProvider(provider string)
SetProvider adds the provider to the external callback params
func (*ExternalCallbackParams) SetTimeout ¶
func (o *ExternalCallbackParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the external callback params
func (*ExternalCallbackParams) WithContext ¶
func (o *ExternalCallbackParams) WithContext(ctx context.Context) *ExternalCallbackParams
WithContext adds the context to the external callback params
func (*ExternalCallbackParams) WithDefaults ¶
func (o *ExternalCallbackParams) WithDefaults() *ExternalCallbackParams
WithDefaults hydrates default values in the external callback params (not the query body).
All values with no default are reset to their zero value.
func (*ExternalCallbackParams) WithHTTPClient ¶
func (o *ExternalCallbackParams) WithHTTPClient(client *http.Client) *ExternalCallbackParams
WithHTTPClient adds the HTTPClient to the external callback params
func (*ExternalCallbackParams) WithProvider ¶
func (o *ExternalCallbackParams) WithProvider(provider string) *ExternalCallbackParams
WithProvider adds the provider to the external callback params
func (*ExternalCallbackParams) WithTimeout ¶
func (o *ExternalCallbackParams) WithTimeout(timeout time.Duration) *ExternalCallbackParams
WithTimeout adds the timeout to the external callback params
func (*ExternalCallbackParams) WriteToRequest ¶
func (o *ExternalCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ExternalCallbackPreconditionFailed ¶
type ExternalCallbackPreconditionFailed struct {
Payload *models.GeneralError
}
ExternalCallbackPreconditionFailed describes a response with status code 412, with default header values.
Failed to initialize account
func NewExternalCallbackPreconditionFailed ¶
func NewExternalCallbackPreconditionFailed() *ExternalCallbackPreconditionFailed
NewExternalCallbackPreconditionFailed creates a ExternalCallbackPreconditionFailed with default headers values
func (*ExternalCallbackPreconditionFailed) Code ¶
func (o *ExternalCallbackPreconditionFailed) Code() int
Code gets the status code for the external callback precondition failed response
func (*ExternalCallbackPreconditionFailed) Error ¶
func (o *ExternalCallbackPreconditionFailed) Error() string
func (*ExternalCallbackPreconditionFailed) GetPayload ¶
func (o *ExternalCallbackPreconditionFailed) GetPayload() *models.GeneralError
func (*ExternalCallbackPreconditionFailed) IsClientError ¶
func (o *ExternalCallbackPreconditionFailed) IsClientError() bool
IsClientError returns true when this external callback precondition failed response has a 4xx status code
func (*ExternalCallbackPreconditionFailed) IsCode ¶
func (o *ExternalCallbackPreconditionFailed) IsCode(code int) bool
IsCode returns true when this external callback precondition failed response a status code equal to that given
func (*ExternalCallbackPreconditionFailed) IsRedirect ¶
func (o *ExternalCallbackPreconditionFailed) IsRedirect() bool
IsRedirect returns true when this external callback precondition failed response has a 3xx status code
func (*ExternalCallbackPreconditionFailed) IsServerError ¶
func (o *ExternalCallbackPreconditionFailed) IsServerError() bool
IsServerError returns true when this external callback precondition failed response has a 5xx status code
func (*ExternalCallbackPreconditionFailed) IsSuccess ¶
func (o *ExternalCallbackPreconditionFailed) IsSuccess() bool
IsSuccess returns true when this external callback precondition failed response has a 2xx status code
func (*ExternalCallbackPreconditionFailed) String ¶
func (o *ExternalCallbackPreconditionFailed) String() string
type ExternalCallbackReader ¶
type ExternalCallbackReader struct {
// contains filtered or unexported fields
}
ExternalCallbackReader is a Reader for the ExternalCallback structure.
func (*ExternalCallbackReader) ReadResponse ¶
func (o *ExternalCallbackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ExternalCallbackTemporaryRedirect ¶
type ExternalCallbackTemporaryRedirect struct { }
ExternalCallbackTemporaryRedirect describes a response with status code 307, with default header values.
Redirect to root of the application
func NewExternalCallbackTemporaryRedirect ¶
func NewExternalCallbackTemporaryRedirect() *ExternalCallbackTemporaryRedirect
NewExternalCallbackTemporaryRedirect creates a ExternalCallbackTemporaryRedirect with default headers values
func (*ExternalCallbackTemporaryRedirect) Code ¶
func (o *ExternalCallbackTemporaryRedirect) Code() int
Code gets the status code for the external callback temporary redirect response
func (*ExternalCallbackTemporaryRedirect) Error ¶
func (o *ExternalCallbackTemporaryRedirect) Error() string
func (*ExternalCallbackTemporaryRedirect) IsClientError ¶
func (o *ExternalCallbackTemporaryRedirect) IsClientError() bool
IsClientError returns true when this external callback temporary redirect response has a 4xx status code
func (*ExternalCallbackTemporaryRedirect) IsCode ¶
func (o *ExternalCallbackTemporaryRedirect) IsCode(code int) bool
IsCode returns true when this external callback temporary redirect response a status code equal to that given
func (*ExternalCallbackTemporaryRedirect) IsRedirect ¶
func (o *ExternalCallbackTemporaryRedirect) IsRedirect() bool
IsRedirect returns true when this external callback temporary redirect response has a 3xx status code
func (*ExternalCallbackTemporaryRedirect) IsServerError ¶
func (o *ExternalCallbackTemporaryRedirect) IsServerError() bool
IsServerError returns true when this external callback temporary redirect response has a 5xx status code
func (*ExternalCallbackTemporaryRedirect) IsSuccess ¶
func (o *ExternalCallbackTemporaryRedirect) IsSuccess() bool
IsSuccess returns true when this external callback temporary redirect response has a 2xx status code
func (*ExternalCallbackTemporaryRedirect) String ¶
func (o *ExternalCallbackTemporaryRedirect) String() string
type ExternalInitializeDefault ¶
type ExternalInitializeDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
ExternalInitializeDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewExternalInitializeDefault ¶
func NewExternalInitializeDefault(code int) *ExternalInitializeDefault
NewExternalInitializeDefault creates a ExternalInitializeDefault with default headers values
func (*ExternalInitializeDefault) Code ¶
func (o *ExternalInitializeDefault) Code() int
Code gets the status code for the external initialize default response
func (*ExternalInitializeDefault) Error ¶
func (o *ExternalInitializeDefault) Error() string
func (*ExternalInitializeDefault) GetPayload ¶
func (o *ExternalInitializeDefault) GetPayload() *models.GeneralError
func (*ExternalInitializeDefault) IsClientError ¶
func (o *ExternalInitializeDefault) IsClientError() bool
IsClientError returns true when this external initialize default response has a 4xx status code
func (*ExternalInitializeDefault) IsCode ¶
func (o *ExternalInitializeDefault) IsCode(code int) bool
IsCode returns true when this external initialize default response a status code equal to that given
func (*ExternalInitializeDefault) IsRedirect ¶
func (o *ExternalInitializeDefault) IsRedirect() bool
IsRedirect returns true when this external initialize default response has a 3xx status code
func (*ExternalInitializeDefault) IsServerError ¶
func (o *ExternalInitializeDefault) IsServerError() bool
IsServerError returns true when this external initialize default response has a 5xx status code
func (*ExternalInitializeDefault) IsSuccess ¶
func (o *ExternalInitializeDefault) IsSuccess() bool
IsSuccess returns true when this external initialize default response has a 2xx status code
func (*ExternalInitializeDefault) String ¶
func (o *ExternalInitializeDefault) String() string
type ExternalInitializeInternalServerError ¶
type ExternalInitializeInternalServerError struct {
Payload *models.GeneralError
}
ExternalInitializeInternalServerError describes a response with status code 500, with default header values.
Failed to initialze the provider
func NewExternalInitializeInternalServerError ¶
func NewExternalInitializeInternalServerError() *ExternalInitializeInternalServerError
NewExternalInitializeInternalServerError creates a ExternalInitializeInternalServerError with default headers values
func (*ExternalInitializeInternalServerError) Code ¶
func (o *ExternalInitializeInternalServerError) Code() int
Code gets the status code for the external initialize internal server error response
func (*ExternalInitializeInternalServerError) Error ¶
func (o *ExternalInitializeInternalServerError) Error() string
func (*ExternalInitializeInternalServerError) GetPayload ¶
func (o *ExternalInitializeInternalServerError) GetPayload() *models.GeneralError
func (*ExternalInitializeInternalServerError) IsClientError ¶
func (o *ExternalInitializeInternalServerError) IsClientError() bool
IsClientError returns true when this external initialize internal server error response has a 4xx status code
func (*ExternalInitializeInternalServerError) IsCode ¶
func (o *ExternalInitializeInternalServerError) IsCode(code int) bool
IsCode returns true when this external initialize internal server error response a status code equal to that given
func (*ExternalInitializeInternalServerError) IsRedirect ¶
func (o *ExternalInitializeInternalServerError) IsRedirect() bool
IsRedirect returns true when this external initialize internal server error response has a 3xx status code
func (*ExternalInitializeInternalServerError) IsServerError ¶
func (o *ExternalInitializeInternalServerError) IsServerError() bool
IsServerError returns true when this external initialize internal server error response has a 5xx status code
func (*ExternalInitializeInternalServerError) IsSuccess ¶
func (o *ExternalInitializeInternalServerError) IsSuccess() bool
IsSuccess returns true when this external initialize internal server error response has a 2xx status code
func (*ExternalInitializeInternalServerError) String ¶
func (o *ExternalInitializeInternalServerError) String() string
type ExternalInitializeNotFound ¶
type ExternalInitializeNotFound struct {
Payload *models.GeneralError
}
ExternalInitializeNotFound describes a response with status code 404, with default header values.
Provider identifier is unknown
func NewExternalInitializeNotFound ¶
func NewExternalInitializeNotFound() *ExternalInitializeNotFound
NewExternalInitializeNotFound creates a ExternalInitializeNotFound with default headers values
func (*ExternalInitializeNotFound) Code ¶
func (o *ExternalInitializeNotFound) Code() int
Code gets the status code for the external initialize not found response
func (*ExternalInitializeNotFound) Error ¶
func (o *ExternalInitializeNotFound) Error() string
func (*ExternalInitializeNotFound) GetPayload ¶
func (o *ExternalInitializeNotFound) GetPayload() *models.GeneralError
func (*ExternalInitializeNotFound) IsClientError ¶
func (o *ExternalInitializeNotFound) IsClientError() bool
IsClientError returns true when this external initialize not found response has a 4xx status code
func (*ExternalInitializeNotFound) IsCode ¶
func (o *ExternalInitializeNotFound) IsCode(code int) bool
IsCode returns true when this external initialize not found response a status code equal to that given
func (*ExternalInitializeNotFound) IsRedirect ¶
func (o *ExternalInitializeNotFound) IsRedirect() bool
IsRedirect returns true when this external initialize not found response has a 3xx status code
func (*ExternalInitializeNotFound) IsServerError ¶
func (o *ExternalInitializeNotFound) IsServerError() bool
IsServerError returns true when this external initialize not found response has a 5xx status code
func (*ExternalInitializeNotFound) IsSuccess ¶
func (o *ExternalInitializeNotFound) IsSuccess() bool
IsSuccess returns true when this external initialize not found response has a 2xx status code
func (*ExternalInitializeNotFound) String ¶
func (o *ExternalInitializeNotFound) String() string
type ExternalInitializeParams ¶
type ExternalInitializeParams struct { /* Provider. An identifier for the auth provider */ Provider string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ExternalInitializeParams contains all the parameters to send to the API endpoint
for the external initialize operation. Typically these are written to a http.Request.
func NewExternalInitializeParams ¶
func NewExternalInitializeParams() *ExternalInitializeParams
NewExternalInitializeParams creates a new ExternalInitializeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewExternalInitializeParamsWithContext ¶
func NewExternalInitializeParamsWithContext(ctx context.Context) *ExternalInitializeParams
NewExternalInitializeParamsWithContext creates a new ExternalInitializeParams object with the ability to set a context for a request.
func NewExternalInitializeParamsWithHTTPClient ¶
func NewExternalInitializeParamsWithHTTPClient(client *http.Client) *ExternalInitializeParams
NewExternalInitializeParamsWithHTTPClient creates a new ExternalInitializeParams object with the ability to set a custom HTTPClient for a request.
func NewExternalInitializeParamsWithTimeout ¶
func NewExternalInitializeParamsWithTimeout(timeout time.Duration) *ExternalInitializeParams
NewExternalInitializeParamsWithTimeout creates a new ExternalInitializeParams object with the ability to set a timeout on a request.
func (*ExternalInitializeParams) SetContext ¶
func (o *ExternalInitializeParams) SetContext(ctx context.Context)
SetContext adds the context to the external initialize params
func (*ExternalInitializeParams) SetDefaults ¶
func (o *ExternalInitializeParams) SetDefaults()
SetDefaults hydrates default values in the external initialize params (not the query body).
All values with no default are reset to their zero value.
func (*ExternalInitializeParams) SetHTTPClient ¶
func (o *ExternalInitializeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the external initialize params
func (*ExternalInitializeParams) SetProvider ¶
func (o *ExternalInitializeParams) SetProvider(provider string)
SetProvider adds the provider to the external initialize params
func (*ExternalInitializeParams) SetTimeout ¶
func (o *ExternalInitializeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the external initialize params
func (*ExternalInitializeParams) WithContext ¶
func (o *ExternalInitializeParams) WithContext(ctx context.Context) *ExternalInitializeParams
WithContext adds the context to the external initialize params
func (*ExternalInitializeParams) WithDefaults ¶
func (o *ExternalInitializeParams) WithDefaults() *ExternalInitializeParams
WithDefaults hydrates default values in the external initialize params (not the query body).
All values with no default are reset to their zero value.
func (*ExternalInitializeParams) WithHTTPClient ¶
func (o *ExternalInitializeParams) WithHTTPClient(client *http.Client) *ExternalInitializeParams
WithHTTPClient adds the HTTPClient to the external initialize params
func (*ExternalInitializeParams) WithProvider ¶
func (o *ExternalInitializeParams) WithProvider(provider string) *ExternalInitializeParams
WithProvider adds the provider to the external initialize params
func (*ExternalInitializeParams) WithTimeout ¶
func (o *ExternalInitializeParams) WithTimeout(timeout time.Duration) *ExternalInitializeParams
WithTimeout adds the timeout to the external initialize params
func (*ExternalInitializeParams) WriteToRequest ¶
func (o *ExternalInitializeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ExternalInitializeReader ¶
type ExternalInitializeReader struct {
// contains filtered or unexported fields
}
ExternalInitializeReader is a Reader for the ExternalInitialize structure.
func (*ExternalInitializeReader) ReadResponse ¶
func (o *ExternalInitializeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ExternalInitializeTemporaryRedirect ¶
type ExternalInitializeTemporaryRedirect struct { }
ExternalInitializeTemporaryRedirect describes a response with status code 307, with default header values.
Redirect to external auth provider
func NewExternalInitializeTemporaryRedirect ¶
func NewExternalInitializeTemporaryRedirect() *ExternalInitializeTemporaryRedirect
NewExternalInitializeTemporaryRedirect creates a ExternalInitializeTemporaryRedirect with default headers values
func (*ExternalInitializeTemporaryRedirect) Code ¶
func (o *ExternalInitializeTemporaryRedirect) Code() int
Code gets the status code for the external initialize temporary redirect response
func (*ExternalInitializeTemporaryRedirect) Error ¶
func (o *ExternalInitializeTemporaryRedirect) Error() string
func (*ExternalInitializeTemporaryRedirect) IsClientError ¶
func (o *ExternalInitializeTemporaryRedirect) IsClientError() bool
IsClientError returns true when this external initialize temporary redirect response has a 4xx status code
func (*ExternalInitializeTemporaryRedirect) IsCode ¶
func (o *ExternalInitializeTemporaryRedirect) IsCode(code int) bool
IsCode returns true when this external initialize temporary redirect response a status code equal to that given
func (*ExternalInitializeTemporaryRedirect) IsRedirect ¶
func (o *ExternalInitializeTemporaryRedirect) IsRedirect() bool
IsRedirect returns true when this external initialize temporary redirect response has a 3xx status code
func (*ExternalInitializeTemporaryRedirect) IsServerError ¶
func (o *ExternalInitializeTemporaryRedirect) IsServerError() bool
IsServerError returns true when this external initialize temporary redirect response has a 5xx status code
func (*ExternalInitializeTemporaryRedirect) IsSuccess ¶
func (o *ExternalInitializeTemporaryRedirect) IsSuccess() bool
IsSuccess returns true when this external initialize temporary redirect response has a 2xx status code
func (*ExternalInitializeTemporaryRedirect) String ¶
func (o *ExternalInitializeTemporaryRedirect) String() string
type LoginUserDefault ¶
type LoginUserDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
LoginUserDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewLoginUserDefault ¶
func NewLoginUserDefault(code int) *LoginUserDefault
NewLoginUserDefault creates a LoginUserDefault with default headers values
func (*LoginUserDefault) Code ¶
func (o *LoginUserDefault) Code() int
Code gets the status code for the login user default response
func (*LoginUserDefault) Error ¶
func (o *LoginUserDefault) Error() string
func (*LoginUserDefault) GetPayload ¶
func (o *LoginUserDefault) GetPayload() *models.GeneralError
func (*LoginUserDefault) IsClientError ¶
func (o *LoginUserDefault) IsClientError() bool
IsClientError returns true when this login user default response has a 4xx status code
func (*LoginUserDefault) IsCode ¶
func (o *LoginUserDefault) IsCode(code int) bool
IsCode returns true when this login user default response a status code equal to that given
func (*LoginUserDefault) IsRedirect ¶
func (o *LoginUserDefault) IsRedirect() bool
IsRedirect returns true when this login user default response has a 3xx status code
func (*LoginUserDefault) IsServerError ¶
func (o *LoginUserDefault) IsServerError() bool
IsServerError returns true when this login user default response has a 5xx status code
func (*LoginUserDefault) IsSuccess ¶
func (o *LoginUserDefault) IsSuccess() bool
IsSuccess returns true when this login user default response has a 2xx status code
func (*LoginUserDefault) String ¶
func (o *LoginUserDefault) String() string
type LoginUserOK ¶
LoginUserOK describes a response with status code 200, with default header values.
A generated token with expire
func NewLoginUserOK ¶
func NewLoginUserOK() *LoginUserOK
NewLoginUserOK creates a LoginUserOK with default headers values
func (*LoginUserOK) Code ¶
func (o *LoginUserOK) Code() int
Code gets the status code for the login user o k response
func (*LoginUserOK) Error ¶
func (o *LoginUserOK) Error() string
func (*LoginUserOK) GetPayload ¶
func (o *LoginUserOK) GetPayload() *models.AuthToken
func (*LoginUserOK) IsClientError ¶
func (o *LoginUserOK) IsClientError() bool
IsClientError returns true when this login user o k response has a 4xx status code
func (*LoginUserOK) IsCode ¶
func (o *LoginUserOK) IsCode(code int) bool
IsCode returns true when this login user o k response a status code equal to that given
func (*LoginUserOK) IsRedirect ¶
func (o *LoginUserOK) IsRedirect() bool
IsRedirect returns true when this login user o k response has a 3xx status code
func (*LoginUserOK) IsServerError ¶
func (o *LoginUserOK) IsServerError() bool
IsServerError returns true when this login user o k response has a 5xx status code
func (*LoginUserOK) IsSuccess ¶
func (o *LoginUserOK) IsSuccess() bool
IsSuccess returns true when this login user o k response has a 2xx status code
func (*LoginUserOK) String ¶
func (o *LoginUserOK) String() string
type LoginUserParams ¶
type LoginUserParams struct { /* AuthLogin. The credentials to authenticate */ AuthLogin *models.AuthLogin Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LoginUserParams contains all the parameters to send to the API endpoint
for the login user operation. Typically these are written to a http.Request.
func NewLoginUserParams ¶
func NewLoginUserParams() *LoginUserParams
NewLoginUserParams creates a new LoginUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLoginUserParamsWithContext ¶
func NewLoginUserParamsWithContext(ctx context.Context) *LoginUserParams
NewLoginUserParamsWithContext creates a new LoginUserParams object with the ability to set a context for a request.
func NewLoginUserParamsWithHTTPClient ¶
func NewLoginUserParamsWithHTTPClient(client *http.Client) *LoginUserParams
NewLoginUserParamsWithHTTPClient creates a new LoginUserParams object with the ability to set a custom HTTPClient for a request.
func NewLoginUserParamsWithTimeout ¶
func NewLoginUserParamsWithTimeout(timeout time.Duration) *LoginUserParams
NewLoginUserParamsWithTimeout creates a new LoginUserParams object with the ability to set a timeout on a request.
func (*LoginUserParams) SetAuthLogin ¶
func (o *LoginUserParams) SetAuthLogin(authLogin *models.AuthLogin)
SetAuthLogin adds the authLogin to the login user params
func (*LoginUserParams) SetContext ¶
func (o *LoginUserParams) SetContext(ctx context.Context)
SetContext adds the context to the login user params
func (*LoginUserParams) SetDefaults ¶
func (o *LoginUserParams) SetDefaults()
SetDefaults hydrates default values in the login user params (not the query body).
All values with no default are reset to their zero value.
func (*LoginUserParams) SetHTTPClient ¶
func (o *LoginUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the login user params
func (*LoginUserParams) SetTimeout ¶
func (o *LoginUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the login user params
func (*LoginUserParams) WithAuthLogin ¶
func (o *LoginUserParams) WithAuthLogin(authLogin *models.AuthLogin) *LoginUserParams
WithAuthLogin adds the authLogin to the login user params
func (*LoginUserParams) WithContext ¶
func (o *LoginUserParams) WithContext(ctx context.Context) *LoginUserParams
WithContext adds the context to the login user params
func (*LoginUserParams) WithDefaults ¶
func (o *LoginUserParams) WithDefaults() *LoginUserParams
WithDefaults hydrates default values in the login user params (not the query body).
All values with no default are reset to their zero value.
func (*LoginUserParams) WithHTTPClient ¶
func (o *LoginUserParams) WithHTTPClient(client *http.Client) *LoginUserParams
WithHTTPClient adds the HTTPClient to the login user params
func (*LoginUserParams) WithTimeout ¶
func (o *LoginUserParams) WithTimeout(timeout time.Duration) *LoginUserParams
WithTimeout adds the timeout to the login user params
func (*LoginUserParams) WriteToRequest ¶
func (o *LoginUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LoginUserReader ¶
type LoginUserReader struct {
// contains filtered or unexported fields
}
LoginUserReader is a Reader for the LoginUser structure.
func (*LoginUserReader) ReadResponse ¶
func (o *LoginUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LoginUserUnauthorized ¶
type LoginUserUnauthorized struct {
}LoginUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized if wrong credentials
func NewLoginUserUnauthorized ¶
func NewLoginUserUnauthorized() *LoginUserUnauthorized
NewLoginUserUnauthorized creates a LoginUserUnauthorized with default headers values
func (*LoginUserUnauthorized) Code ¶
func (o *LoginUserUnauthorized) Code() int
Code gets the status code for the login user unauthorized response
func (*LoginUserUnauthorized) Error ¶
func (o *LoginUserUnauthorized) Error() string
func (*LoginUserUnauthorized) GetPayload ¶
func (o *LoginUserUnauthorized) GetPayload() *models.GeneralError
func (*LoginUserUnauthorized) IsClientError ¶
func (o *LoginUserUnauthorized) IsClientError() bool
IsClientError returns true when this login user unauthorized response has a 4xx status code
func (*LoginUserUnauthorized) IsCode ¶
func (o *LoginUserUnauthorized) IsCode(code int) bool
IsCode returns true when this login user unauthorized response a status code equal to that given
func (*LoginUserUnauthorized) IsRedirect ¶
func (o *LoginUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this login user unauthorized response has a 3xx status code
func (*LoginUserUnauthorized) IsServerError ¶
func (o *LoginUserUnauthorized) IsServerError() bool
IsServerError returns true when this login user unauthorized response has a 5xx status code
func (*LoginUserUnauthorized) IsSuccess ¶
func (o *LoginUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this login user unauthorized response has a 2xx status code
func (*LoginUserUnauthorized) String ¶
func (o *LoginUserUnauthorized) String() string
type LogoutUserDefault ¶
type LogoutUserDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
LogoutUserDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewLogoutUserDefault ¶
func NewLogoutUserDefault(code int) *LogoutUserDefault
NewLogoutUserDefault creates a LogoutUserDefault with default headers values
func (*LogoutUserDefault) Code ¶
func (o *LogoutUserDefault) Code() int
Code gets the status code for the logout user default response
func (*LogoutUserDefault) Error ¶
func (o *LogoutUserDefault) Error() string
func (*LogoutUserDefault) GetPayload ¶
func (o *LogoutUserDefault) GetPayload() *models.GeneralError
func (*LogoutUserDefault) IsClientError ¶
func (o *LogoutUserDefault) IsClientError() bool
IsClientError returns true when this logout user default response has a 4xx status code
func (*LogoutUserDefault) IsCode ¶
func (o *LogoutUserDefault) IsCode(code int) bool
IsCode returns true when this logout user default response a status code equal to that given
func (*LogoutUserDefault) IsRedirect ¶
func (o *LogoutUserDefault) IsRedirect() bool
IsRedirect returns true when this logout user default response has a 3xx status code
func (*LogoutUserDefault) IsServerError ¶
func (o *LogoutUserDefault) IsServerError() bool
IsServerError returns true when this logout user default response has a 5xx status code
func (*LogoutUserDefault) IsSuccess ¶
func (o *LogoutUserDefault) IsSuccess() bool
IsSuccess returns true when this logout user default response has a 2xx status code
func (*LogoutUserDefault) String ¶
func (o *LogoutUserDefault) String() string
type LogoutUserOK ¶
type LogoutUserOK struct {
Payload *models.GeneralError
}
LogoutUserOK describes a response with status code 200, with default header values.
Successfully logout of the user
func NewLogoutUserOK ¶
func NewLogoutUserOK() *LogoutUserOK
NewLogoutUserOK creates a LogoutUserOK with default headers values
func (*LogoutUserOK) Code ¶
func (o *LogoutUserOK) Code() int
Code gets the status code for the logout user o k response
func (*LogoutUserOK) Error ¶
func (o *LogoutUserOK) Error() string
func (*LogoutUserOK) GetPayload ¶
func (o *LogoutUserOK) GetPayload() *models.GeneralError
func (*LogoutUserOK) IsClientError ¶
func (o *LogoutUserOK) IsClientError() bool
IsClientError returns true when this logout user o k response has a 4xx status code
func (*LogoutUserOK) IsCode ¶
func (o *LogoutUserOK) IsCode(code int) bool
IsCode returns true when this logout user o k response a status code equal to that given
func (*LogoutUserOK) IsRedirect ¶
func (o *LogoutUserOK) IsRedirect() bool
IsRedirect returns true when this logout user o k response has a 3xx status code
func (*LogoutUserOK) IsServerError ¶
func (o *LogoutUserOK) IsServerError() bool
IsServerError returns true when this logout user o k response has a 5xx status code
func (*LogoutUserOK) IsSuccess ¶
func (o *LogoutUserOK) IsSuccess() bool
IsSuccess returns true when this logout user o k response has a 2xx status code
func (*LogoutUserOK) String ¶
func (o *LogoutUserOK) String() string
type LogoutUserParams ¶
type LogoutUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LogoutUserParams contains all the parameters to send to the API endpoint
for the logout user operation. Typically these are written to a http.Request.
func NewLogoutUserParams ¶
func NewLogoutUserParams() *LogoutUserParams
NewLogoutUserParams creates a new LogoutUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLogoutUserParamsWithContext ¶
func NewLogoutUserParamsWithContext(ctx context.Context) *LogoutUserParams
NewLogoutUserParamsWithContext creates a new LogoutUserParams object with the ability to set a context for a request.
func NewLogoutUserParamsWithHTTPClient ¶
func NewLogoutUserParamsWithHTTPClient(client *http.Client) *LogoutUserParams
NewLogoutUserParamsWithHTTPClient creates a new LogoutUserParams object with the ability to set a custom HTTPClient for a request.
func NewLogoutUserParamsWithTimeout ¶
func NewLogoutUserParamsWithTimeout(timeout time.Duration) *LogoutUserParams
NewLogoutUserParamsWithTimeout creates a new LogoutUserParams object with the ability to set a timeout on a request.
func (*LogoutUserParams) SetContext ¶
func (o *LogoutUserParams) SetContext(ctx context.Context)
SetContext adds the context to the logout user params
func (*LogoutUserParams) SetDefaults ¶
func (o *LogoutUserParams) SetDefaults()
SetDefaults hydrates default values in the logout user params (not the query body).
All values with no default are reset to their zero value.
func (*LogoutUserParams) SetHTTPClient ¶
func (o *LogoutUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the logout user params
func (*LogoutUserParams) SetTimeout ¶
func (o *LogoutUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the logout user params
func (*LogoutUserParams) WithContext ¶
func (o *LogoutUserParams) WithContext(ctx context.Context) *LogoutUserParams
WithContext adds the context to the logout user params
func (*LogoutUserParams) WithDefaults ¶
func (o *LogoutUserParams) WithDefaults() *LogoutUserParams
WithDefaults hydrates default values in the logout user params (not the query body).
All values with no default are reset to their zero value.
func (*LogoutUserParams) WithHTTPClient ¶
func (o *LogoutUserParams) WithHTTPClient(client *http.Client) *LogoutUserParams
WithHTTPClient adds the HTTPClient to the logout user params
func (*LogoutUserParams) WithTimeout ¶
func (o *LogoutUserParams) WithTimeout(timeout time.Duration) *LogoutUserParams
WithTimeout adds the timeout to the logout user params
func (*LogoutUserParams) WriteToRequest ¶
func (o *LogoutUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LogoutUserReader ¶
type LogoutUserReader struct {
// contains filtered or unexported fields
}
LogoutUserReader is a Reader for the LogoutUser structure.
func (*LogoutUserReader) ReadResponse ¶
func (o *LogoutUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LogoutUserUnauthorized ¶
type LogoutUserUnauthorized struct {
}LogoutUserUnauthorized describes a response with status code 401, with default header values.
User is not even authenticated
func NewLogoutUserUnauthorized ¶
func NewLogoutUserUnauthorized() *LogoutUserUnauthorized
NewLogoutUserUnauthorized creates a LogoutUserUnauthorized with default headers values
func (*LogoutUserUnauthorized) Code ¶
func (o *LogoutUserUnauthorized) Code() int
Code gets the status code for the logout user unauthorized response
func (*LogoutUserUnauthorized) Error ¶
func (o *LogoutUserUnauthorized) Error() string
func (*LogoutUserUnauthorized) GetPayload ¶
func (o *LogoutUserUnauthorized) GetPayload() *models.GeneralError
func (*LogoutUserUnauthorized) IsClientError ¶
func (o *LogoutUserUnauthorized) IsClientError() bool
IsClientError returns true when this logout user unauthorized response has a 4xx status code
func (*LogoutUserUnauthorized) IsCode ¶
func (o *LogoutUserUnauthorized) IsCode(code int) bool
IsCode returns true when this logout user unauthorized response a status code equal to that given
func (*LogoutUserUnauthorized) IsRedirect ¶
func (o *LogoutUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this logout user unauthorized response has a 3xx status code
func (*LogoutUserUnauthorized) IsServerError ¶
func (o *LogoutUserUnauthorized) IsServerError() bool
IsServerError returns true when this logout user unauthorized response has a 5xx status code
func (*LogoutUserUnauthorized) IsSuccess ¶
func (o *LogoutUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this logout user unauthorized response has a 2xx status code
func (*LogoutUserUnauthorized) String ¶
func (o *LogoutUserUnauthorized) String() string
type RefreshAuthDefault ¶
type RefreshAuthDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
RefreshAuthDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewRefreshAuthDefault ¶
func NewRefreshAuthDefault(code int) *RefreshAuthDefault
NewRefreshAuthDefault creates a RefreshAuthDefault with default headers values
func (*RefreshAuthDefault) Code ¶
func (o *RefreshAuthDefault) Code() int
Code gets the status code for the refresh auth default response
func (*RefreshAuthDefault) Error ¶
func (o *RefreshAuthDefault) Error() string
func (*RefreshAuthDefault) GetPayload ¶
func (o *RefreshAuthDefault) GetPayload() *models.GeneralError
func (*RefreshAuthDefault) IsClientError ¶
func (o *RefreshAuthDefault) IsClientError() bool
IsClientError returns true when this refresh auth default response has a 4xx status code
func (*RefreshAuthDefault) IsCode ¶
func (o *RefreshAuthDefault) IsCode(code int) bool
IsCode returns true when this refresh auth default response a status code equal to that given
func (*RefreshAuthDefault) IsRedirect ¶
func (o *RefreshAuthDefault) IsRedirect() bool
IsRedirect returns true when this refresh auth default response has a 3xx status code
func (*RefreshAuthDefault) IsServerError ¶
func (o *RefreshAuthDefault) IsServerError() bool
IsServerError returns true when this refresh auth default response has a 5xx status code
func (*RefreshAuthDefault) IsSuccess ¶
func (o *RefreshAuthDefault) IsSuccess() bool
IsSuccess returns true when this refresh auth default response has a 2xx status code
func (*RefreshAuthDefault) String ¶
func (o *RefreshAuthDefault) String() string
type RefreshAuthOK ¶
RefreshAuthOK describes a response with status code 200, with default header values.
A refreshed token with expire
func NewRefreshAuthOK ¶
func NewRefreshAuthOK() *RefreshAuthOK
NewRefreshAuthOK creates a RefreshAuthOK with default headers values
func (*RefreshAuthOK) Code ¶
func (o *RefreshAuthOK) Code() int
Code gets the status code for the refresh auth o k response
func (*RefreshAuthOK) Error ¶
func (o *RefreshAuthOK) Error() string
func (*RefreshAuthOK) GetPayload ¶
func (o *RefreshAuthOK) GetPayload() *models.AuthToken
func (*RefreshAuthOK) IsClientError ¶
func (o *RefreshAuthOK) IsClientError() bool
IsClientError returns true when this refresh auth o k response has a 4xx status code
func (*RefreshAuthOK) IsCode ¶
func (o *RefreshAuthOK) IsCode(code int) bool
IsCode returns true when this refresh auth o k response a status code equal to that given
func (*RefreshAuthOK) IsRedirect ¶
func (o *RefreshAuthOK) IsRedirect() bool
IsRedirect returns true when this refresh auth o k response has a 3xx status code
func (*RefreshAuthOK) IsServerError ¶
func (o *RefreshAuthOK) IsServerError() bool
IsServerError returns true when this refresh auth o k response has a 5xx status code
func (*RefreshAuthOK) IsSuccess ¶
func (o *RefreshAuthOK) IsSuccess() bool
IsSuccess returns true when this refresh auth o k response has a 2xx status code
func (*RefreshAuthOK) String ¶
func (o *RefreshAuthOK) String() string
type RefreshAuthParams ¶
type RefreshAuthParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RefreshAuthParams contains all the parameters to send to the API endpoint
for the refresh auth operation. Typically these are written to a http.Request.
func NewRefreshAuthParams ¶
func NewRefreshAuthParams() *RefreshAuthParams
NewRefreshAuthParams creates a new RefreshAuthParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRefreshAuthParamsWithContext ¶
func NewRefreshAuthParamsWithContext(ctx context.Context) *RefreshAuthParams
NewRefreshAuthParamsWithContext creates a new RefreshAuthParams object with the ability to set a context for a request.
func NewRefreshAuthParamsWithHTTPClient ¶
func NewRefreshAuthParamsWithHTTPClient(client *http.Client) *RefreshAuthParams
NewRefreshAuthParamsWithHTTPClient creates a new RefreshAuthParams object with the ability to set a custom HTTPClient for a request.
func NewRefreshAuthParamsWithTimeout ¶
func NewRefreshAuthParamsWithTimeout(timeout time.Duration) *RefreshAuthParams
NewRefreshAuthParamsWithTimeout creates a new RefreshAuthParams object with the ability to set a timeout on a request.
func (*RefreshAuthParams) SetContext ¶
func (o *RefreshAuthParams) SetContext(ctx context.Context)
SetContext adds the context to the refresh auth params
func (*RefreshAuthParams) SetDefaults ¶
func (o *RefreshAuthParams) SetDefaults()
SetDefaults hydrates default values in the refresh auth params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshAuthParams) SetHTTPClient ¶
func (o *RefreshAuthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the refresh auth params
func (*RefreshAuthParams) SetTimeout ¶
func (o *RefreshAuthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the refresh auth params
func (*RefreshAuthParams) WithContext ¶
func (o *RefreshAuthParams) WithContext(ctx context.Context) *RefreshAuthParams
WithContext adds the context to the refresh auth params
func (*RefreshAuthParams) WithDefaults ¶
func (o *RefreshAuthParams) WithDefaults() *RefreshAuthParams
WithDefaults hydrates default values in the refresh auth params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshAuthParams) WithHTTPClient ¶
func (o *RefreshAuthParams) WithHTTPClient(client *http.Client) *RefreshAuthParams
WithHTTPClient adds the HTTPClient to the refresh auth params
func (*RefreshAuthParams) WithTimeout ¶
func (o *RefreshAuthParams) WithTimeout(timeout time.Duration) *RefreshAuthParams
WithTimeout adds the timeout to the refresh auth params
func (*RefreshAuthParams) WriteToRequest ¶
func (o *RefreshAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RefreshAuthReader ¶
type RefreshAuthReader struct {
// contains filtered or unexported fields
}
RefreshAuthReader is a Reader for the RefreshAuth structure.
func (*RefreshAuthReader) ReadResponse ¶
func (o *RefreshAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RefreshAuthUnauthorized ¶
type RefreshAuthUnauthorized struct {
}RefreshAuthUnauthorized describes a response with status code 401, with default header values.
Unauthorized if failed to generate
func NewRefreshAuthUnauthorized ¶
func NewRefreshAuthUnauthorized() *RefreshAuthUnauthorized
NewRefreshAuthUnauthorized creates a RefreshAuthUnauthorized with default headers values
func (*RefreshAuthUnauthorized) Code ¶
func (o *RefreshAuthUnauthorized) Code() int
Code gets the status code for the refresh auth unauthorized response
func (*RefreshAuthUnauthorized) Error ¶
func (o *RefreshAuthUnauthorized) Error() string
func (*RefreshAuthUnauthorized) GetPayload ¶
func (o *RefreshAuthUnauthorized) GetPayload() *models.GeneralError
func (*RefreshAuthUnauthorized) IsClientError ¶
func (o *RefreshAuthUnauthorized) IsClientError() bool
IsClientError returns true when this refresh auth unauthorized response has a 4xx status code
func (*RefreshAuthUnauthorized) IsCode ¶
func (o *RefreshAuthUnauthorized) IsCode(code int) bool
IsCode returns true when this refresh auth unauthorized response a status code equal to that given
func (*RefreshAuthUnauthorized) IsRedirect ¶
func (o *RefreshAuthUnauthorized) IsRedirect() bool
IsRedirect returns true when this refresh auth unauthorized response has a 3xx status code
func (*RefreshAuthUnauthorized) IsServerError ¶
func (o *RefreshAuthUnauthorized) IsServerError() bool
IsServerError returns true when this refresh auth unauthorized response has a 5xx status code
func (*RefreshAuthUnauthorized) IsSuccess ¶
func (o *RefreshAuthUnauthorized) IsSuccess() bool
IsSuccess returns true when this refresh auth unauthorized response has a 2xx status code
func (*RefreshAuthUnauthorized) String ¶
func (o *RefreshAuthUnauthorized) String() string
type VerifyAuthDefault ¶
type VerifyAuthDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
VerifyAuthDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewVerifyAuthDefault ¶
func NewVerifyAuthDefault(code int) *VerifyAuthDefault
NewVerifyAuthDefault creates a VerifyAuthDefault with default headers values
func (*VerifyAuthDefault) Code ¶
func (o *VerifyAuthDefault) Code() int
Code gets the status code for the verify auth default response
func (*VerifyAuthDefault) Error ¶
func (o *VerifyAuthDefault) Error() string
func (*VerifyAuthDefault) GetPayload ¶
func (o *VerifyAuthDefault) GetPayload() *models.GeneralError
func (*VerifyAuthDefault) IsClientError ¶
func (o *VerifyAuthDefault) IsClientError() bool
IsClientError returns true when this verify auth default response has a 4xx status code
func (*VerifyAuthDefault) IsCode ¶
func (o *VerifyAuthDefault) IsCode(code int) bool
IsCode returns true when this verify auth default response a status code equal to that given
func (*VerifyAuthDefault) IsRedirect ¶
func (o *VerifyAuthDefault) IsRedirect() bool
IsRedirect returns true when this verify auth default response has a 3xx status code
func (*VerifyAuthDefault) IsServerError ¶
func (o *VerifyAuthDefault) IsServerError() bool
IsServerError returns true when this verify auth default response has a 5xx status code
func (*VerifyAuthDefault) IsSuccess ¶
func (o *VerifyAuthDefault) IsSuccess() bool
IsSuccess returns true when this verify auth default response has a 2xx status code
func (*VerifyAuthDefault) String ¶
func (o *VerifyAuthDefault) String() string
type VerifyAuthOK ¶
type VerifyAuthOK struct {
Payload *models.AuthVerify
}
VerifyAuthOK describes a response with status code 200, with default header values.
Meta data of the provided token
func NewVerifyAuthOK ¶
func NewVerifyAuthOK() *VerifyAuthOK
NewVerifyAuthOK creates a VerifyAuthOK with default headers values
func (*VerifyAuthOK) Code ¶
func (o *VerifyAuthOK) Code() int
Code gets the status code for the verify auth o k response
func (*VerifyAuthOK) Error ¶
func (o *VerifyAuthOK) Error() string
func (*VerifyAuthOK) GetPayload ¶
func (o *VerifyAuthOK) GetPayload() *models.AuthVerify
func (*VerifyAuthOK) IsClientError ¶
func (o *VerifyAuthOK) IsClientError() bool
IsClientError returns true when this verify auth o k response has a 4xx status code
func (*VerifyAuthOK) IsCode ¶
func (o *VerifyAuthOK) IsCode(code int) bool
IsCode returns true when this verify auth o k response a status code equal to that given
func (*VerifyAuthOK) IsRedirect ¶
func (o *VerifyAuthOK) IsRedirect() bool
IsRedirect returns true when this verify auth o k response has a 3xx status code
func (*VerifyAuthOK) IsServerError ¶
func (o *VerifyAuthOK) IsServerError() bool
IsServerError returns true when this verify auth o k response has a 5xx status code
func (*VerifyAuthOK) IsSuccess ¶
func (o *VerifyAuthOK) IsSuccess() bool
IsSuccess returns true when this verify auth o k response has a 2xx status code
func (*VerifyAuthOK) String ¶
func (o *VerifyAuthOK) String() string
type VerifyAuthParams ¶
type VerifyAuthParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VerifyAuthParams contains all the parameters to send to the API endpoint
for the verify auth operation. Typically these are written to a http.Request.
func NewVerifyAuthParams ¶
func NewVerifyAuthParams() *VerifyAuthParams
NewVerifyAuthParams creates a new VerifyAuthParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewVerifyAuthParamsWithContext ¶
func NewVerifyAuthParamsWithContext(ctx context.Context) *VerifyAuthParams
NewVerifyAuthParamsWithContext creates a new VerifyAuthParams object with the ability to set a context for a request.
func NewVerifyAuthParamsWithHTTPClient ¶
func NewVerifyAuthParamsWithHTTPClient(client *http.Client) *VerifyAuthParams
NewVerifyAuthParamsWithHTTPClient creates a new VerifyAuthParams object with the ability to set a custom HTTPClient for a request.
func NewVerifyAuthParamsWithTimeout ¶
func NewVerifyAuthParamsWithTimeout(timeout time.Duration) *VerifyAuthParams
NewVerifyAuthParamsWithTimeout creates a new VerifyAuthParams object with the ability to set a timeout on a request.
func (*VerifyAuthParams) SetContext ¶
func (o *VerifyAuthParams) SetContext(ctx context.Context)
SetContext adds the context to the verify auth params
func (*VerifyAuthParams) SetDefaults ¶
func (o *VerifyAuthParams) SetDefaults()
SetDefaults hydrates default values in the verify auth params (not the query body).
All values with no default are reset to their zero value.
func (*VerifyAuthParams) SetHTTPClient ¶
func (o *VerifyAuthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the verify auth params
func (*VerifyAuthParams) SetTimeout ¶
func (o *VerifyAuthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the verify auth params
func (*VerifyAuthParams) WithContext ¶
func (o *VerifyAuthParams) WithContext(ctx context.Context) *VerifyAuthParams
WithContext adds the context to the verify auth params
func (*VerifyAuthParams) WithDefaults ¶
func (o *VerifyAuthParams) WithDefaults() *VerifyAuthParams
WithDefaults hydrates default values in the verify auth params (not the query body).
All values with no default are reset to their zero value.
func (*VerifyAuthParams) WithHTTPClient ¶
func (o *VerifyAuthParams) WithHTTPClient(client *http.Client) *VerifyAuthParams
WithHTTPClient adds the HTTPClient to the verify auth params
func (*VerifyAuthParams) WithTimeout ¶
func (o *VerifyAuthParams) WithTimeout(timeout time.Duration) *VerifyAuthParams
WithTimeout adds the timeout to the verify auth params
func (*VerifyAuthParams) WriteToRequest ¶
func (o *VerifyAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VerifyAuthReader ¶
type VerifyAuthReader struct {
// contains filtered or unexported fields
}
VerifyAuthReader is a Reader for the VerifyAuth structure.
func (*VerifyAuthReader) ReadResponse ¶
func (o *VerifyAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type VerifyAuthUnauthorized ¶
type VerifyAuthUnauthorized struct {
}VerifyAuthUnauthorized describes a response with status code 401, with default header values.
Unauthorized if token is invalid
func NewVerifyAuthUnauthorized ¶
func NewVerifyAuthUnauthorized() *VerifyAuthUnauthorized
NewVerifyAuthUnauthorized creates a VerifyAuthUnauthorized with default headers values
func (*VerifyAuthUnauthorized) Code ¶
func (o *VerifyAuthUnauthorized) Code() int
Code gets the status code for the verify auth unauthorized response
func (*VerifyAuthUnauthorized) Error ¶
func (o *VerifyAuthUnauthorized) Error() string
func (*VerifyAuthUnauthorized) GetPayload ¶
func (o *VerifyAuthUnauthorized) GetPayload() *models.GeneralError
func (*VerifyAuthUnauthorized) IsClientError ¶
func (o *VerifyAuthUnauthorized) IsClientError() bool
IsClientError returns true when this verify auth unauthorized response has a 4xx status code
func (*VerifyAuthUnauthorized) IsCode ¶
func (o *VerifyAuthUnauthorized) IsCode(code int) bool
IsCode returns true when this verify auth unauthorized response a status code equal to that given
func (*VerifyAuthUnauthorized) IsRedirect ¶
func (o *VerifyAuthUnauthorized) IsRedirect() bool
IsRedirect returns true when this verify auth unauthorized response has a 3xx status code
func (*VerifyAuthUnauthorized) IsServerError ¶
func (o *VerifyAuthUnauthorized) IsServerError() bool
IsServerError returns true when this verify auth unauthorized response has a 5xx status code
func (*VerifyAuthUnauthorized) IsSuccess ¶
func (o *VerifyAuthUnauthorized) IsSuccess() bool
IsSuccess returns true when this verify auth unauthorized response has a 2xx status code
func (*VerifyAuthUnauthorized) String ¶
func (o *VerifyAuthUnauthorized) String() string
Source Files ¶
- auth_client.go
- external_callback_parameters.go
- external_callback_responses.go
- external_initialize_parameters.go
- external_initialize_responses.go
- login_user_parameters.go
- login_user_responses.go
- logout_user_parameters.go
- logout_user_responses.go
- refresh_auth_parameters.go
- refresh_auth_responses.go
- verify_auth_parameters.go
- verify_auth_responses.go