secrets

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripPathFromResult

func StripPathFromResult(result *common.Results, path string) *common.Results

StripPathFromResult strip input path from results wherever it is found.

Types

type Config

type Config struct {
	Enabled         bool                   `yaml:"enabled" mapstructure:"enabled"`
	ScannersList    []string               `yaml:"scanners_list" mapstructure:"scanners_list"`
	StripInputPaths bool                   `yaml:"strip_input_paths" mapstructure:"strip_input_paths"`
	Inputs          []types.Input          `yaml:"inputs" mapstructure:"inputs"`
	ScannersConfig  *common.ScannersConfig `yaml:"scanners_config" mapstructure:"scanners_config"`
}

type MergedResults

type MergedResults struct {
	Results []*common.Results
}

func NewMergedResults

func NewMergedResults() *MergedResults

func (*MergedResults) Merge

func (m *MergedResults) Merge(other *common.Results) *MergedResults

type Results

type Results struct {
	Metadata      types.Metadata
	MergedResults *MergedResults `yaml:"merged_results"`
}

func (*Results) IsResults

func (*Results) IsResults()

type Secrets

type Secrets struct {
	// contains filtered or unexported fields
}

func New

func New(conf Config) *Secrets

func (Secrets) GetType

func (s Secrets) GetType() types.FamilyType

func (Secrets) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL