Documentation ¶
Index ¶
- Variables
- func CacheDir() string
- func DefaultCacheDir() string
- func DeleteNil(errs []error) (new []error)
- func DeleteRecordNotFound(errs []error) (new []error)
- func DiffRedhat(old, new *models.RedhatCVE, config config.RedhatWatchCve) (body string)
- func Exec(command string, args []string) (string, error)
- func Exists(path string) (bool, error)
- func FetchConcurrently(urls []string, concurrency, wait int) (responses [][]byte, err error)
- func FetchURL(url, apikey string) ([]byte, error)
- func FileWalk(root string, targetFiles map[string]struct{}, ...) error
- func FilterTargets(prefixPath string, targets map[string]struct{}) (map[string]struct{}, error)
- func GenWorkers(num, wait int) chan<- func()
- func GetDefaultLogDir() string
- func IsCommandAvailable(name string) bool
- func Major(osVer string) (majorVersion string)
- func SetCacheDir(dir string)
- func SetLogger(logDir string, debug, logJSON bool)
- func StringInSlice(a string, list []string) bool
- func TrimSpaceNewline(str string) string
- type ProgressBar
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Quiet = false
)
Functions ¶
func DefaultCacheDir ¶ added in v0.1.11
func DefaultCacheDir() string
func DeleteRecordNotFound ¶
DeleteRecordNotFound deletes gorm.ErrRecordNotFound in errs
func DiffRedhat ¶
func DiffRedhat(old, new *models.RedhatCVE, config config.RedhatWatchCve) (body string)
func FetchConcurrently ¶
FetchConcurrently fetches concurrently
func FilterTargets ¶ added in v0.1.11
func GetDefaultLogDir ¶
func GetDefaultLogDir() string
GetDefaultLogDir returns default log directory
func IsCommandAvailable ¶ added in v0.1.11
func SetCacheDir ¶ added in v0.1.11
func SetCacheDir(dir string)
func StringInSlice ¶ added in v0.1.11
func TrimSpaceNewline ¶
TrimSpaceNewline deletes space character and newline character(CR/LF)
Types ¶
type ProgressBar ¶ added in v0.1.11
type ProgressBar struct {
// contains filtered or unexported fields
}
func PbStartNew ¶ added in v0.1.11
func PbStartNew(total int) *ProgressBar
func (*ProgressBar) Finish ¶ added in v0.1.11
func (p *ProgressBar) Finish()
func (*ProgressBar) Increment ¶ added in v0.1.11
func (p *ProgressBar) Increment()
type Spinner ¶ added in v0.1.11
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶ added in v0.1.11
Click to show internal directories.
Click to hide internal directories.