Documentation
¶
Index ¶
- Variables
- func CheckIfCliUpdateIsAvailable(config *Config)
- func GetVerdexVersion() string
- func LogBanner()
- func ProxifyRequest(request *http.Request)
- func RandomAlphaString(length int) string
- func SetupLogging()
- type CVE
- type Cache
- type CacheProduct
- type CacheProductVersions
- type CacheReleases
- type CacheReleasesCli
- type CacheReleasesTemplates
- type Config
- type Detection
- type DetectionUpdateRecommendations
- type Environment
- type Execution
- type TemplatesSource
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplatesDefaultDirectory = path.Join(userHomeDir, "verdex-templates")
Templates
View Source
var TemplatesOfficialOrganization = "verdexlab"
View Source
var TemplatesOfficialRepository = "verdex"
Functions ¶
func CheckIfCliUpdateIsAvailable ¶
func CheckIfCliUpdateIsAvailable(config *Config)
Check if a Verdex CLI update is available and render message
func ProxifyRequest ¶ added in v1.0.0
func RandomAlphaString ¶
Generate a random string (a-z) of given length
Types ¶
type Cache ¶
type Cache struct {
Config *Config `yaml:"-"`
Releases CacheReleases `yaml:"releases"`
Products map[string]*CacheProduct `yaml:"products"`
}
type CacheProduct ¶ added in v0.1.0
type CacheProduct struct {
Versions CacheProductVersions `yaml:"versions"`
}
type CacheProductVersions ¶ added in v0.1.0
type CacheReleases ¶
type CacheReleases struct {
Cli CacheReleasesCli `yaml:"cli"`
Templates CacheReleasesTemplates `yaml:"templates"`
}
type CacheReleasesCli ¶
type CacheReleasesTemplates ¶
type Detection ¶
type Detection struct {
StartedAt time.Time
EndedAt time.Time
Target string
Product string
Variables map[string]string
TotalRequests uint
Success bool
PossibleVersions []*semver.Version
Vulnerable bool
CVEs []*CVE
UpdateRecommendations *DetectionUpdateRecommendations `json:"update_recommendations,omitempty"`
}
type DetectionUpdateRecommendations ¶ added in v0.1.0
type Environment ¶
type Environment string
const ( EnvironmentDevelopment Environment = "development" EnvironmentReleaseDocker Environment = "release-docker" EnvironmentReleaseGoInstall Environment = "release-go-install" EnvironmentReleaseBinary Environment = "release-binary" EnvironmentReleaseWasmJS Environment = "release-wasmjs" )
func GetEnvironment ¶
func GetEnvironment() Environment
type Execution ¶
type Execution struct {
Config Config
Targets []string
TargetsListPath string
Product string
TestVersion string
OutputJsonPath string
Detections []*Detection
}
func (*Execution) NewDetection ¶
type TemplatesSource ¶
type TemplatesSource string
const ( TemplatesSourceGitHubOfficial TemplatesSource = "github-official" TemplatesSourceLocalDirectory TemplatesSource = "local-directory" )
Click to show internal directories.
Click to hide internal directories.