server

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

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 Option added in v0.29.0

type Option struct {
	option.GlobalOption
	option.DBOption
	option.CacheOption
	option.OtherOption

	Listen      string
	Token       string
	TokenHeader string
}

Option holds the Trivy config

func NewOption added in v0.29.0

func NewOption(c *cli.Context) Option

NewOption is the factory method to return config

func (*Option) Init added in v0.29.0

func (c *Option) 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