utils

package
v0.0.0-...-372fb67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir :

func ConvertModels

func ConvertModels(filePath string, data models.Module) (models.Modules, error)

ConvertModels :

func Exec

func Exec(command string, args []string) (string, error)

Exec :

func Exists

func Exists(path string) (bool, error)

Exists :

func GenWorkers

func GenWorkers(num, wait int) chan<- func()

GenWorkers : generate workders

func GetLastUpdatedDate

func GetLastUpdatedDate(dist string) (time.Time, error)

GetLastUpdatedDate :

func LookupEnv

func LookupEnv(key, defaultValue string) string

LookupEnv :

func Read

func Read(filePath string) (models.Modules, error)

Read :

func SaveCVEPerYear

func SaveCVEPerYear(dirName string, cveID string, data models.Module) error

SaveCVEPerYear :

func SetLastUpdatedDate

func SetLastUpdatedDate(dist string, lastUpdatedDate time.Time) error

SetLastUpdatedDate :

func VulnListDir

func VulnListDir() string

VulnListDir :

func Write

func Write(filePath string, data models.Modules) error

Write :

Types

type LastUpdated

type LastUpdated map[string]time.Time

LastUpdated :

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL