twofactorrecover

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package twofactorrecover provides functionality for interacting with GitLab Two-Factor Authentication recovery codes

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 represents a client for interacting with GitLab Two-Factor Authentication recovery codes

func NewClient

func NewClient(config *config.Config) (*Client, error)

NewClient creates a new Client instance with the provided configuration

func (*Client) GetRecoveryCodes

func (c *Client) GetRecoveryCodes(ctx context.Context, args *commandargs.Shell) ([]string, error)

GetRecoveryCodes retrieves the recovery codes for the specified user

type RequestBody

type RequestBody struct {
	KeyID  string `json:"key_id,omitempty"`
	UserID int64  `json:"user_id,omitempty"`
}

RequestBody represents the request body structure for Two-Factor Authentication recovery code requests

type Response

type Response struct {
	Success       bool     `json:"success"`
	RecoveryCodes []string `json:"recovery_codes"`
	Message       string   `json:"message"`
}

Response represents the response structure for Two-Factor Authentication recovery code requests

Jump to

Keyboard shortcuts

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