scanners

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkov

type Checkov struct {
	Data *objects.DataLayer
}

func (*Checkov) ManifestIsScannable added in v0.2.5

func (c *Checkov) ManifestIsScannable() bool

func (*Checkov) Name

func (c *Checkov) Name() string

func (*Checkov) ScanManifests

func (c *Checkov) ScanManifests(mnf string) (*subproc.ScanResults, error)

func (*Checkov) ScanResource

func (c *Checkov) ScanResource(ns string, kind string, name string) (*subproc.ScanResults, error)

func (*Checkov) SupportedResourceKinds added in v0.2.5

func (c *Checkov) SupportedResourceKinds() []string

func (*Checkov) Test

func (c *Checkov) Test() bool

type CheckovCheck added in v0.2.5

type CheckovCheck struct {
	Id            string `json:"check_id"`
	BcId          string `json:"bc_check_id"`
	Name          string `json:"check_name"`
	Resource      string `json:"resource"`
	Guideline     string `json:"guideline"`
	FileLineRange []int  `json:"file_line_range"`
}

type CheckovReport added in v0.2.5

type CheckovReport struct {
	Summary CheckovSummary `json:"summary"`
	Results CheckovResults `json:"results"`
}

type CheckovResults

type CheckovResults struct {
	FailedChecks []CheckovCheck `json:"failed_checks"`
}

type CheckovSummary

type CheckovSummary struct {
	Failed        int `json:"failed"`
	Passed        int `json:"passed"`
	ResourceCount int `json:"resource_count"`
}

type Trivy

type Trivy struct {
	Data *objects.DataLayer
}

func (*Trivy) ManifestIsScannable added in v0.2.5

func (c *Trivy) ManifestIsScannable() bool

func (*Trivy) Name

func (c *Trivy) Name() string

func (*Trivy) ScanManifests

func (c *Trivy) ScanManifests(_ string) (*subproc.ScanResults, error)

func (*Trivy) ScanResource

func (c *Trivy) ScanResource(ns string, kind string, name string) (*subproc.ScanResults, error)

func (*Trivy) SupportedResourceKinds added in v0.2.5

func (c *Trivy) SupportedResourceKinds() []string

func (*Trivy) Test

func (c *Trivy) Test() bool

Jump to

Keyboard shortcuts

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