pipelines

package
v0.64.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PipelineRules embed.FS

Functions

func GetPipelines

func GetPipelines(rootDir string) ([]*buildsecurity.Pipeline, []types.File, error)

Types

type Scanner added in v0.61.0

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

func NewScanner added in v0.61.0

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

func (*Scanner) Name added in v0.61.0

func (s *Scanner) Name() string

func (*Scanner) ScanFS added in v0.61.0

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

func (*Scanner) SetDataDirs added in v0.61.0

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

func (*Scanner) SetDebugWriter added in v0.61.0

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

func (*Scanner) SetFrameworks added in v0.64.0

func (s *Scanner) SetFrameworks(frameworks []framework.Framework)

func (*Scanner) SetPerResultTracingEnabled added in v0.61.0

func (s *Scanner) SetPerResultTracingEnabled(_ bool)

func (*Scanner) SetPolicyDirs added in v0.61.0

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

func (*Scanner) SetPolicyFilesystem added in v0.61.0

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

func (*Scanner) SetPolicyNamespaces added in v0.61.0

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

func (*Scanner) SetPolicyReaders added in v0.61.0

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

func (*Scanner) SetSkipRequiredCheck added in v0.61.0

func (s *Scanner) SetSkipRequiredCheck(skip bool)

func (*Scanner) SetTraceWriter added in v0.61.0

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

func (*Scanner) SetUseEmbeddedPolicies added in v0.61.0

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