clicommon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisLoader

type AnalysisLoader func() (analysis.Artifact, error)

type AnalyzersCmd

type AnalyzersCmd struct{}

func (*AnalyzersCmd) Execute

func (c *AnalyzersCmd) Execute(loader SubjectLoader) error

type ArtifactCmd

type ArtifactCmd struct {
	clicommon.ArtifactCmd
}

func (*ArtifactCmd) ExecuteAnalysis

func (c *ArtifactCmd) ExecuteAnalysis(loader AnalysisLoader) error

type ResultsCmd

type ResultsCmd struct {
	Raw bool `long:"raw" description:"Show raw, unformatted analysis results"`
}

func (*ResultsCmd) ExecuteAnalysis

func (c *ResultsCmd) ExecuteAnalysis(analyzer analysis.AnalyzerName, loader AnalysisLoader, args []string) error

type StoreResultsArgs

type StoreResultsArgs struct {
	Artifact string `positional-arg-name:"ARTIFACT-PATH" description:"Artifact to store"`
}

type StoreResultsCmd

type StoreResultsCmd struct {
	Analyzer analysis.AnalyzerName `long:"analyzer" description:"The analyzer used for the results"`

	Args StoreResultsArgs `positional-args:"true"`
}

func (*StoreResultsCmd) ExecuteStore

func (c *StoreResultsCmd) ExecuteStore(
	analysisIndexLoader func(string) (datastore.Index, error),
	analysisDatastoreName string,
	subjectLoader func() (analysis.Subject, error),
	analyzer analysis.AnalyzerName,
) error

type SubjectLoader

type SubjectLoader func() (analysis.Subject, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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