Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleReporter ¶
type ConsoleReporter struct{}
ConsoleReporter is used to print in the console the information found during the scan
func (*ConsoleReporter) Generate ¶
func (cr *ConsoleReporter) Generate(results []PackageResult) interface{}
Generate prints the information provided
type DefaultFileResult ¶
type DefaultFileResult struct {
// contains filtered or unexported fields
}
DefaultFileResult is the file result holder by default
func NewDefaultFileResult ¶
func NewDefaultFileResult(name string) *DefaultFileResult
NewDefaultFileResult is the recommended way to create a DefaultFileResult
func (*DefaultFileResult) AddResult ¶
func (dfr *DefaultFileResult) AddResult(result Result)
AddResult adds a new result to the slice of results
func (*DefaultFileResult) GetFilepath ¶
func (dfr *DefaultFileResult) GetFilepath() string
GetFilepath returns the filepath to which the errors belong
func (*DefaultFileResult) GetResults ¶
func (dfr *DefaultFileResult) GetResults() []Result
GetResults returns the Results from the file
type DefaultPackageResult ¶
type DefaultPackageResult struct {
// contains filtered or unexported fields
}
DefaultPackageResult is the package result holder by default
func NewDefaultPackageResult ¶
func NewDefaultPackageResult(name string, fileResults []FileResult) *DefaultPackageResult
NewDefaultPackageResult is the recommended way to create a DefaultPackageResult
func (*DefaultPackageResult) GetFileResults ¶
func (dpr *DefaultPackageResult) GetFileResults() []FileResult
GetFileResults returns the FileResults of the package
func (*DefaultPackageResult) GetPackagename ¶
func (dpr *DefaultPackageResult) GetPackagename() string
GetPackagename returns the package name
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error implements the Result interface
type FileResult ¶
FileResult is the interface to hold all the Results regarding a single file
type Issue ¶
type Issue struct {
// contains filtered or unexported fields
}
Issue is used to send messages containing information abour a problem that has been found
type PackageResult ¶
type PackageResult interface { GetPackagename() string GetFileResults() []FileResult }
PackageResult is the interface to hold all the FileResults regarding a single package
type Reporter ¶
type Reporter interface {
Generate([]PackageResult) interface{}
}
Reporter is used to compile and generate the information found during the scan