feat: Add PMG to orchestrate installation

This commit is contained in:
abhisek
2025-05-14 12:46:24 +05:30
parent 96842cfcf2
commit 08e2eac117
5 changed files with 90 additions and 10 deletions
+7
View File
@@ -20,6 +20,9 @@ type malysisQueryAnalyzer struct {
Config MalysisQueryAnalyzerConfig
}
var _ Analyzer = &malysisQueryAnalyzer{}
var _ MalysisAnalyzer = &malysisQueryAnalyzer{}
func NewMalysisQueryAnalyzer(config MalysisQueryAnalyzerConfig) (*malysisQueryAnalyzer, error) {
client, err := drygrpc.GrpcClient("pmg-malysis-query",
"community-api.safedep.io", "443", "", http.Header{}, []grpc.DialOption{})
@@ -33,6 +36,10 @@ func NewMalysisQueryAnalyzer(config MalysisQueryAnalyzerConfig) (*malysisQueryAn
}, nil
}
func (a *malysisQueryAnalyzer) Name() string {
return "malysis-query"
}
func (a *malysisQueryAnalyzer) Analyze(ctx context.Context,
packageVersion *packagev1.PackageVersion) (*MalysisResult, error) {