Documentation ¶
Index ¶
- Variables
- type Context
- type CtxOption
- type EvalInputSarif
- type EvalInputTrivyVuln
- type EvalOutput
- type GitHubApp
- type GitHubAppID
- type GitHubAppInstallID
- type GitHubIssue
- type GitHubIssueContents
- type GitHubPrivateKey
- type GitHubRepo
- type GitHubRepoID
- type GitHubSecret
- type RecordID
- type SarifKey
- type TrivyLangPkgKey
- type TrivyOSPkgKey
- type VulnRecord
- type VulnRecords
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
func (*Context) GitHubInstallID ¶ added in v0.0.3
func (*Context) GitHubRepo ¶
func (x *Context) GitHubRepo() *GitHubRepo
type CtxOption ¶
type CtxOption func(*Context)
func WithContext ¶
func WithGitHubInstallationID ¶ added in v0.0.3
func WithGitHubRepo ¶
func WithGitHubRepo(repo *GitHubRepo) CtxOption
func WithLogger ¶
type EvalInputSarif ¶ added in v0.0.3
type EvalInputTrivyVuln ¶
type EvalInputTrivyVuln struct { Metadata *types.Metadata Result *types.Result Vuln *types.DetectedVulnerability }
func NewEvalInputTrivyVuln ¶
func NewEvalInputTrivyVuln(report types.Report, result types.Result, vuln types.DetectedVulnerability) *EvalInputTrivyVuln
type EvalOutput ¶
type GitHubApp ¶
type GitHubApp struct { AppID GitHubAppID InstallID GitHubAppInstallID PrivateKey GitHubPrivateKey WebhookSecret GitHubSecret }
type GitHubAppID ¶
type GitHubAppID int64
GitHub
func (GitHubAppID) Int64 ¶
func (x GitHubAppID) Int64() int64
type GitHubAppInstallID ¶
type GitHubAppInstallID int64
GitHub
func (GitHubAppInstallID) Int64 ¶
func (x GitHubAppInstallID) Int64() int64
type GitHubIssue ¶
type GitHubIssue struct { GitHubRepo GitHubIssueContents Assignees []string Labels []string }
type GitHubIssueContents ¶
type GitHubPrivateKey ¶
type GitHubPrivateKey string
GitHub
func (GitHubPrivateKey) Byte ¶
func (x GitHubPrivateKey) Byte() []byte
type GitHubRepo ¶
type GitHubRepo struct { RepoID GitHubRepoID Owner string Name string }
type GitHubRepoID ¶
type GitHubRepoID int64
GitHub
func (GitHubRepoID) String ¶
func (x GitHubRepoID) String() string
type TrivyLangPkgKey ¶
TrivyLangPkgKey is a key of vulnerability record for Trivy format
func (TrivyLangPkgKey) RecordID ¶
func (x TrivyLangPkgKey) RecordID() RecordID
type TrivyOSPkgKey ¶
/ TrivyLangPkgKey is a key of vulnerability record for Trivy format
func (TrivyOSPkgKey) RecordID ¶
func (x TrivyOSPkgKey) RecordID() RecordID
type VulnRecord ¶
type VulnRecords ¶
type VulnRecords []VulnRecord
func (VulnRecords) Find ¶
func (x VulnRecords) Find(id RecordID) *VulnRecord
Click to show internal directories.
Click to hide internal directories.