driver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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 GetResponseType

type GetResponseType struct {
	AnalysedDeps       []AnalysedDepsType `json:"analyzed_dependencies"`
	RegistrationStatus string             `json:"registration_status"`
}

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

type Transitives struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

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

Jump to

Keyboard shortcuts

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