Documentation ¶
Index ¶
- Constants
- Variables
- func NewAPIClient() (*utils.APIClient, error)
- func NewAnalysisCmd() *cobra.Command
- func NewCollectionCmd() *cobra.Command
- func NewCollectionCreateCmd() *cobra.Command
- func NewCollectionDeleteCmd() *cobra.Command
- func NewCollectionRemoveItemsCmd() *cobra.Command
- func NewCollectionRenameCmd() *cobra.Command
- func NewCollectionUpdateCmd() *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewContentSearchCmd() *cobra.Command
- func NewDomainCmd() *cobra.Command
- func NewDownloadCmd() *cobra.Command
- func NewFileCmd() *cobra.Command
- func NewGenDocCmd() *cobra.Command
- func NewGroupCmd() *cobra.Command
- func NewHuntingCmd() *cobra.Command
- func NewHuntingNotificationCmd() *cobra.Command
- func NewHuntingNotificationDeleteCmd() *cobra.Command
- func NewHuntingNotificationListCmd() *cobra.Command
- func NewHuntingRulesetAddCmd() *cobra.Command
- func NewHuntingRulesetCmd() *cobra.Command
- func NewHuntingRulesetDeleteCmd() *cobra.Command
- func NewHuntingRulesetDisableCmd() *cobra.Command
- func NewHuntingRulesetEnableCmd() *cobra.Command
- func NewHuntingRulesetListCmd() *cobra.Command
- func NewHuntingRulesetRenameCmd() *cobra.Command
- func NewHuntingRulesetSetLimitCmd() *cobra.Command
- func NewHuntingRulesetSetNotificationEmailsCmd() *cobra.Command
- func NewHuntingRulesetUpdateCmd() *cobra.Command
- func NewIOCStreamCmd() *cobra.Command
- func NewIOCStreamDeleteCmd() *cobra.Command
- func NewIOCStreamListCmd() *cobra.Command
- func NewIPCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewMetaCmd() *cobra.Command
- func NewMonitorCmd() *cobra.Command
- func NewMonitorItemsDeleteCmd() *cobra.Command
- func NewMonitorItemsDeleteDetailsCmd() *cobra.Command
- func NewMonitorItemsDownloadCmd() *cobra.Command
- func NewMonitorItemsListCmd() *cobra.Command
- func NewMonitorItemsSetDetailsCmd() *cobra.Command
- func NewMonitorItemsUploadCmd() *cobra.Command
- func NewMonitorPartnerCmd() *cobra.Command
- func NewMonitorPartnerHashDownloadCmd() *cobra.Command
- func NewMonitorPartnerHashesListCmd() *cobra.Command
- func NewPrinter(cmd *cobra.Command) (*utils.Printer, error)
- func NewPrivilegeCmd(target string) *cobra.Command
- func NewPrivilegeGrantCmd(target string) *cobra.Command
- func NewPrivilegeRevokeCmd(target string) *cobra.Command
- func NewRelationshipCmd(collection, relationship, use, description string) *cobra.Command
- func NewRelationshipsCmd(collection, objectType, use string) *cobra.Command
- func NewRetrohuntAbortCmd() *cobra.Command
- func NewRetrohuntCmd() *cobra.Command
- func NewRetrohuntDeleteCmd() *cobra.Command
- func NewRetrohuntListCmd() *cobra.Command
- func NewRetrohuntMatchesCmd() *cobra.Command
- func NewRetrohuntStartCmd() *cobra.Command
- func NewScanCmd() *cobra.Command
- func NewScanFileCmd() *cobra.Command
- func NewScanURLCmd() *cobra.Command
- func NewSearchCmd() *cobra.Command
- func NewURLCmd() *cobra.Command
- func NewUserCmd() *cobra.Command
- func NewVTCommand() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func ReadFile(filename string) ([]byte, error)
- type Privilege
- type Privileges
Constants ¶
const ( // PollFrequency defines the interval in which requests are sent to the // VT API to check if the analysis is completed. PollFrequency = 10 * time.Second // TimeoutLimit defines the maximum amount of minutes to wait for an // analysis' results. TimeoutLimit = 10 * time.Minute )
Variables ¶
var Version string
Version is the current version number. This variable is initialized using the -X linker flag while building the program.
Functions ¶
func NewAPIClient ¶
NewAPIClient returns a new utils.APIClient.
func NewAnalysisCmd ¶
NewAnalysisCmd returns a new instance of the 'analysis' command.
func NewCollectionCmd ¶
NewCollectionCmd returns a new instance of the 'collection' command.
func NewCollectionCreateCmd ¶
NewCollectionCreateCmd returns a command for creating a collection.
func NewCollectionDeleteCmd ¶
NewCollectionDeleteCmd returns a command for deleting a collection.
func NewCollectionRemoveItemsCmd ¶
NewCollectionRemoveItemsCmd returns a command for removing items from a collection.
func NewCollectionRenameCmd ¶
NewCollectionRenameCmd returns a command for renaming a collection.
func NewCollectionUpdateCmd ¶
NewCollectionUpdateCmd returns a command for adding new items to a collection.
func NewCompletionCmd ¶
NewCompletionCmd returns command 'completion'
func NewContentSearchCmd ¶
NewContentSearchCmd returns a new instance of the 'search content' command.
func NewDomainCmd ¶
NewDomainCmd returns a new instance of the 'domain' command.
func NewDownloadCmd ¶
NewDownloadCmd returns a new instance of the 'download' command.
func NewFileCmd ¶
NewFileCmd returns a new instance of the 'file' command.
func NewGenDocCmd ¶
NewGenDocCmd returns a new instance of the 'gendoc' command.
func NewGroupCmd ¶
NewGroupCmd returns a new instance of the 'group' command.
func NewHuntingCmd ¶
NewHuntingCmd returns a new instance of the 'hunting' command.
func NewHuntingNotificationCmd ¶
NewHuntingNotificationCmd returns a new instance of the 'notifications' command.
func NewHuntingNotificationDeleteCmd ¶
NewHuntingNotificationDeleteCmd returns a command for deleting all hunting notifications for the current user.
func NewHuntingNotificationListCmd ¶
NewHuntingNotificationListCmd returns a new instance of the 'notifications list' command.
func NewHuntingRulesetAddCmd ¶
NewHuntingRulesetAddCmd returns a command for adding a new ruleset.
func NewHuntingRulesetCmd ¶
NewHuntingRulesetCmd returns a new instance of the 'rulesets' command.
func NewHuntingRulesetDeleteCmd ¶
NewHuntingRulesetDeleteCmd returns a command for deleting a given ruleset.
func NewHuntingRulesetDisableCmd ¶
NewHuntingRulesetDisableCmd returns a command for disabling a given ruleset.
func NewHuntingRulesetEnableCmd ¶
NewHuntingRulesetEnableCmd returns a command for enabling a given ruleset.
func NewHuntingRulesetListCmd ¶
NewHuntingRulesetListCmd returns a new instance of the 'rulesets list' command.
func NewHuntingRulesetRenameCmd ¶
NewHuntingRulesetRenameCmd returns a command for renaming a given ruleset.
func NewHuntingRulesetSetLimitCmd ¶
NewHuntingRulesetSetLimitCmd returns a command for changing a ruleset's limit.
func NewHuntingRulesetSetNotificationEmailsCmd ¶
NewHuntingRulesetSetNotificationEmailsCmd returns a command for setting notification emails to a ruleset.
func NewHuntingRulesetUpdateCmd ¶
NewHuntingRulesetUpdateCmd returns a command for updating ruleset's rules.
func NewIOCStreamCmd ¶
NewIOCStreamCmd returns a new instance of the `ioc
func NewIOCStreamDeleteCmd ¶
NewIOCStreamDeleteCmd returns a new instance of the `ioc_stream delete` command.
func NewIOCStreamListCmd ¶
NewIOCStreamListCmd returns a new instance of the `ioc_stream list` command.
func NewMetaCmd ¶
NewMetaCmd returns a new instance of the 'meta' command.
func NewMonitorCmd ¶
NewMonitorCmd returns a new instance of the 'monitor_item' command.
func NewMonitorItemsDeleteCmd ¶
NewMonitorItemsDeleteCmd returns a command for deleting files in your monitor account.
func NewMonitorItemsDeleteDetailsCmd ¶
NewMonitorItemsDeleteDetailsCmd returns a command for removing item details.
func NewMonitorItemsDownloadCmd ¶
NewMonitorItemsDownloadCmd returns a command for downloading files from your monitor account.
func NewMonitorItemsListCmd ¶
NewMonitorItemsListCmd returns a list or monitor_items according to a filter.
func NewMonitorItemsSetDetailsCmd ¶
NewMonitorItemsSetDetailsCmd returns a command for configuring item details.
func NewMonitorItemsUploadCmd ¶
NewMonitorItemsUploadCmd returns a new instance of the 'mointor upload file' command.
func NewMonitorPartnerCmd ¶
NewMonitorPartnerCmd returns a new instance of the 'monitor_hash' command.
func NewMonitorPartnerHashDownloadCmd ¶
NewMonitorPartnerHashDownloadCmd returns a command for downloading files from your monitor account.
func NewMonitorPartnerHashesListCmd ¶
NewMonitorPartnerHashesListCmd returns a list or monitor_partner according to a filter.
func NewPrinter ¶
NewPrinter creates a new utils.Printer.
func NewPrivilegeCmd ¶
func NewPrivilegeGrantCmd ¶
func NewPrivilegeRevokeCmd ¶
func NewRelationshipCmd ¶
NewRelationshipCmd returns a new instance of the 'relationship' command.
func NewRelationshipsCmd ¶
NewRelationshipsCmd returns a new instance of the 'relationships' command.
func NewRetrohuntAbortCmd ¶
NewRetrohuntAbortCmd returns a new instance of the 'abort' command.
func NewRetrohuntCmd ¶
NewRetrohuntCmd returns a new instance of the 'retrohunt' command.
func NewRetrohuntDeleteCmd ¶
NewRetrohuntDeleteCmd returns a new instance of the 'delete' command.
func NewRetrohuntListCmd ¶
NewRetrohuntListCmd returns a new instance of the 'list' command.
func NewRetrohuntMatchesCmd ¶
NewRetrohuntMatchesCmd returns a new instance of the 'matches' command.
func NewRetrohuntStartCmd ¶
NewRetrohuntStartCmd returns a new instance of the 'start' command.
func NewScanCmd ¶
NewScanCmd returns a new instance of the 'scan' command.
func NewScanFileCmd ¶
NewScanFileCmd returns a new instance of the 'scan file' command.
func NewScanURLCmd ¶
NewScanURLCmd returns a new instance of the 'scan url' command.
func NewSearchCmd ¶
NewSearchCmd returns a new instance of the 'search' command.
func NewUserCmd ¶
NewUserCmd returns a new instance of the 'user' command.
func NewVTCommand ¶
NewVTCommand creates the `vt` command and its nested children.