Documentation
¶
Index ¶
- func CacheDir() string
- func DeleteNil(errs []error) (new []error)
- func DownloadToTempDir(ctx context.Context, src string) (string, error)
- func DownloadToTempFile(ctx context.Context, src string) (string, error)
- func Exec(command string, args []string) (string, error)
- func Exists(path string) (bool, error)
- func FetchConcurrently(urls []string, concurrency, wait, retry int) (responses [][]byte, err error)
- func FetchURL(url, apikey string, retry int) (res []byte, err error)
- func GenWorkers(num, wait int) chan<- func()
- func GetLastUpdatedDate(dist string) (time.Time, error)
- func IsCommandAvailable(name string) bool
- func LookupEnv(key, defaultValue string) string
- func Major(osVer string) (majorVersion string)
- func RandInt() int
- func SaveCVEPerYear(dirPath string, cveID string, data interface{}) error
- func SetLastUpdatedDate(dist string, lastUpdatedDate time.Time) error
- func TrimSpaceNewline(str string) string
- func VulnListDir() string
- func Write(filePath string, data interface{}) error
- func WriteJSON(fs afero.Fs, dir, fileName string, data interface{}) error
- type LastUpdated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchConcurrently ¶
FetchConcurrently fetches concurrently
func IsCommandAvailable ¶
func SaveCVEPerYear ¶
func TrimSpaceNewline ¶
TrimSpaceNewline deletes space character and newline character(CR/LF)
func VulnListDir ¶
func VulnListDir() string
Types ¶
type LastUpdated ¶
Click to show internal directories.
Click to hide internal directories.