client

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx *cli.Context) error

Run runs the scan

Types

type Config

type Config struct {
	config.GlobalConfig
	config.ArtifactConfig
	config.ImageConfig
	config.ReportConfig

	RemoteAddr string

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

Config holds the Trivy client config

func NewConfig

func NewConfig(c *cli.Context) (Config, error)

NewConfig is the factory method for Config

func (*Config) Init

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

Init initializes the config

Jump to

Keyboard shortcuts

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