image

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegularFile fileType = iota
	Dir
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func (*Image) Cleanup

func (img *Image) Cleanup() error

func (*Image) LastLayer

func (img *Image) LastLayer() *fileMap

type ImageFile

type ImageFile struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

A ImageFile represents a file that exists in an image

func OpenImageFile

func OpenImageFile(path string, img *Image) (ImageFile, error)

func (ImageFile) Open

func (f ImageFile) Open(path string) (lockfile.NestedDepFile, error)

func (ImageFile) Path

func (f ImageFile) Path() string

type ScanResults

type ScanResults struct {
	Lockfiles []lockfile.Lockfile
	ImagePath string
}

func ScanImage

func ScanImage(r reporter.Reporter, imagePath string) (ScanResults, error)

ScanImage scans an exported docker image .tar file

Jump to

Keyboard shortcuts

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