image

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 File added in v1.9.0

type File struct {
	*os.File
	// contains filtered or unexported fields
}

A File represents a file that exists in an image

func OpenLayerFile added in v1.7.1

func OpenLayerFile(path string, layer *Layer) (File, error)

func (File) Open added in v1.9.0

func (f File) Open(openPath string) (lockfile.NestedDepFile, error)

func (File) Path added in v1.9.0

func (f File) Path() string

type FileNode added in v1.9.0

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

FileNode represents a file on a specific layer, mapping the contents to an extracted file on disk

func (*FileNode) Open added in v1.9.0

func (f *FileNode) Open() (*os.File, error)

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() *Layer

type Layer added in v1.9.0

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

Layer represents all the files on a layer

func (Layer) AllFiles added in v1.9.0

func (filemap Layer) AllFiles() []FileNode

AllFiles return all files that exist on the layer the FileMap is representing

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