@@ -26,19 +26,6 @@ type DataSource interface {
26
26
GetModuleInfo (ctx context.Context , modulePath , version string ) (* ModuleInfo , error )
27
27
// GetPathInfo returns information about a path.
28
28
GetPathInfo (ctx context.Context , path , inModulePath , inVersion string ) (outModulePath , outVersion string , isPackage bool , err error )
29
- // GetPseudoVersionsForModule returns LegacyModuleInfo for all known
30
- // pseudo-versions for the module corresponding to modulePath.
31
- GetPseudoVersionsForModule (ctx context.Context , modulePath string ) ([]* ModuleInfo , error )
32
- // GetPseudoVersionsForModule returns LegacyModuleInfo for all known
33
- // pseudo-versions for any module containing a package with the given import
34
- // path.
35
- GetPseudoVersionsForPackageSeries (ctx context.Context , pkgPath string ) ([]* ModuleInfo , error )
36
- // GetTaggedVersionsForModule returns LegacyModuleInfo for all known tagged
37
- // versions for the module corresponding to modulePath.
38
- GetTaggedVersionsForModule (ctx context.Context , modulePath string ) ([]* ModuleInfo , error )
39
- // GetTaggedVersionsForModule returns LegacyModuleInfo for all known tagged
40
- // versions for any module containing a package with the given import path.
41
- GetTaggedVersionsForPackageSeries (ctx context.Context , pkgPath string ) ([]* ModuleInfo , error )
42
29
43
30
// TODO(golang/go#39629): Deprecate these methods.
44
31
//
@@ -47,20 +34,33 @@ type DataSource interface {
47
34
// package paths satisfy this query, it should prefer the module with
48
35
// the longest path.
49
36
LegacyGetDirectory (ctx context.Context , dirPath , modulePath , version string , fields FieldSet ) (_ * LegacyDirectory , err error )
37
+ // LegacyGetModuleInfo returns the LegacyModuleInfo corresponding to modulePath and
38
+ // version.
39
+ LegacyGetModuleInfo (ctx context.Context , modulePath , version string ) (* LegacyModuleInfo , error )
50
40
// LegacyGetModuleLicenses returns all top-level Licenses for the given modulePath
51
41
// and version. (i.e., Licenses contained in the module root directory)
52
42
LegacyGetModuleLicenses (ctx context.Context , modulePath , version string ) ([]* licenses.License , error )
53
43
// LegacyGetPackage returns the LegacyVersionedPackage corresponding to the given package
54
44
// pkgPath, modulePath, and version. When multiple package paths satisfy this query, it
55
45
// should prefer the module with the longest path.
56
46
LegacyGetPackage (ctx context.Context , pkgPath , modulePath , version string ) (* LegacyVersionedPackage , error )
47
+ // LegacyGetPackagesInModule returns LegacyPackages contained in the module version
48
+ // specified by modulePath and version.
49
+ LegacyGetPackagesInModule (ctx context.Context , modulePath , version string ) ([]* LegacyPackage , error )
57
50
// LegacyGetPackageLicenses returns all Licenses that apply to pkgPath, within the
58
51
// module version specified by modulePath and version.
59
52
LegacyGetPackageLicenses (ctx context.Context , pkgPath , modulePath , version string ) ([]* licenses.License , error )
60
- // GetPackagesInModule returns LegacyPackages contained in the module version
61
- // specified by modulePath and version.
62
- LegacyGetPackagesInModule (ctx context.Context , modulePath , version string ) ([]* LegacyPackage , error )
63
- // LegacyGetModuleInfo returns the LegacyModuleInfo corresponding to modulePath and
64
- // version.
65
- LegacyGetModuleInfo (ctx context.Context , modulePath , version string ) (* LegacyModuleInfo , error )
53
+ // LegacyGetPsuedoVersionsForModule returns ModuleInfo for all known
54
+ // pseudo-versions for the module corresponding to modulePath.
55
+ LegacyGetPsuedoVersionsForModule (ctx context.Context , modulePath string ) ([]* ModuleInfo , error )
56
+ // LegacyGetPsuedoVersionsForModule returns ModuleInfo for all known
57
+ // pseudo-versions for any module containing a package with the given import
58
+ // path.
59
+ LegacyGetPsuedoVersionsForPackageSeries (ctx context.Context , pkgPath string ) ([]* ModuleInfo , error )
60
+ // LegacyGetTaggedVersionsForModule returns ModuleInfo for all known tagged
61
+ // versions for the module corresponding to modulePath.
62
+ LegacyGetTaggedVersionsForModule (ctx context.Context , modulePath string ) ([]* ModuleInfo , error )
63
+ // LegacyGetTaggedVersionsForModule returns ModuleInfo for all known tagged
64
+ // versions for any module containing a package with the given import path.
65
+ LegacyGetTaggedVersionsForPackageSeries (ctx context.Context , pkgPath string ) ([]* ModuleInfo , error )
66
66
}
0 commit comments