Documentation
¶
Index ¶
- Constants
- Variables
- func CapitalizeWords(s string) string
- func GetCacheFolder() (string, error)
- func GetConfigFolder() (string, error)
- func IsSupportedOutputFormat(outputFormat string) bool
- func IsValidFilePath(path string) bool
- func IsValidIP(ip string) bool
- func IsValidInt(s string) bool
- func MaxIPsCheck(nbIPs int, maxIPs int) (bool, error)
- func NewConfigCmd() *cobra.Command
- func NewSetCmd() *cobra.Command
- func NewShowCmd() *cobra.Command
Constants ¶
View Source
const ( MinIPsWarningOptionDefaultValue = 30 ReportExpirationDefaultValue = "90d" DefaultSQLiteDBFile = "ipdex.sqlite" DefaultFormat = display.HumanFormat BatchSize = 100 )
View Source
const ( APIKeyOption = "api_key" SQLiteDBpathOption = "sqlite_path" OutputFormatOption = "output_format" MinIPsWarningOption = "min_ips_warning" ReportExpirationOption = "report_expiration_days" )
Variables ¶
View Source
var ( OutputFormat string ForceRefresh bool Yes bool Detailed bool ReportName string Batching bool )
View Source
var CacheFolder string
View Source
var ConfigFolder string
View Source
var Parameters = []string{APIKeyOption, SQLiteDBpathOption, OutputFormatOption, MinIPsWarningOption, ReportExpirationOption}
Functions ¶
func CapitalizeWords ¶
func GetCacheFolder ¶
func GetConfigFolder ¶
func IsSupportedOutputFormat ¶
func IsValidFilePath ¶
func IsValidInt ¶
func NewConfigCmd ¶
func NewShowCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.