analysis

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFormatter

func DefaultFormatter(findings []Finding) (string, error)

func JSONFormatter

func JSONFormatter(findings []Finding) (string, error)

Types

type Finding

type Finding struct {
	Secret string       `json:"secret,omitempty"`
	Rule   secrets.Rule `json:"rule"`
	Source Source       `json:"source"`
	Path   string       `json:"path,omitempty"`
}

func Dynamic

func Dynamic(img image.Image, detector secrets.Detector) ([]Finding, error)

func Static

func Static(img image.Image, detector secrets.Detector) (findings []Finding, err error)

func (Finding) String

func (f Finding) String() string

type Formatter

type Formatter func([]Finding) (string, error)

type Source

type Source string
const (
	BuildArgument Source = "build-arg"
	EnvVar        Source = "env-var"
	File          Source = "file"
)

Jump to

Keyboard shortcuts

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