infra

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Clients

func (*Clients) Database

func (x *Clients) Database() interfaces.Database

func (*Clients) GitHubApp

func (x *Clients) GitHubApp() interfaces.GitHubApp

func (*Clients) Policy

func (x *Clients) Policy() interfaces.Policy

type DBMock

type DBMock struct {
	GetVulnRecordsCount int

	PutVulnRecordsCount int
	// contains filtered or unexported fields
}

func (*DBMock) GetVulnRecords

func (x *DBMock) GetVulnRecords(ctx *model.Context, repoID model.GitHubRepoID) (model.VulnRecords, error)

func (*DBMock) PutVulnRecords

func (x *DBMock) PutVulnRecords(ctx *model.Context, vulns []model.VulnRecord) error

type Option

type Option func(*Clients)

func WithDB

func WithDB(db interfaces.Database) Option

func WithGitHubApp

func WithGitHubApp(ghApp interfaces.GitHubApp) Option

func WithPolicy

func WithPolicy(policy interfaces.Policy) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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