infra

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 9 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 {
	DB           db.Interface
	GitHub       github.Interface
	NewGitHubApp githubapp.Factory
	CheckPolicy  policy.Check
	Trivy        trivy.Interface
	OPAClient    opa.Interface
	Utils        *Utils
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Clients, error)

func (*Clients) GitHubAppClientID added in v0.1.5

func (x *Clients) GitHubAppClientID() string

func (*Clients) GitHubAppID added in v0.1.5

func (x *Clients) GitHubAppID() string

type Config added in v0.1.5

type Config struct {
	DBType   string
	DBConfig string `zlog:"secret"`

	GitHubAppID         int64
	GitHubAppPrivateKey string `zlog:"secret"`
	GitHubAppClientID   string
	GitHubAppSecret     string `zlog:"secret"`

	CheckPolicyData string

	OPA opa.Config

	TrivyPath string
}

type Utils

type Utils struct {
	Now      func() time.Time
	ReadFile func(fname string) ([]byte, error)
}

func NewUtils

func NewUtils() *Utils

Jump to

Keyboard shortcuts

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