cloudformation

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScannerWithRegoOnly

func ScannerWithRegoOnly(regoOnly bool) options.ScannerOption

Types

type ConfigurableCloudFormationScanner

type ConfigurableCloudFormationScanner interface {
	options.ConfigurableScanner
	SetRegoOnly(regoOnly bool)
}

type Ignore

type Ignore struct {
	RuleID string
	Expiry *time.Time
}

type Scanner

type Scanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(opts ...options.ScannerOption) *Scanner

New creates a new Scanner

func (*Scanner) Name

func (s *Scanner) Name() string

func (*Scanner) ScanFS

func (s *Scanner) ScanFS(ctx context.Context, fs fs.FS, dir string) (results scan.Results, err error)

func (*Scanner) ScanFile

func (s *Scanner) ScanFile(ctx context.Context, fs fs.FS, path string) (scan.Results, error)

func (*Scanner) SetDataDirs

func (s *Scanner) SetDataDirs(_ ...string)

func (*Scanner) SetDebugWriter

func (s *Scanner) SetDebugWriter(writer io.Writer)

func (*Scanner) SetPerResultTracingEnabled

func (s *Scanner) SetPerResultTracingEnabled(_ bool)

func (*Scanner) SetPolicyDirs

func (s *Scanner) SetPolicyDirs(dirs ...string)

func (*Scanner) SetPolicyFilesystem

func (s *Scanner) SetPolicyFilesystem(_ fs.FS)

func (*Scanner) SetPolicyNamespaces

func (s *Scanner) SetPolicyNamespaces(_ ...string)

func (*Scanner) SetPolicyReaders

func (s *Scanner) SetPolicyReaders(readers []io.Reader)

func (*Scanner) SetRegoOnly

func (s *Scanner) SetRegoOnly(regoOnly bool)

func (*Scanner) SetSkipRequiredCheck

func (s *Scanner) SetSkipRequiredCheck(skip bool)

func (*Scanner) SetTraceWriter

func (s *Scanner) SetTraceWriter(_ io.Writer)

func (*Scanner) SetUseEmbeddedPolicies

func (s *Scanner) SetUseEmbeddedPolicies(b bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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