module

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RelativeDir = filepath.Join(".trivy", "modules")

	DefaultDir = dir()
)

Functions

func Install

func Install(ctx context.Context, dir, repo string, quiet bool, opt types.RemoteOptions) error

Install installs a module

func Uninstall

func Uninstall(_ context.Context, dir, repo string) error

Uninstall uninstalls a module

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, opts Options) (*Manager, error)

func (*Manager) Close

func (m *Manager) Close(ctx context.Context) error

func (*Manager) Deregister added in v0.38.0

func (m *Manager) Deregister()

func (*Manager) Register

func (m *Manager) Register()

type Options added in v0.38.0

type Options struct {
	Dir            string
	EnabledModules []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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