Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultExclusions ¶
func DefaultExclusions() []string
Types ¶
type CompiledFormat ¶
type CompiledFormat struct { Regex *regexp.Regexp DocumentationUrl *string LockFileRegexes []*regexp.Regexp }
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) (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 { FilePath string `json:"dependencyFile"` CompiledFormat *CompiledFormat `json:"-"` RelatedFiles []string `json:"lockFiles"` }
func NewGroup ¶
func NewGroup(filePath string, format *CompiledFormat, relatedFiles []string) *Group
func (*Group) GetAllFiles ¶
Click to show internal directories.
Click to hide internal directories.