core

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kubernetes k8s.Config         `yaml:"kubernetes"`
	AWS        intaws.Config      `yaml:"aws"`
	Scanners   []*scanner.Scanner `yaml:"scanners"`
}

func (*Config) FromYAML

func (c *Config) FromYAML(yamlInput io.Reader) error

func (*Config) FromYAMLFile

func (c *Config) FromYAMLFile(fs afero.Fs, filename string) error

func (*Config) UsesAWS

func (c *Config) UsesAWS() bool

type Core

type Core struct {
	AppFS      afero.Fs
	Input      io.Reader
	Output     io.Writer
	AWSSession func(*intaws.Config) (*session.Session, error)
	AWSAPI     func(*session.Session, *intaws.Config) *intaws.API
	KubeClient func(*k8s.Config) (kubernetes.Interface, error)
	Context    context.Context
}

func NewCore

func NewCore() *Core

func (*Core) Run

func (c *Core) Run(args []string) error

Jump to

Keyboard shortcuts

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