Documentation
¶
Index ¶
- type Advisory
- type Config
- type FirstPatchedVersion
- type GetVulnerabilitiesQuery
- type GitHubClient
- type GithubCVSS
- type GithubClient
- type GithubSecurityAdvisory
- type GithubSecurityAdvisoryJson
- type Identifier
- type Package
- type PageInfo
- type Reference
- type SecurityAdvisoryEcosystem
- type SecurityVulnerabilities
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig(client GithubClient) Config
type FirstPatchedVersion ¶
type FirstPatchedVersion struct {
Identifier string
}
type GetVulnerabilitiesQuery ¶
type GetVulnerabilitiesQuery struct {
SecurityVulnerabilities `graphql:"securityVulnerabilities(ecosystem: $ecosystem, first: $total, after: $cursor)"`
}
type GitHubClient ¶
type GitHubClient struct {
ApiKey string
}
type GithubCVSS ¶
type GithubClient ¶
type GithubSecurityAdvisory ¶
type Identifier ¶
type SecurityAdvisoryEcosystem ¶
type SecurityAdvisoryEcosystem string
https://developer.github.com/v4/enum/securityadvisoryecosystem/
var ( Composer SecurityAdvisoryEcosystem = "COMPOSER" Maven SecurityAdvisoryEcosystem = "MAVEN" Npm SecurityAdvisoryEcosystem = "NPM" Nuget SecurityAdvisoryEcosystem = "NUGET" Pip SecurityAdvisoryEcosystem = "PIP" Rubygems SecurityAdvisoryEcosystem = "RUBYGEMS" Go SecurityAdvisoryEcosystem = "GO" Rust SecurityAdvisoryEcosystem = "RUST" Erlang SecurityAdvisoryEcosystem = "ERLANG" Ecosystems = []SecurityAdvisoryEcosystem{Composer, Maven, Npm, Nuget, Pip, Rubygems, Go, Erlang, Rust} )
type SecurityVulnerabilities ¶
type SecurityVulnerabilities struct { Nodes []GithubSecurityAdvisory PageInfo PageInfo }
type Version ¶
type Version struct { FirstPatchedVersion FirstPatchedVersion VulnerableVersionRange string }
Click to show internal directories.
Click to hide internal directories.