This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Showing
53 changed files
with
2,431 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,6 @@ public enum DetectTool { | |
SIGNATURE_SCAN, | ||
BINARY_SCAN, | ||
POLARIS, | ||
DOCKER; | ||
|
||
DOCKER, | ||
BAZEL; | ||
} |
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
43 changes: 43 additions & 0 deletions
43
...src/main/groovy/com/blackducksoftware/integration/hub/detect/tool/SimpleToolDetector.java
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* hub-detect | ||
* | ||
* Copyright (C) 2019 Black Duck Software, Inc. | ||
* http://www.blackducksoftware.com/ | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package com.blackducksoftware.integration.hub.detect.tool; | ||
|
||
import com.blackducksoftware.integration.hub.detect.DetectTool; | ||
import com.blackducksoftware.integration.hub.detect.detector.DetectorException; | ||
import com.blackducksoftware.integration.hub.detect.workflow.extraction.Extraction; | ||
import com.blackducksoftware.integration.hub.detect.workflow.search.result.DetectorResult; | ||
|
||
public abstract class SimpleToolDetector { | ||
private final DetectTool toolEnum; | ||
|
||
public SimpleToolDetector(final DetectTool toolEnum) { | ||
this.toolEnum = toolEnum; | ||
} | ||
public DetectTool getToolEnum() { | ||
return toolEnum; | ||
} | ||
public abstract DetectorResult applicable(); | ||
public abstract DetectorResult extractable() throws DetectorException; | ||
public abstract Extraction extract(); | ||
} |
Oops, something went wrong.