Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDepsDotDevClient
deprecated
func NewDepsDotDevClient() (*client, error)
NewDepsDotDevClient creates an object that satisfies both the IntrinsicTrustworthinessEvaluator and DependencyResolver interfaces, using the deps.dev API as the source of data. The intrinsic trustworthiness is calculated based on the OSSF scorecard that is returned by the deps.dev API.
Deprecated: in version 1 of package aggregdepscore, the deps.dev client will be moved to a new Go module, most likely in a new repository, and this function will be removed.
Types ¶
type DefaultScoreTrustworthinessConverter ¶
type DefaultScoreTrustworthinessConverter struct{}
func (*DefaultScoreTrustworthinessConverter) ScoreFromTrustworthiness ¶
func (c *DefaultScoreTrustworthinessConverter) ScoreFromTrustworthiness(trustworthiness float64) float64
func (*DefaultScoreTrustworthinessConverter) TrustworthinessFromScore ¶
func (c *DefaultScoreTrustworthinessConverter) TrustworthinessFromScore(score float64) float64
type DependencyResolver ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
func NewEvaluator ¶
func NewEvaluator(intrinsic IntrinsicTrustworthinessEvaluator, deps DependencyResolver) (*Evaluator, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.