analyzer

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RBACVulnTypeJudge added in v1.0.3

func RBACVulnTypeJudge(rules, resources []string) (string, string)

Types

type KScanner

type KScanner struct {
	KClient *kubernetes.Clientset
	KConfig *rest.Config
	Version string

	VulnConfigures []*threat
	VulnContainers []*container
}

func (*KScanner) Kanalyze

func (ks *KScanner) Kanalyze(ctx context.Context) error

type RBACVuln added in v1.0.3

type RBACVuln struct {
	Severity           string
	ClusterRoleBinding string
	RoleBinding        string
}

type Scanner

type Scanner struct {
	VulnContainers []*container

	EngineVersion string
	ServerVersion string
}

func (*Scanner) Analyze

func (s *Scanner) Analyze(ctx context.Context, inspectors []*types.ContainerJSON, images []*_image.ImageInfo) error

Jump to

Keyboard shortcuts

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