Documentation ¶
Index ¶
- Constants
- func CreateFlex(info interface{}, title string, isScheduled bool) (*tview.Flex, error)
- func GetColorFromDifficultyText(difficultyText string) string
- func GetGeneralInformations(sherlockID string, sherlockDownloadPath string) error
- func GetTaskByID(sherlockID string, sherlockTaskID int, sherlockHint bool) error
- func SearchIDByName(sherlockSearch string) (string, error)
- type DownloadFile
- type SherlockData
- type SherlockDataTasks
- type SherlockElement
- type SherlockNameID
- type SherlockTask
Constants ¶
View Source
const ( SherlocksURL = config.BaseHackTheBoxAPIURL + "/sherlocks?state=active" RetiredSherlocksURL = config.BaseHackTheBoxAPIURL + "/sherlocks?state=retired" ScheduledSherlocksURL = config.BaseHackTheBoxAPIURL + "/sherlocks?state=unreleased" ActiveSherlocksTitle = "Active" RetiredSherlocksTitle = "Retired" ScheduledSherlocksTitle = "Scheduled" SherlocksCheckMark = "\U00002705" SherlocksCrossMark = "\U0000274C" SPenguin = "\U0001F427" SComputer = "\U0001F5A5 " )
Variables ¶
This section is empty.
Functions ¶
func CreateFlex ¶
CreateFlex creates and returns a Flex view with machine information
func GetColorFromDifficultyText ¶
GetColorFromDifficultyText returns the color corresponding to the given difficulty.
func GetGeneralInformations ¶
GetGeneralInformations retrieves and prints general information about a Sherlock challenge.
func GetTaskByID ¶
GetTaskByID retrieves and prints the description of a specific task of a Sherlock challenge.
func SearchIDByName ¶
SearchIDByName searches for a Sherlock challenge by name and returns its ID.
Types ¶
type DownloadFile ¶ added in v1.4.1
type SherlockData ¶
type SherlockData struct {
Data []SherlockElement `json:"data"`
}
type SherlockDataTasks ¶
type SherlockDataTasks struct {
Tasks []SherlockTask `json:"data"`
}
func GetTasks ¶
func GetTasks(sherlockID string) (*SherlockDataTasks, error)
GetTasks retrieves all tasks for a specific Sherlock challenge.
type SherlockElement ¶
type SherlockNameID ¶
Click to show internal directories.
Click to hide internal directories.