image

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 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 OpenLayerFile added in v1.7.1

func OpenLayerFile(path string, layer fileMap) (ImageFile, error)

func (ImageFile) Open

func (f ImageFile) Open(openPath 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