File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Diagnostics ;
2
+ using System . Collections . Generic ;
3
3
using System . IO ;
4
4
using System . Security . Cryptography . X509Certificates ;
5
5
using Semmle . Util ;
@@ -9,6 +9,21 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
9
9
{
10
10
public class DependabotProxy : IDisposable
11
11
{
12
+ /// <summary>
13
+ /// Represents configurations for package registries.
14
+ /// </summary>
15
+ public struct RegistryConfig
16
+ {
17
+ /// <summary>
18
+ /// The type of package registry.
19
+ /// </summary>
20
+ public string Type { get ; set ; }
21
+ /// <summary>
22
+ /// The URL of the package registry.
23
+ /// </summary>
24
+ public string URL { get ; set ; }
25
+ }
26
+
12
27
private readonly string host ;
13
28
private readonly string port ;
14
29
@@ -17,6 +32,10 @@ public class DependabotProxy : IDisposable
17
32
/// </summary>
18
33
internal string Address { get ; }
19
34
/// <summary>
35
+ /// The URLs of package registries that are configured for the proxy.
36
+ /// </summary>
37
+ internal HashSet < string > RegistryURLs { get ; }
38
+ /// <summary>
20
39
/// The path to the temporary file where the certificate is stored.
21
40
/// </summary>
22
41
internal string ? CertificatePath { get ; private set ; }
@@ -75,6 +94,7 @@ private DependabotProxy(string host, string port)
75
94
this . host = host ;
76
95
this . port = port ;
77
96
this . Address = $ "http://{ this . host } :{ this . port } ";
97
+ this . RegistryURLs = new HashSet < string > ( ) ;
78
98
}
79
99
80
100
public void Dispose ( )
You can’t perform that action at this time.
0 commit comments