Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysedDepsType ¶
type AnalysedDepsType struct {
Transitives []Transitives `json:"dependencies"`
Ecosystem string `json:"ecosystem"`
LatestVersion string `json:"latest_version"`
Licenses []interface{} `json:"licenses"`
Name string `json:"name"`
PrivateVulnerabilities []VulnerabilitiesType `json:"private_vulnerabilities"`
PublicVulnerabilities []VulnerabilitiesType `json:"public_vulnerabilities"`
RecommendedVersion string `json:"recommended_version"`
Version string `json:"version"`
VulnerableDependencies []AnalysedDepsType `json:"vulnerable_dependencies"`
}
AnalysedDepsType is type for Analysed Deps API Response
type ErrorResponse ¶ added in v0.2.0
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is a struct to unmarshal API Error response
type GetResponseType ¶
type GetResponseType struct {
AnalysedDeps []AnalysedDepsType `json:"analyzed_dependencies"`
RegistrationStatus string `json:"registration_status"`
StackID string `json:"external_request_id"`
}
GetResponseType is a argtype of RequestServer func
type PostResponseType ¶
type PostResponseType struct {
SubmittedAt string `json:"submitted_at,omitempty"`
Status string `json:"status,omitempty"`
ID string `json:"id,omitempty"`
}
PostResponseType is a argtype of RequestServer func
type ReadManifestResponse ¶
type ReadManifestResponse struct {
DepsTreePath string `json:"manifest,omitempty"`
RawFileName string `json:"file,omitempty"`
RawFilePath string `json:"filepath,omitempty"`
Ecosystem string `json:"ecosystem,omitempty"`
DepsTreeFileName string `json:"deps_tree,omitempty"`
}
ReadManifestResponse is arg type of readManifest func
type RequestType ¶
type RequestType struct {
UserID string
Host string
ThreeScaleToken string
RawManifestFile string
DepsTreePath string
}
RequestType is a argtype of RequestServer func
type StackAnalysisInterface ¶
type StackAnalysisInterface interface {
DepsTreeFileName() string
Ecosystem() string
IsSupportedManifestFormat(string) bool
GeneratorDependencyTree(string) string
}
StackAnalysisInterface is implemented by each ecosystem
type Transitives ¶
Transitives type for Transitives
type VulnerabilitiesType ¶
type VulnerabilitiesType struct {
CveID []string `json:"cve_ids"`
Cvss float32 `json:"cvss"`
ID string `json:"id"`
Severity string `json:"severity"`
Title string `json:"title"`
URL string `json:"url"`
Kind string `json:"kind"`
}
VulnerabilitiesType is a Vulnerability Response structure
Click to show internal directories.
Click to hide internal directories.