Documentation ¶
Index ¶
- func CreateCommand(tool Interface) *cobra.Command
- func TempFile(pattern string) (name string, err error)
- type DirectoryBasedToolOpts
- func (o *DirectoryBasedToolOpts) GetDirectory() string
- func (o *DirectoryBasedToolOpts) GetDirectoryBasedToolOptions() *DirectoryBasedToolOpts
- func (o *DirectoryBasedToolOpts) GetFilesInDirectory(files []string) ([]string, error)
- func (o *DirectoryBasedToolOpts) GetInventory() *inventory.Manifest
- func (o *DirectoryBasedToolOpts) IsExcluded(file string) bool
- func (o *DirectoryBasedToolOpts) Register(cmd *cobra.Command)
- func (o *DirectoryBasedToolOpts) RemoveExcluded(files []string) []string
- func (o *DirectoryBasedToolOpts) Validate() error
- type DockerTool
- type HasCommandTemplate
- type Interface
- type Result
- type ToolOpts
- func (o *ToolOpts) GetDirectoryBasedToolOptions() *DirectoryBasedToolOpts
- func (o *ToolOpts) GetToolOptions() *ToolOpts
- func (o *ToolOpts) InstallAPIServerArtifact(name, urlPath string) (*download.Download, error)
- func (o *ToolOpts) InstallTool(spec *download.Spec) (*download.Download, error)
- func (o *ToolOpts) PrintToolResult(result *Result)
- func (o *ToolOpts) Register(c *cobra.Command)
- func (o *ToolOpts) RunDocker(d *DockerTool) ([]byte, error)
- func (o *ToolOpts) RunTool(tool Interface, printResult bool) (*Result, error)
- func (o *ToolOpts) SetContextValues(m map[string]string)
- func (o *ToolOpts) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommand ¶ added in v0.4.28
Types ¶
type DirectoryBasedToolOpts ¶ added in v0.4.28
type DirectoryBasedToolOpts struct { ToolOpts Directory string Exclude []string PrintFingerprints bool // contains filtered or unexported fields }
func (*DirectoryBasedToolOpts) GetDirectory ¶ added in v0.4.28
func (o *DirectoryBasedToolOpts) GetDirectory() string
func (*DirectoryBasedToolOpts) GetDirectoryBasedToolOptions ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) GetDirectoryBasedToolOptions() *DirectoryBasedToolOpts
func (*DirectoryBasedToolOpts) GetFilesInDirectory ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) GetFilesInDirectory(files []string) ([]string, error)
func (*DirectoryBasedToolOpts) GetInventory ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) GetInventory() *inventory.Manifest
func (*DirectoryBasedToolOpts) IsExcluded ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) IsExcluded(file string) bool
func (*DirectoryBasedToolOpts) Register ¶ added in v0.4.28
func (o *DirectoryBasedToolOpts) Register(cmd *cobra.Command)
func (*DirectoryBasedToolOpts) RemoveExcluded ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) RemoveExcluded(files []string) []string
func (*DirectoryBasedToolOpts) Validate ¶ added in v0.4.34
func (o *DirectoryBasedToolOpts) Validate() error
type DockerTool ¶ added in v0.4.29
type HasCommandTemplate ¶ added in v0.4.31
type Result ¶
type Result struct { Data *jnode.Node Findings assessments.Findings Values map[string]string Directory string Files *util.StringSet PrintPath []string PrintColumns []string Assessment *assessments.Assessment }
type ToolOpts ¶
type ToolOpts struct { options.PrintClientOpts UploadEnabled bool UpdatePR bool ToolVersion string ToolPath string FailThresholds map[string]string PrintAsessment bool Internal bool SkipDockerPull bool ParsedFailThresholds map[string]int }
func (*ToolOpts) GetDirectoryBasedToolOptions ¶ added in v0.4.34
func (o *ToolOpts) GetDirectoryBasedToolOptions() *DirectoryBasedToolOpts
func (*ToolOpts) GetToolOptions ¶ added in v0.4.28
func (*ToolOpts) InstallAPIServerArtifact ¶ added in v0.4.28
func (*ToolOpts) InstallTool ¶ added in v0.4.29
func (*ToolOpts) PrintToolResult ¶ added in v0.4.36
func (*ToolOpts) RunDocker ¶ added in v0.4.29
func (o *ToolOpts) RunDocker(d *DockerTool) ([]byte, error)
func (*ToolOpts) SetContextValues ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.