OssIndexClient

class OssIndexClient(connectTimeoutSeconds: Long = 15, readTimeoutSeconds: Long = 30, token: String? = null, client: OkHttpClient = OkHttpClient.Builder() .connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS) .readTimeout(readTimeoutSeconds, TimeUnit.SECONDS) .build(), baseUrl: HttpUrl = "https://api.guide.sonatype.com/".toHttpUrl())

Constructors

Link copied to clipboard
constructor(connectTimeoutSeconds: Long = 15, readTimeoutSeconds: Long = 30, token: String? = null, client: OkHttpClient = OkHttpClient.Builder() .connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS) .readTimeout(readTimeoutSeconds, TimeUnit.SECONDS) .build(), baseUrl: HttpUrl = "https://api.guide.sonatype.com/".toHttpUrl())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getVulnerabilities(dependencies: List<ParsedDependency>, failOnError: Boolean = false): Map<String, List<Vulnerability>>