pkgsite/internal
Amarjeet Anand f7303dcc15 internal: add GetLicenses by path
This change introduces a new method on the DataSource interface,
GetLicenses, which returns the licenses that apply for a given path,
module path, and resolved version combination.
A license in the current or any parent directory of the specified path
applies to it.

Fixes golang/go#40027

Change-Id: If91429ac12880ac3b6254bf0acd7d3ac983c93e7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241718
Reviewed-by: Julie Qiu <julie@golang.org>
2020-07-15 04:05:21 +00:00
..
auth all: rename module to golang.org/x/pkgsite 2020-04-23 16:18:43 +00:00
breaker internal/breaker: fix typo 2020-06-26 17:27:15 +00:00
complete all: rename module to golang.org/x/pkgsite 2020-04-23 16:18:43 +00:00
config all: set GoogleTagManagerID using environment variable 2020-07-13 18:29:39 +00:00
database all.bash,internal: force DB testing in CI 2020-06-22 14:34:26 +00:00
dcensus all: rename module to golang.org/x/pkgsite 2020-04-23 16:18:43 +00:00
derrors internal/worker: remove special handling for status 2020-06-22 14:53:07 +00:00
experiment internal/experiment: improve ergonomics for NewSet and NewContext 2020-07-06 15:32:32 +00:00
fetch internal/fetch: add versioning for import packages from same module 2020-07-14 16:10:01 +00:00
frontend content,internal: fix markdown badge snippet 2020-07-14 20:51:22 +00:00
index all: rename module to golang.org/x/pkgsite 2020-04-23 16:18:43 +00:00
licenses internal/licenses: fix typos 2020-06-29 21:19:35 +00:00
log internal/{log,worker}: label fetch log messages with module@version 2020-06-04 00:01:50 +00:00
middleware content,internal: add badge generation for package authors 2020-07-14 18:56:54 +00:00
postgres internal: add GetLicenses by path 2020-07-15 04:05:21 +00:00
proxy internal/proxy: link TODO in test_helper.go to Go issue 2020-07-06 15:01:38 +00:00
proxydatasource internal: add GetLicenses by path 2020-07-15 04:05:21 +00:00
queue internal/queue: refactor existing queue creators into queue.New 2020-07-08 16:06:55 +00:00
secrets all: clean up issue links 2020-06-23 12:51:41 +00:00
source internal/fetch/dochtml: update package documentation and issue numbers 2020-06-30 00:10:31 +00:00
stdlib internal/stdlib: use less-than for Compare comparison 2020-07-07 17:20:30 +00:00
teeproxy internal/teeproxy: use environment var to enable forwarding 2020-07-10 21:16:44 +00:00
testing internal: remove New suffix from structs 2020-07-10 17:32:36 +00:00
version internal/{etl,fetch}: move FetchAndInsertVersion to internal/etl 2020-03-27 16:46:50 -04:00
worker internal/worker: replace GetModuleInfo with LegacyGetModuleInfo 2020-07-07 20:15:42 +00:00
xcontext internal/xcontent: fix staticcheck error SA1029 2020-04-17 18:18:54 +00:00
datasource.go internal: add GetLicenses by path 2020-07-15 04:05:21 +00:00
discovery.go internal: remove New suffix from structs 2020-07-10 17:32:36 +00:00
discovery_test.go internal: define V1Path 2020-05-04 17:27:04 +00:00
experiment.go internal/teeproxy: use environment var to enable forwarding 2020-07-10 21:16:44 +00:00