cli

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromoterDefaultThreads           = 10
	PromoterDefaultOutputFormat      = "yaml"
	PromoterDefaultMaxImageSize      = 2048
	PromoterDefaultSeverityThreshold = -1

	// flags.
	PromoterManifestFlag                = "manifest"
	PromoterThinManifestDirFlag         = "thin-manifest-dir"
	PromoterSnapshotFlag                = "snapshot"
	PromoterManifestBasedSnapshotOfFlag = "manifest-based-snapshot-of"
	PromoterOutputFlag                  = "output"
)

Variables

View Source
var PromoterAllowedOutputFormats = []string{
	"csv",
	"yaml",
}

Functions

func RunAuditCmd

func RunAuditCmd(opts *AuditOptions) error

func RunPromoteCmd

func RunPromoteCmd(opts *RunOptions) error

TODO: Function 'runPromoteCmd' has too many statements (97 > 40) (funlen) nolint: funlen,gocognit,gocyclo

func RunVersionCmd

func RunVersionCmd(opts *VersionOptions) error

Types

type AuditOptions

type AuditOptions struct {
	ProjectID    string
	RepoURL      string
	RepoBranch   string
	ManifestPath string
	UUID         string
	Verbose      bool
}

type RootOptions

type RootOptions struct {
	LogLevel string
}

type RunOptions

type RunOptions struct {
	Manifest                string
	ThinManifestDir         string
	KeyFiles                string
	Snapshot                string
	SnapshotTag             string
	OutputFormat            string
	SnapshotSvcAcct         string
	ManifestBasedSnapshotOf string
	Threads                 int
	MaxImageSize            int
	SeverityThreshold       int
	Confirm                 bool
	JSONLogSummary          bool
	ParseOnly               bool
	MinimalSnapshot         bool
	UseServiceAcct          bool
}

type VersionOptions

type VersionOptions struct {
	JSON bool
}

Jump to

Keyboard shortcuts

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