common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorJsonUnknownField = errors.New("json: unknown field")

Functions

func GetPathToPluginDir

func GetPathToPluginDir(fileName string) (string, error)

func GetPathToTemplate

func GetPathToTemplate(fileName string) (string, error)

func IsHelp

func IsHelp() bool

func MakeTrivyJsonReport

func MakeTrivyJsonReport(trivyCommand []string, outputFileName string) error

func ReadPluginFile

func ReadPluginFile(fileName string) ([]byte, error)

func ReadReport

func ReadReport(fileName string) (*types.Report, error)

Types

type Arguments

type Arguments map[string]string

func RetrievePluginArguments

func RetrievePluginArguments(availableArguments []string) (pluginArgs Arguments, rest []string)

Jump to

Keyboard shortcuts

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