package
1.6.0
Repository: https://github.com/gotoolsharing/htb-cli.git
Documentation: pkg.go.dev

# Functions

AskConfirmation will request confirmation from the user.
Initializes and displays user information in tview.
GetActiveExpiredTime returns the expired date of the active machine.
GetActiveMachineID returns the id of the active machine.
GetActiveMachineIP returns the ip of the active machine.
GetActiveReleaseArenaMachineIP returns the ip of the active release arena machine.
No description provided by the author
GetCurrentUsername retrieves the current system user's name.
GetHTBToken checks whether the HTB_TOKEN environment variable exists.
No description provided by the author
GetMachineType will return the machine type.
No description provided by the author
GetUserSubscription returns the user's subscription level.
HtbRequest makes an HTTP request to the Hackthebox API.
HTTPRequest makes an HTTP request with the specified method, URL, proxy settings, and data.
ParseAndFormatDate takes an input date string, parses it into a time.Time object, and formats it to the "2006-01-02" format.
ParseJsonMessage will parse the result of the API request into a JSON.
No description provided by the author
No description provided by the author
No description provided by the author
SearchItemIDByName will return the id of an item (machine / challenge / user) based on its name.
No description provided by the author
No description provided by the author
SetRetiredStatus determines whether an item is retired or not.
SetStatus determines the status based on user and root flags.
SetTabWriterData will write the contents of each array cell.
SetTabWriterHeader will display the information in an array.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Structure pour représenter la section 'data' du JSON.
No description provided by the author
Endgames.
No description provided by the author
No description provided by the author
No description provided by the author
Structure pour représenter le JSON entier.
No description provided by the author
No description provided by the author
Structure pour représenter le JSON entier.
No description provided by the author
No description provided by the author