infra

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients added in v0.1.5

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

func New

func New(options ...Option) *Clients

func (*Clients) DB added in v0.1.5

func (x *Clients) DB() *sql.DB

func (*Clients) GitHubApp added in v0.2.0

func (x *Clients) GitHubApp() gh.Client

func (*Clients) HTTPClient added in v0.2.0

func (x *Clients) HTTPClient() HTTPClient

func (*Clients) Trivy added in v0.1.5

func (x *Clients) Trivy() trivy.Client

type HTTPClient added in v0.2.0

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Option added in v0.2.0

type Option func(*Clients)

func WithDB added in v0.2.0

func WithDB(client *sql.DB) Option

func WithGitHubApp added in v0.2.0

func WithGitHubApp(client gh.Client) Option

func WithHTTPClient added in v0.2.0

func WithHTTPClient(client HTTPClient) Option

func WithTrivy added in v0.2.0

func WithTrivy(client trivy.Client) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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