mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
* follow convention for naming catalogers Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cataloger name example Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
20 lines
666 B
Go
20 lines
666 B
Go
/*
|
|
Package swift provides a concrete Cataloger implementation relating to packages within the swift language ecosystem.
|
|
*/
|
|
package swift
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
func NewSwiftPackageManagerCataloger() *generic.Cataloger {
|
|
return generic.NewCataloger("swift-package-manager-cataloger").
|
|
WithParserByGlobs(parsePackageResolved, "**/Package.resolved", "**/.package.resolved")
|
|
}
|
|
|
|
// NewCocoapodsCataloger returns a new Swift Cocoapods lock file cataloger object.
|
|
func NewCocoapodsCataloger() *generic.Cataloger {
|
|
return generic.NewCataloger("cocoapods-cataloger").
|
|
WithParserByGlobs(parsePodfileLock, "**/Podfile.lock")
|
|
}
|