commands

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSCommand added in v0.31.0

func NewAWSCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewApp

func NewApp(version string) *cobra.Command

NewApp is the factory method to return Trivy CLI

func NewClientCommand

func NewClientCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

NewClientCommand returns the 'client' subcommand that is deprecated

func NewConfigCommand added in v0.19.0

func NewConfigCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewFilesystemCommand

func NewFilesystemCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewImageCommand

func NewImageCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewKubernetesCommand added in v0.30.0

func NewKubernetesCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewModuleCommand added in v0.29.0

func NewModuleCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewPluginCommand

func NewPluginCommand() *cobra.Command

func NewRepositoryCommand

func NewRepositoryCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewRootCommand added in v0.30.0

func NewRootCommand(version string, globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewRootfsCommand added in v0.20.0

func NewRootfsCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewSBOMCommand added in v0.30.0

func NewSBOMCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewServerCommand

func NewServerCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func NewVersionCommand added in v0.25.0

func NewVersionCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command

func SetOut added in v0.30.0

func SetOut(out io.Writer)

SetOut overrides the destination for messages

Types

type VersionInfo

type VersionInfo struct {
	Version         string             `json:",omitempty"`
	VulnerabilityDB *metadata.Metadata `json:",omitempty"`
}

VersionInfo holds the trivy DB version Info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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