Typo documentation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
parent
ce185ebe33
commit
c6c7a070a9
@ -12,7 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package packages defines PackagesDetector for several sources.
|
|
||||||
package packages
|
package packages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -25,14 +24,15 @@ import (
|
|||||||
"github.com/coreos/clair/worker/detectors"
|
"github.com/coreos/clair/worker/detectors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PacmanPackagesDetector implements PackagesDetector and detects pacman packages
|
// PacmanPackagesDetector implements PackagesDetector and detects pacman
|
||||||
|
// packages.
|
||||||
type PacmanPackagesDetector struct{}
|
type PacmanPackagesDetector struct{}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
detectors.RegisterPackagesDetector("pacman", &PacmanPackagesDetector{})
|
detectors.RegisterPackagesDetector("pacman", &PacmanPackagesDetector{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Detect detects packages using /var/lib/pacman/local from the input data
|
// Detect detects packages using /var/lib/pacman/local from the input data.
|
||||||
func (detector *PacmanPackagesDetector) Detect(data map[string][]byte) ([]*database.Package, error) {
|
func (detector *PacmanPackagesDetector) Detect(data map[string][]byte) ([]*database.Package, error) {
|
||||||
log.Errorf("Pacman: %v", data)
|
log.Errorf("Pacman: %v", data)
|
||||||
db, hasFile := data["var/lib/pacman"]
|
db, hasFile := data["var/lib/pacman"]
|
||||||
|
Loading…
Reference in New Issue
Block a user