File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
tools/resourcedocsgen/pkg/registry/svc Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,6 @@ type PackageMetadataProvider interface {
40
40
ListPackageMetadata (ctx context.Context ) ([]pkg.PackageMeta , error )
41
41
}
42
42
43
- // HTTPClient is an interface for making HTTP requests
44
- //
45
- //go:generate mockgen -destination=mock_httpclient_test.go -package=svc github.com/pulumi/registry/tools/resourcedocsgen/pkg/registry/svc HTTPClient
46
- type HTTPClient interface {
47
- Do (req * http.Request ) (* http.Response , error )
48
- }
49
-
50
43
// fileSystemProvider implements PackageMetadataProvider using the local yaml data files
51
44
// in the pulumi/registry repository.
52
45
type fileSystemProvider struct {
@@ -57,7 +50,7 @@ type fileSystemProvider struct {
57
50
// to retrieve package metadata.
58
51
type registryAPIProvider struct {
59
52
apiURL string
60
- client HTTPClient
53
+ client * http. Client
61
54
}
62
55
63
56
// PackageMetadata represents the API response structure for package metadata
You can’t perform that action at this time.
0 commit comments