Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripPathFromResult ¶
func StripPathFromResult(result misconfigurationTypes.ScannerResult, path string) misconfigurationTypes.ScannerResult
StripPathFromResult strip input path from results wherever it is found.
Types ¶
type FlattenedMisconfiguration ¶
type FlattenedMisconfiguration struct { ScannerName string `json:"ScannerName"` types.Misconfiguration }
type Misconfiguration ¶
type Misconfiguration struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf misconfigurationTypes.Config) *Misconfiguration
func (Misconfiguration) GetType ¶
func (m Misconfiguration) GetType() types.FamilyType
func (Misconfiguration) Run ¶
func (m Misconfiguration) Run(ctx context.Context, _ *results.Results) (interfaces.IsResults, error)
type Results ¶
type Results struct { Metadata familiestypes.Metadata `json:"Metadata"` Misconfigurations []FlattenedMisconfiguration `json:"Misconfigurations"` }
func NewResults ¶
func NewResults() *Results
func (*Results) AddScannerResult ¶
func (r *Results) AddScannerResult(scannerResult types.ScannerResult)
Click to show internal directories.
Click to hide internal directories.