Documentation
¶
Overview ¶
Package depsdev implements a Bomly license matcher backed by the deps.dev API.
Index ¶
Constants ¶
View Source
const (
// SourceType identifies deps.dev license provenance in sdk.PackageLicense.Type.
SourceType = "external-depsdev"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker enriches package licenses from deps.dev.
func (*Checker) Applicable ¶
Applicable reports whether the checker applies to the request.
func (*Checker) Descriptor ¶
func (c *Checker) Descriptor() sdk.MatcherDescriptor
Descriptor returns the matcher registration metadata.
func (*Checker) Match ¶
func (c *Checker) Match(ctx context.Context, req sdk.MatchRequest) (sdk.MatchResult, error)
Match enriches missing package licenses via deps.dev.
type Config ¶
type Config struct {
APIBase string
CacheDir string
CacheTTL time.Duration
Logger *zap.Logger
Client *http.Client
HTTPClientProvider *sdk.HTTPClientProvider
}
Config configures the deps.dev license matcher.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a production-ready deps.dev matcher config.
Click to show internal directories.
Click to hide internal directories.