auth

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

WithContext adds the context to the external callback params

func (*ExternalCallbackParams) WithDefaults

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

WithTimeout adds the timeout to the external callback params

func (*ExternalCallbackParams) WriteToRequest

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

Code gets the status code for the external callback precondition failed response

func (*ExternalCallbackPreconditionFailed) Error

func (*ExternalCallbackPreconditionFailed) GetPayload

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

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

IsSuccess returns true when this external callback precondition failed response has a 2xx status code

func (*ExternalCallbackPreconditionFailed) 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

Code gets the status code for the external callback temporary redirect response

func (*ExternalCallbackTemporaryRedirect) Error

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

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 (*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

Code gets the status code for the external initialize internal server error response

func (*ExternalInitializeInternalServerError) Error

func (*ExternalInitializeInternalServerError) GetPayload

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

IsCode returns true when this external initialize internal server error response a status code equal to that given

func (*ExternalInitializeInternalServerError) IsRedirect

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

IsSuccess returns true when this external initialize internal server error response has a 2xx status code

func (*ExternalInitializeInternalServerError) 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 (*ExternalInitializeNotFound) GetPayload

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

WithContext adds the context to the external initialize params

func (*ExternalInitializeParams) WithDefaults

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

WithTimeout adds the timeout to the external initialize params

func (*ExternalInitializeParams) WriteToRequest

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

Code gets the status code for the external initialize temporary redirect response

func (*ExternalInitializeTemporaryRedirect) Error

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

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

IsSuccess returns true when this external initialize temporary redirect response has a 2xx status code

func (*ExternalInitializeTemporaryRedirect) 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

type LoginUserOK struct {
	Payload *models.AuthToken
}

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 {
	Payload *models.GeneralError
}

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 {
	Payload *models.GeneralError
}

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

type RefreshAuthOK struct {
	Payload *models.AuthToken
}

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 {
	Payload *models.GeneralError
}

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 {
	Payload *models.GeneralError
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL