internal

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoInspectInDocker added in v1.0.5

func DoInspectInDocker(ctx context.Context)

DoInspectInDocker inspect docker configure

func DoInspectInKubernetes added in v1.0.5

func DoInspectInKubernetes(ctx context.Context)

DoInspectInKubernetes inspect kubernetes' configure

func DoScan added in v1.0.5

func DoScan(ctx context.Context, tarFile string, tarIO []io.ReadCloser)

func Extract added in v1.0.5

func Extract(ctx context.Context, tarPath string, tarIO []io.ReadCloser) (*layer.Manifest, error)

Extract layers from inspector tar

func Inspect added in v1.0.5

func Inspect(ctx context.Context, tempPath string, tarReader *tar.Reader) (*layer.Manifest, error)

Inspect get inspector struct

func RandomString added in v1.0.5

func RandomString() string

Types

type Inpsectors

type Inpsectors struct {
	Scan  analyzer.Scanner
	Kscan analyzer.KScanner
}

type Vuln

type Vuln struct {
	Scan vulnscan.Scanner
	// get layer information
	Mani *layer.Manifest
	// get os release
	OsRelease *osrelease.OsVersion
	// list all installed packages
	Packs *packages.Packages
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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