analysis

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 6 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 secrets.Secret `json:"secret"`
	Rule   secrets.Rule   `json:"rule"`
	Source Source         `json:"source"`
}

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