package
0.0.0-20240808155244-4ece259925ad
Repository: https://github.com/virustotal/vt-cli.git
Documentation: pkg.go.dev

# Functions

FilterMap receives a map with string keys and arbitrary values (possibly other maps) and return a new map which is a subset of the original one containing only the keys matching any of the patterns in "include" and excluding keys matching any of the patterns in "exclude".
IsDir function returns whether a file is a directory or not.
NewAPIClient returns a new VirusTotal API client using the API key configured either using the program configuration file or the --apikey command-line flag.
NewCoordinator creates a new instance of Coordinator.
FileDirReader returns all files inside a given directory as a StringArrayReader.
NewFilteredStringReader creates a new FilteredStringReader that reads strings from r and return only those that match re.
NewMappedStringReader creates a new MappedStringReader that reads strings from r and can call mapFn for transforming the string before returning it.
NewPrinter creates a new object printer.
NewStringArrayReader creates a new StringArrayReader.
NewStringIOReader creates a new StringIOReader.
ObjectToMap function that returns the attributes for an object as a map.
StringReaderFromCmdArgs returns a string reader for reading the arguments passed in the command line.

# Structs

APIClient represents a VirusTotal API client.
Coordinator coordinates the work of multiple instances of a Doer that run in parallel.
DoerState represents the current state of a Doer.
FilteredStringReader filters a StringReader returning only the strings that match a given regular expression.
MappedStringReader reads strings from a StringReader and call a map function that transforms the strings in some other string.
PQueueNode is a node in a priority queues.
Printer prints objects to stdout.
StringArrayReader is a wrapper around a slice of strings that implements the StringReader interface.
StringIOReader is a wrapper around a bufio.Scanner that implements the StringReader interface.

# Interfaces

Doer is the interface that must be implemented for any type to be used with DoWithStringsFromReader and DoWithStringsFromChannel.
StringReader is the interface that wraps the ReadString method.

# Type aliases

PQueue is a type implementing a priority queue.