Documentation
¶
Index ¶
Constants ¶
View Source
const ( StrictAll = 0 StrictLockAndPairs = 1 StrictPairs = 2 )
Variables ¶
This section is empty.
Functions ¶
func DefaultExclusions ¶
func DefaultExclusions() []string
Types ¶
type CompiledFormat ¶
type CompiledFormat struct {
ManifestFileRegex *regexp.Regexp
DocumentationUrl *string
LockFileRegexes []*regexp.Regexp
// contains filtered or unexported fields
}
func NewCompiledFormat ¶
func NewCompiledFormat(format *Format) (*CompiledFormat, error)
func (*CompiledFormat) MatchFile ¶
func (format *CompiledFormat) MatchFile(filename string) bool
func (*CompiledFormat) MatchLockFile ¶
func (format *CompiledFormat) MatchLockFile(filename string) bool
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
func (*Finder) GetGroups ¶
func (finder *Finder) GetGroups(rootPath string, exclusions []string, lockfileOnly bool, strictness int) (Groups, error)
GetGroups return all file groups in specified path recursively.
func (*Finder) GetSupportedFormats ¶
func (finder *Finder) GetSupportedFormats() ([]*CompiledFormat, error)
GetSupportedFormats returns all supported dependency file formats
type Group ¶
type Group struct {
ManifestFile string `json:"manifestFile"`
CompiledFormat *CompiledFormat `json:"-"`
LockFiles []string `json:"lockFiles"`
}
func NewGroup ¶
func NewGroup(manifestFile string, format *CompiledFormat, lockFiles []string) *Group
func (*Group) GetAllFiles ¶
func (*Group) HasLockFiles ¶
Click to show internal directories.
Click to hide internal directories.