server

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: Apache-2.0 Imports: 8 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 Config

type Config struct {
	option.GlobalOption
	option.DBOption
	option.CacheOption

	Listen      string
	Token       string
	TokenHeader string
}

Config holds the Trivy config

func NewConfig

func NewConfig(c *cli.Context) Config

NewConfig is the factory method to return 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