client

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cliCtx *cli.Context) error

Run runs the scan

Types

type Option added in v0.18.2

type Option struct {
	option.GlobalOption
	option.ArtifactOption
	option.ImageOption
	option.ReportOption
	option.ConfigOption

	// For policy downloading
	NoProgress bool

	// We don't want to allow disabled analyzers to be passed by users,
	// but it differs depending on scanning modes.
	DisabledAnalyzers []analyzer.Type

	RemoteAddr string

	// this field is populated in Init()
	CustomHeaders http.Header
	// contains filtered or unexported fields
}

Option holds the Trivy client options

func NewOption added in v0.18.2

func NewOption(c *cli.Context) (Option, error)

NewOption is the factory method for Option

func (*Option) Init added in v0.18.2

func (c *Option) Init() (err error)

Init initializes the options

Jump to

Keyboard shortcuts

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