Documentation ¶
Overview ¶
Deprecated: this is now private and should not be used outside the scanner
Index ¶
- Constants
- Variables
- func MakeVersionRequests(queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)deprecated
- func MakeVersionRequestsWithContext(ctx context.Context, queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)deprecated
- func VersionQuery(system depsdevpb.System, name string, version string) *depsdevpb.GetVersionRequestdeprecated
Constants ¶
const DepsdevAPI = "api.deps.dev:443"
DepsdevAPI is the URL to the deps.dev API. It is documented at docs.deps.dev/api.
Deprecated: this is now private and should not be used outside the scanner
Variables ¶
var System = map[lockfile.Ecosystem]depsdevpb.System{ lockfile.NpmEcosystem: depsdevpb.System_NPM, lockfile.NuGetEcosystem: depsdevpb.System_NUGET, lockfile.CargoEcosystem: depsdevpb.System_CARGO, lockfile.GoEcosystem: depsdevpb.System_GO, lockfile.MavenEcosystem: depsdevpb.System_MAVEN, lockfile.PipEcosystem: depsdevpb.System_PYPI, }
System maps from a lockfile system to the depsdev API system.
Deprecated: this is now private and should not be used outside the scanner
Functions ¶
func MakeVersionRequests
deprecated
func MakeVersionRequests(queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)
MakeVersionRequests wraps MakeVersionRequestsWithContext using context.Background.
Deprecated: this is now private and should not be used outside the scanner
func MakeVersionRequestsWithContext
deprecated
added in
v1.7.1
func MakeVersionRequestsWithContext(ctx context.Context, queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)
MakeVersionRequestsWithContext calls the deps.dev GetVersion gRPC API endpoint for each query. It makes these requests concurrently, sharing the single HTTP/2 connection. The order in which the requests are specified should correspond to the order of licenses returned by this function.
Deprecated: this is now private and should not be used outside the scanner
func VersionQuery
deprecated
Types ¶
This section is empty.