licence_audit/audit_command

Types

pub type LicenceGateOutcome {
  LicenceGateOutcome(
    verdict: LicenceVerdict,
    completeness: vulnerability_command.CheckCompleteness,
    rows: List(report.Row),
    counts: report.Counts,
    coverage: exception.Coverage,
  )
}

Constructors

pub type LicenceVerdict {
  LicencesNotEnforced
  LicencesPassed
  LicencesBlocked
}

Constructors

  • LicencesNotEnforced
  • LicencesPassed
  • LicencesBlocked
pub type Outcome {
  Outcome(
    configuration: config.Policy,
    today: String,
    mode: report.Mode,
    licences: LicenceGateOutcome,
    vulnerabilities: vulnerability_command.VulnGateOutcome,
    packages: List(manifest.SbomEntry),
    review_failure: option.Option(error.Error),
    cache_warning: option.Option(String),
  )
}

Constructors

Values

pub fn run(
  options: cli.Options,
  source_clients: notice.Clients,
  batch_fetcher: fn(List(String)) -> Result(
    List(osv.BatchEntry),
    osv.Error,
  ),
  detail_fetcher: fn(String) -> Result(
    osv.Vulnerability,
    osv.Error,
  ),
  reporter: progress.Reporter,
) -> #(Result(Outcome, error.Error), progress.Reporter)
✨ Search Document