Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type InitOtpOK
- func (o *InitOtpOK) Code() int
- func (o *InitOtpOK) Error() string
- func (o *InitOtpOK) GetPayload() *models.ActivityResponse
- func (o *InitOtpOK) IsClientError() bool
- func (o *InitOtpOK) IsCode(code int) bool
- func (o *InitOtpOK) IsRedirect() bool
- func (o *InitOtpOK) IsServerError() bool
- func (o *InitOtpOK) IsSuccess() bool
- func (o *InitOtpOK) String() string
- type InitOtpParams
- func (o *InitOtpParams) SetBody(body *models.InitOtpRequest)
- func (o *InitOtpParams) SetContext(ctx context.Context)
- func (o *InitOtpParams) SetDefaults()
- func (o *InitOtpParams) SetHTTPClient(client *http.Client)
- func (o *InitOtpParams) SetTimeout(timeout time.Duration)
- func (o *InitOtpParams) WithBody(body *models.InitOtpRequest) *InitOtpParams
- func (o *InitOtpParams) WithContext(ctx context.Context) *InitOtpParams
- func (o *InitOtpParams) WithDefaults() *InitOtpParams
- func (o *InitOtpParams) WithHTTPClient(client *http.Client) *InitOtpParams
- func (o *InitOtpParams) WithTimeout(timeout time.Duration) *InitOtpParams
- func (o *InitOtpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InitOtpReader
- type VerifyOtpOK
- func (o *VerifyOtpOK) Code() int
- func (o *VerifyOtpOK) Error() string
- func (o *VerifyOtpOK) GetPayload() *models.ActivityResponse
- func (o *VerifyOtpOK) IsClientError() bool
- func (o *VerifyOtpOK) IsCode(code int) bool
- func (o *VerifyOtpOK) IsRedirect() bool
- func (o *VerifyOtpOK) IsServerError() bool
- func (o *VerifyOtpOK) IsSuccess() bool
- func (o *VerifyOtpOK) String() string
- type VerifyOtpParams
- func (o *VerifyOtpParams) SetBody(body *models.VerifyOtpRequest)
- func (o *VerifyOtpParams) SetContext(ctx context.Context)
- func (o *VerifyOtpParams) SetDefaults()
- func (o *VerifyOtpParams) SetHTTPClient(client *http.Client)
- func (o *VerifyOtpParams) SetTimeout(timeout time.Duration)
- func (o *VerifyOtpParams) WithBody(body *models.VerifyOtpRequest) *VerifyOtpParams
- func (o *VerifyOtpParams) WithContext(ctx context.Context) *VerifyOtpParams
- func (o *VerifyOtpParams) WithDefaults() *VerifyOtpParams
- func (o *VerifyOtpParams) WithHTTPClient(client *http.Client) *VerifyOtpParams
- func (o *VerifyOtpParams) WithTimeout(timeout time.Duration) *VerifyOtpParams
- func (o *VerifyOtpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VerifyOtpReader
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) GetPayload ¶
func (o *InitOtpOK) GetPayload() *models.ActivityResponse
func (*InitOtpOK) IsClientError ¶
IsClientError returns true when this init otp o k response has a 4xx status code
func (*InitOtpOK) IsCode ¶
IsCode returns true when this init otp o k response a status code equal to that given
func (*InitOtpOK) IsRedirect ¶
IsRedirect returns true when this init otp o k response has a 3xx status code
func (*InitOtpOK) IsServerError ¶
IsServerError returns true when this init otp o k response has a 5xx status code
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 ¶
func (o *VerifyOtpParams) WithBody(body *models.VerifyOtpRequest) *VerifyOtpParams
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.