Documentation ¶
Index ¶
- Constants
- type Inventory
- func (i *Inventory) AddPackage(ctx context.Context, pkg *models.PackageInsights, workdir string) error
- func (i *Inventory) Findings(ctx context.Context) (*opa.FindingsResult, error)
- func (i *Inventory) Purls() []string
- func (i *Inventory) Reputation(ctx context.Context) (*pkgsupply.ReputationResponse, error)
- type ReputationClient
- type Scanner
Constants ¶
View Source
const MAX_DEPTH = 150
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory struct { Packages []*models.PackageInsights // contains filtered or unexported fields }
func NewInventory ¶
func NewInventory(opa *opa.Opa, pkgsupplyClient ReputationClient) *Inventory
func (*Inventory) AddPackage ¶
func (*Inventory) Reputation ¶
type ReputationClient ¶
type Scanner ¶
type Scanner struct { Path string Package *models.PackageInsights ResolvedPurls map[string]bool }
func NewScanner ¶
func (*Scanner) GithubActionsMetadata ¶
func (s *Scanner) GithubActionsMetadata() ([]models.GithubActionsMetadata, error)
func (*Scanner) GithubWorkflows ¶
func (s *Scanner) GithubWorkflows() ([]models.GithubActionsWorkflow, error)
func (*Scanner) GitlabciConfigs ¶
func (s *Scanner) GitlabciConfigs() ([]models.GitlabciConfig, error)
Click to show internal directories.
Click to hide internal directories.