user_verification

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 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 user verification API

func (*Client) InitOtp

func (a *Client) InitOtp(params *InitOtpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpOK, error)

InitOtp inits generic o t p

Initiate a generic OTP activity.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) VerifyOtp

func (a *Client) VerifyOtp(params *VerifyOtpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyOtpOK, error)

VerifyOtp verifies generic o t p

Verify a generic OTP.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	InitOtp(params *InitOtpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpOK, error)

	VerifyOtp(params *VerifyOtpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyOtpOK, 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 user verification API client.

type InitOtpOK

type InitOtpOK struct {
	Payload *models.ActivityResponse
}

InitOtpOK describes a response with status code 200, with default header values.

A successful response.

func NewInitOtpOK

func NewInitOtpOK() *InitOtpOK

NewInitOtpOK creates a InitOtpOK with default headers values

func (*InitOtpOK) Code

func (o *InitOtpOK) Code() int

Code gets the status code for the init otp o k response

func (*InitOtpOK) Error

func (o *InitOtpOK) Error() string

func (*InitOtpOK) GetPayload

func (o *InitOtpOK) GetPayload() *models.ActivityResponse

func (*InitOtpOK) IsClientError

func (o *InitOtpOK) IsClientError() bool

IsClientError returns true when this init otp o k response has a 4xx status code

func (*InitOtpOK) IsCode

func (o *InitOtpOK) IsCode(code int) bool

IsCode returns true when this init otp o k response a status code equal to that given

func (*InitOtpOK) IsRedirect

func (o *InitOtpOK) IsRedirect() bool

IsRedirect returns true when this init otp o k response has a 3xx status code

func (*InitOtpOK) IsServerError

func (o *InitOtpOK) IsServerError() bool

IsServerError returns true when this init otp o k response has a 5xx status code

func (*InitOtpOK) IsSuccess

func (o *InitOtpOK) IsSuccess() bool

IsSuccess returns true when this init otp o k response has a 2xx status code

func (*InitOtpOK) String

func (o *InitOtpOK) String() string

type InitOtpParams

type InitOtpParams struct {

	// Body.
	Body *models.InitOtpRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InitOtpParams contains all the parameters to send to the API endpoint

for the init otp operation.

Typically these are written to a http.Request.

func NewInitOtpParams

func NewInitOtpParams() *InitOtpParams

NewInitOtpParams creates a new InitOtpParams 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 NewInitOtpParamsWithContext

func NewInitOtpParamsWithContext(ctx context.Context) *InitOtpParams

NewInitOtpParamsWithContext creates a new InitOtpParams object with the ability to set a context for a request.

func NewInitOtpParamsWithHTTPClient

func NewInitOtpParamsWithHTTPClient(client *http.Client) *InitOtpParams

NewInitOtpParamsWithHTTPClient creates a new InitOtpParams object with the ability to set a custom HTTPClient for a request.

func NewInitOtpParamsWithTimeout

func NewInitOtpParamsWithTimeout(timeout time.Duration) *InitOtpParams

NewInitOtpParamsWithTimeout creates a new InitOtpParams object with the ability to set a timeout on a request.

func (*InitOtpParams) SetBody

func (o *InitOtpParams) SetBody(body *models.InitOtpRequest)

SetBody adds the body to the init otp params

func (*InitOtpParams) SetContext

func (o *InitOtpParams) SetContext(ctx context.Context)

SetContext adds the context to the init otp params

func (*InitOtpParams) SetDefaults

func (o *InitOtpParams) SetDefaults()

SetDefaults hydrates default values in the init otp params (not the query body).

All values with no default are reset to their zero value.

func (*InitOtpParams) SetHTTPClient

func (o *InitOtpParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the init otp params

func (*InitOtpParams) SetTimeout

func (o *InitOtpParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the init otp params

func (*InitOtpParams) WithBody

func (o *InitOtpParams) WithBody(body *models.InitOtpRequest) *InitOtpParams

WithBody adds the body to the init otp params

func (*InitOtpParams) WithContext

func (o *InitOtpParams) WithContext(ctx context.Context) *InitOtpParams

WithContext adds the context to the init otp params

func (*InitOtpParams) WithDefaults

func (o *InitOtpParams) WithDefaults() *InitOtpParams

WithDefaults hydrates default values in the init otp params (not the query body).

All values with no default are reset to their zero value.

func (*InitOtpParams) WithHTTPClient

func (o *InitOtpParams) WithHTTPClient(client *http.Client) *InitOtpParams

WithHTTPClient adds the HTTPClient to the init otp params

func (*InitOtpParams) WithTimeout

func (o *InitOtpParams) WithTimeout(timeout time.Duration) *InitOtpParams

WithTimeout adds the timeout to the init otp params

func (*InitOtpParams) WriteToRequest

func (o *InitOtpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type InitOtpReader

type InitOtpReader struct {
	// contains filtered or unexported fields
}

InitOtpReader is a Reader for the InitOtp structure.

func (*InitOtpReader) ReadResponse

func (o *InitOtpReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type VerifyOtpOK

type VerifyOtpOK struct {
	Payload *models.ActivityResponse
}

VerifyOtpOK describes a response with status code 200, with default header values.

A successful response.

func NewVerifyOtpOK

func NewVerifyOtpOK() *VerifyOtpOK

NewVerifyOtpOK creates a VerifyOtpOK with default headers values

func (*VerifyOtpOK) Code

func (o *VerifyOtpOK) Code() int

Code gets the status code for the verify otp o k response

func (*VerifyOtpOK) Error

func (o *VerifyOtpOK) Error() string

func (*VerifyOtpOK) GetPayload

func (o *VerifyOtpOK) GetPayload() *models.ActivityResponse

func (*VerifyOtpOK) IsClientError

func (o *VerifyOtpOK) IsClientError() bool

IsClientError returns true when this verify otp o k response has a 4xx status code

func (*VerifyOtpOK) IsCode

func (o *VerifyOtpOK) IsCode(code int) bool

IsCode returns true when this verify otp o k response a status code equal to that given

func (*VerifyOtpOK) IsRedirect

func (o *VerifyOtpOK) IsRedirect() bool

IsRedirect returns true when this verify otp o k response has a 3xx status code

func (*VerifyOtpOK) IsServerError

func (o *VerifyOtpOK) IsServerError() bool

IsServerError returns true when this verify otp o k response has a 5xx status code

func (*VerifyOtpOK) IsSuccess

func (o *VerifyOtpOK) IsSuccess() bool

IsSuccess returns true when this verify otp o k response has a 2xx status code

func (*VerifyOtpOK) String

func (o *VerifyOtpOK) String() string

type VerifyOtpParams

type VerifyOtpParams struct {

	// Body.
	Body *models.VerifyOtpRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

VerifyOtpParams contains all the parameters to send to the API endpoint

for the verify otp operation.

Typically these are written to a http.Request.

func NewVerifyOtpParams

func NewVerifyOtpParams() *VerifyOtpParams

NewVerifyOtpParams creates a new VerifyOtpParams 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 NewVerifyOtpParamsWithContext

func NewVerifyOtpParamsWithContext(ctx context.Context) *VerifyOtpParams

NewVerifyOtpParamsWithContext creates a new VerifyOtpParams object with the ability to set a context for a request.

func NewVerifyOtpParamsWithHTTPClient

func NewVerifyOtpParamsWithHTTPClient(client *http.Client) *VerifyOtpParams

NewVerifyOtpParamsWithHTTPClient creates a new VerifyOtpParams object with the ability to set a custom HTTPClient for a request.

func NewVerifyOtpParamsWithTimeout

func NewVerifyOtpParamsWithTimeout(timeout time.Duration) *VerifyOtpParams

NewVerifyOtpParamsWithTimeout creates a new VerifyOtpParams object with the ability to set a timeout on a request.

func (*VerifyOtpParams) SetBody

func (o *VerifyOtpParams) SetBody(body *models.VerifyOtpRequest)

SetBody adds the body to the verify otp params

func (*VerifyOtpParams) SetContext

func (o *VerifyOtpParams) SetContext(ctx context.Context)

SetContext adds the context to the verify otp params

func (*VerifyOtpParams) SetDefaults

func (o *VerifyOtpParams) SetDefaults()

SetDefaults hydrates default values in the verify otp params (not the query body).

All values with no default are reset to their zero value.

func (*VerifyOtpParams) SetHTTPClient

func (o *VerifyOtpParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the verify otp params

func (*VerifyOtpParams) SetTimeout

func (o *VerifyOtpParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the verify otp params

func (*VerifyOtpParams) WithBody

WithBody adds the body to the verify otp params

func (*VerifyOtpParams) WithContext

func (o *VerifyOtpParams) WithContext(ctx context.Context) *VerifyOtpParams

WithContext adds the context to the verify otp params

func (*VerifyOtpParams) WithDefaults

func (o *VerifyOtpParams) WithDefaults() *VerifyOtpParams

WithDefaults hydrates default values in the verify otp params (not the query body).

All values with no default are reset to their zero value.

func (*VerifyOtpParams) WithHTTPClient

func (o *VerifyOtpParams) WithHTTPClient(client *http.Client) *VerifyOtpParams

WithHTTPClient adds the HTTPClient to the verify otp params

func (*VerifyOtpParams) WithTimeout

func (o *VerifyOtpParams) WithTimeout(timeout time.Duration) *VerifyOtpParams

WithTimeout adds the timeout to the verify otp params

func (*VerifyOtpParams) WriteToRequest

func (o *VerifyOtpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type VerifyOtpReader

type VerifyOtpReader struct {
	// contains filtered or unexported fields
}

VerifyOtpReader is a Reader for the VerifyOtp structure.

func (*VerifyOtpReader) ReadResponse

func (o *VerifyOtpReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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