iac

package
v0.0.0-...-1fb2453 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HtmlRenderer

type HtmlRenderer struct {
	// contains filtered or unexported fields
}

func NewHtmlRenderer

func NewHtmlRenderer(c *config.Config) (*HtmlRenderer, error)

func (*HtmlRenderer) GetDetailsHtml

func (service *HtmlRenderer) GetDetailsHtml(issue snyk.Issue) string

Function to get the rendered HTML with issue details and CSS

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New

func New(c *config.Config, instrumentor performance.Instrumentor, errorReporter error_reporting.ErrorReporter, cli cli.Executor) *Scanner

func (*Scanner) DeltaScanningEnabled

func (iac *Scanner) DeltaScanningEnabled() bool

func (*Scanner) IsEnabled

func (iac *Scanner) IsEnabled() bool

func (*Scanner) Product

func (iac *Scanner) Product() product.Product

func (*Scanner) Scan

func (iac *Scanner) Scan(ctx context.Context, path string, _ string) (issues []snyk.Issue, err error)

func (*Scanner) SupportedCommands

func (iac *Scanner) SupportedCommands() []types.CommandName

type TemplateData

type TemplateData struct {
	Styles       template.CSS
	Scripts      template.JS
	Issue        snyk.Issue
	SeverityIcon template.HTML
	Description  template.HTML
	Remediation  template.HTML
	ResourcePath template.HTML
	FilePath     template.HTML
	Nonce        template.HTML
}

Jump to

Keyboard shortcuts

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