-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e98d2f7
commit d3f29bc
Showing
10 changed files
with
149 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
|
||
using ACM.Http; | ||
using ACM.Kernel; | ||
using APC.Kernel.Models; | ||
using APC.Skopeo; | ||
using APM.Jetbrains.IDE; | ||
using APM.Pypi; | ||
using Foundatio; | ||
using Foundatio.Storage; | ||
using IJetbrains = APM.Jetbrains.IDE.IJetbrains; | ||
|
||
Pypi pypi = new(); | ||
SkopeoClient s = new(); | ||
|
||
Artifact artifact = new() { | ||
id = "IIU", | ||
processor = "jetbrains-ide" | ||
MinioFileStorageConnectionStringBuilder connection = | ||
new MinioFileStorageConnectionStringBuilder(); | ||
connection.Region = "bleh"; | ||
connection.AccessKey = "minio-apc"; | ||
connection.SecretKey = "minio-apc"; | ||
connection.EndPoint = "localhost:9000"; | ||
connection.Bucket = "APC"; | ||
|
||
MinioFileStorageOptions minio_options = new MinioFileStorageOptions() { | ||
AutoCreateBucket = true, | ||
ConnectionString = connection.ToString() | ||
}; | ||
|
||
IJetbrains jetbrains = new Jetbrains(); | ||
|
||
Artifact result = await jetbrains.ProcessArtifact(artifact); | ||
IFileStorage storage = new MinioFileStorage(minio_options); | ||
FileSystem fs = new FileSystem(storage); | ||
|
||
|
||
string url = "http://localhost:9001/static/js/main.379b5c5e.js"; | ||
RemoteFile file = new RemoteFile(url, fs); | ||
string output = fs.GetArtifactPath("npm", url); | ||
|
||
await file.Get(output); | ||
//Artifact p = await pypi.ProcessArtifact(artifact); | ||
Console.WriteLine("---"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters