Documentation ¶ Index ¶ type Client func NewClient(config *config.Config) (*Client, error) func (c *Client) PushAuth(ctx context.Context, args *commandargs.Shell) error func (c *Client) VerifyOTP(ctx context.Context, args *commandargs.Shell, otp string) error type RequestBody type Response 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 } func NewClient ¶ func NewClient(config *config.Config) (*Client, error) func (*Client) PushAuth ¶ added in v14.10.0 func (c *Client) PushAuth(ctx context.Context, args *commandargs.Shell) error func (*Client) VerifyOTP ¶ func (c *Client) VerifyOTP(ctx context.Context, args *commandargs.Shell, otp string) error type RequestBody ¶ type RequestBody struct { KeyId string `json:"key_id,omitempty"` UserId int64 `json:"user_id,omitempty"` OTPAttempt string `json:"otp_attempt,omitempty"` } type Response ¶ type Response struct { Success bool `json:"success"` Message string `json:"message"` } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.