discover

package
v14.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package discover provides functionality for discovering GitLab users

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 discovering GitLab users

func NewClient

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

NewClient creates a new instance of the user discovery client

func (*Client) GetByCommandArgs

func (c *Client) GetByCommandArgs(ctx context.Context, args *commandargs.Shell) (*Response, error)

GetByCommandArgs retrieves user information based on command arguments

type Response

type Response struct {
	UserID   int64  `json:"id"`
	Name     string `json:"name"`
	Username string `json:"username"`
}

Response represents the response structure for user discovery

func (*Response) IsAnonymous

func (r *Response) IsAnonymous() bool

IsAnonymous checks if the user is anonymous

Jump to

Keyboard shortcuts

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