image

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegularFile fileType = iota
	Dir
)

Variables

View Source
var ErrNoHistoryAvailable = errors.New("no history available")

Functions

This section is empty.

Types

type Image

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

func LoadImage added in v1.8.4

func LoadImage(imagePath string) (*Image, error)

func (*Image) Cleanup

func (img *Image) Cleanup() error

func (*Image) LastLayer

func (img *Image) LastLayer() *imgLayer

type ImageFile

type ImageFile struct {
	*os.File
	// 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 *imgLayer) (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