tools

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDocker added in v0.4.22

func HasDocker() error

func InstallAPIServerArtifact added in v0.4.22

func InstallAPIServerArtifact(apiClient client.Interface, name, urlPath string) (*download.Download, error)

Types

type Interface

type Interface interface {
	Run() (*Result, error)
	Name() string
}

type Result

type Result struct {
	Data         *jnode.Node
	Values       map[string]string
	Directory    string
	Files        *util.StringSet
	PrintPath    []string
	PrintColumns []string
}

func (*Result) AddFile added in v0.4.21

func (r *Result) AddFile(path string) *Result

func (*Result) AddValue added in v0.4.21

func (r *Result) AddValue(name, value string) *Result

type RunsInDirectory added in v0.4.22

type RunsInDirectory interface {
	Interface
	ScansIaC
	SetDirectory(dir string)
}

type RunsWithAPIClient added in v0.4.22

type RunsWithAPIClient interface {
	Interface
	ScansIaC
	SetAPIClient(apiClient client.Interface)
}

type ScansIaC added in v0.4.27

type ScansIaC interface {
	IaCTypes() []string // "cloudformation", "terraform", "kubernetes"
}

type ToolOpts

type ToolOpts struct {
	options.PrintClientOpts
	UploadEnabled bool
	OmitContext   bool
}

func (*ToolOpts) Register

func (o *ToolOpts) Register(c *cobra.Command)

func (*ToolOpts) RunTool

func (o *ToolOpts) RunTool(tool Interface) error

func (*ToolOpts) SetContextValues

func (o *ToolOpts) SetContextValues(m map[string]string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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