mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 11:06:43 +01:00
18 lines
473 B
Go
18 lines
473 B
Go
/*
|
|
Package swift provides a concrete Cataloger implementation for Podfile.lock files.
|
|
*/
|
|
package swift
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg/cataloger/common"
|
|
)
|
|
|
|
// NewCocoapodsCataloger returns a new Swift Cocoapods lock file cataloger object.
|
|
func NewCocoapodsCataloger() *common.GenericCataloger {
|
|
globParsers := map[string]common.ParserFn{
|
|
"**/Podfile.lock": parsePodfileLock,
|
|
}
|
|
|
|
return common.NewGenericCataloger(nil, globParsers, "cocoapods-cataloger")
|
|
}
|