archive

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package archive provides an extractor for extracting software inventories from archives

Index

Constants

View Source
const (
	// Name is the unique identifier for the archive extractor.
	Name = "embeddedfs/archive"
)

Variables

This section is empty.

Functions

func New

func New() filesystem.Extractor

New returns a new archive extractor.

Types

type Extractor

type Extractor struct{}

Extractor implements the filesystem.Extractor interface for archive extraction.

func (*Extractor) Extract

Extract returns an Inventory with embedded filesystems for the given archive file.

func (*Extractor) FileRequired

func (e *Extractor) FileRequired(api filesystem.FileAPI) bool

FileRequired checks if the file is a supported archive.

func (*Extractor) Name

func (e *Extractor) Name() string

Name returns the name of the extractor.

func (*Extractor) Requirements

func (e *Extractor) Requirements() *plugin.Capabilities

Requirements returns the requirements for the extractor.

func (*Extractor) Version

func (e *Extractor) Version() int

Version returns the version of the extractor.

Jump to

Keyboard shortcuts

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