artifact

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 25 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesystemRun

func FilesystemRun(ctx *cli.Context) error

FilesystemRun runs scan on filesystem

func ImageRun

func ImageRun(ctx *cli.Context) error

ImageRun runs scan on docker image

func RepositoryRun

func RepositoryRun(ctx *cli.Context) error

RepositoryRun runs scan on repository

func Run added in v0.18.2

func Run(ctx context.Context, opt Option, initializeScanner InitializeScanner, initCache InitCache) error

Run performs artifact scanning

Types

type InitCache added in v0.18.2

type InitCache func(c Option) (cache.Cache, error)

InitCache defines cache initializer

type InitializeScanner

InitializeScanner type to define initialize function signature

type Option added in v0.18.2

type Option struct {
	option.GlobalOption
	option.ArtifactOption
	option.DBOption
	option.ImageOption
	option.ReportOption
	option.CacheOption
	// contains filtered or unexported fields
}

Option holds the artifact options

func NewOption added in v0.18.2

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

NewOption is the factory method to return options

func (*Option) Init added in v0.18.2

func (c *Option) Init() error

Init initializes the artifact options

Jump to

Keyboard shortcuts

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