internal.go (1170B)
1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package internal contains functionality for x/vuln. 6 package internal 7 8 // IDDirectory is the name of the directory that contains entries 9 // listed by their IDs. 10 const IDDirectory = "ID" 11 12 // Pseudo-module paths used for parts of the Go system. 13 // These are technically not valid module paths, so we 14 // mustn't pass them to module.EscapePath. 15 // Keep in sync with vulndb/internal/database/generate.go. 16 const ( 17 // GoStdModulePath is the internal Go module path string used 18 // when listing vulnerabilities in standard library. 19 GoStdModulePath = "stdlib" 20 21 // GoCmdModulePath is the internal Go module path string used 22 // when listing vulnerabilities in the go command. 23 GoCmdModulePath = "toolchain" 24 25 // UnknownModulePath is a special module path for when we cannot work out 26 // the module for a package. 27 UnknownModulePath = "unknown-module" 28 29 // UnknownPackagePath is a special package path for when we cannot work out 30 // the packagUnknownModulePath = "unknown" 31 UnknownPackagePath = "unknown-package" 32 )